This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 106342 - project build is failing when "Allow build and deploy with errors" is checked.
Summary: project build is failing when "Allow build and deploy with errors" is checked.
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-12 00:14 UTC by Murali Pottlapelli
Modified: 2007-09-04 15:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project (8.54 KB, application/octet-stream)
2007-06-14 16:54 UTC, Murali Pottlapelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Murali Pottlapelli 2007-06-12 00:14:48 UTC
"Allow build and deploy with errors" property is provided on project to build
the project with errors. Even when "Allow build and deploy with errors" is
checked build is failing.
Comment 1 Nikita Krjukov 2007-06-14 16:14:52 UTC
I changed status to Invalid because of the project isn't specified (attached). 
I even didn't understand what project type is ment here. 

I change priority to P2 because of not all projects are built with error. 
I just have tried a synchronous sample project and it is built well.
Comment 2 Sergey Lunegov 2007-06-14 16:37:17 UTC
Murali, please attach the project
Comment 3 Murali Pottlapelli 2007-06-14 16:54:28 UTC
Created attachment 43726 [details]
project
Comment 4 Murali Pottlapelli 2007-06-14 16:58:11 UTC
project is attached.

It is reporting errors due to another validation bug.

As per the design of "Allow build and deploy with errors" user should be able build the project even there are valid bugs.  
Comment 5 Murali Pottlapelli 2007-06-20 18:23:11 UTC
It is required for running driver projects. These driver projects are used by runtime for testing runtime regressions
Comment 6 Nikita Krjukov 2007-07-11 19:44:18 UTC
I have investigated the problem and came to a decision that 
this issue is associated with the issue #100036. 

I have found the piece of code which cause the error. 
It is here:
package org.netbeans.modules.bpel.project.anttasks;
public class IDEValidateBPELProject
    private void processBpelFile(File file) throws BuildException {
...
      for (BPELFile bpel : myBPELFiles) {
        if (bpel.getTargetNamespace().equals(targetNamespace)) {
          throw new BuildException(
            " \n" +
            "BPEL files " + bpel.getName() + " and " + current.getName() + "\n" +
            "have the same target name space: " + targetNamespace + " \n \n"
          );
        }
      }
...

But I'm not confident about what to do with it.

Also I have found another code, which looks very similar to the mentioned above:
package org.netbeans.modules.bpel.model.validation.project;
public class Validator 

This code looks a bit better (at least because of I18N in error message) 
but it isn't called at all. I don't know why. 

So it looks like a code duplication. I think it should be resolved anyway. 
I suggest to reassign this issue to the original author - Vladimir Yaroslavskiy
Comment 7 Vladimir Yaroslavskiy 2007-07-12 13:46:59 UTC
Fixed.
Comment 8 Ivan Sidorkin 2007-09-04 15:01:01 UTC
verified in Build 200709040000