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 114253 - can not deploy Asynchronous sample
Summary: can not deploy Asynchronous sample
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: Nikita Krjukov
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-08-30 15:11 UTC by Victoria Zhukovskaya
Modified: 2007-09-03 11:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victoria Zhukovskaya 2007-08-30 15:11:37 UTC
Sol10, Build 20070830000
can not deploy Asynchronous sample 
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
init-deploy:
deps-jar:
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init-taskdefs:
init:
pre-dist:
/export/home/tester/NetBeansProjects/AsynchronousSample1/AsynchronousSample1Application/nbproject/build-impl.xml:122:
The following error occurred while executing this line:
/export/home/tester/NetBeansProjects/AsynchronousSample1/AsynchronousSample1/nbproject/build-impl.xml:154:
java.lang.AssertionError: it can be null for local components only.
BUILD FAILED (total time: 1 second)
Comment 1 Vladimir Yaroslavskiy 2007-08-31 12:02:28 UTC
The problem was caused by the latest changes in validation system for bpel.
Steps to reproduce:
1. Create AsynchronousSample
2. Open AsynchronousSampleClient.bpel and do validation.

AssertionError during validation of AsynchronousSampleClient.bpel:
java.lang.AssertionError: it can be null for local components only.
	at
org.netbeans.modules.xml.wsdl.model.extensions.bpel.validation.xpath.PathValidatorVisitor.visit(PathValidatorVisitor.java:261)
	at
org.netbeans.modules.xml.wsdl.model.extensions.bpel.validation.xpath.PathValidatorVisitor.visit(PathValidatorVisitor.java:132)
	at
org.netbeans.modules.xml.wsdl.model.extensions.bpel.validation.xpath.BPELExtensionXpathVisitor.visit(BPELExtensionXpathVisitor.java:167)
	at org.netbeans.modules.xml.wsdl.model.extensions.bpel.impl.PropertyAliasImpl.accept(PropertyAliasImpl.java:103)
	at org.netbeans.modules.xml.wsdl.model.extensions.bpel.validation.AbstractValidator.validate(AbstractValidator.java:82)
	at org.netbeans.modules.xml.xam.spi.Validation.validate(Validation.java:78)
	at org.netbeans.modules.bpel.model.validation.imports.BPELImportsVisitor.validateImportedModels(BPELImportsVisitor.java:86)
	at org.netbeans.modules.bpel.model.validation.imports.BPELImportsValidator.validate(BPELImportsValidator.java:90)
	at org.netbeans.modules.xml.xam.spi.Validation.validate(Validation.java:78)
	at org.netbeans.modules.xml.validation.ValidationOutputWindowController.validate(ValidationOutputWindowController.java:64)
	at org.netbeans.modules.xml.validation.ValidateAction$RunAction.run(ValidateAction.java:90)
	at
org.netbeans.modules.bpel.editors.multiview.DesignerMultiViewElement$BPELValidateAction$1.run(DesignerMultiViewElement.java:796)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)

Nikita, please fix it and DO validation for ALL bpel samples BEFORE cvs commit. Thanks.
Comment 2 Nikita Krjukov 2007-08-31 15:25:35 UTC
I fixed the validation. 
There was a problem with a property alias query in a WSDL file.

In the Asynchronous example it contains an absolute location path.
The first elemen of the path was without prefix and it came to exception. 

I eliminated the exception and now a warning is shown in such case:
  The global element "xxx" has to have a namespace prefix.

I also corrected the Asynchronous example to prevent this warning. 

Unfortunately now I haven't time to "DO validation for ALL bpel samples BEFORE cvs commit".
I have tested some of them and hope everythin will be Ok. 
Comment 3 Victoria Zhukovskaya 2007-09-03 11:51:19 UTC
Product Version: NetBeans IDE Dev (Build 200709021200) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06