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 117446 - NullPointerException validating BPEL and WSDL files
Summary: NullPointerException validating BPEL and WSDL files
Status: RESOLVED WORKSFORME
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-02 13:26 UTC by getaceres
Modified: 2007-10-11 15:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
This is the content of the source folder in the BPEL project. (9.28 KB, application/octet-stream)
2007-10-02 15:30 UTC, getaceres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description getaceres 2007-10-02 13:26:22 UTC
When I try to validate a BPEL or WSDL file that is not correct I get a NullPointerException like this:

java.lang.NullPointerException
	at 
org.netbeans.modules.xml.wsdl.model.extensions.soap.validation.SOAPComponentValidator.ensureUniqueParts(SOAPComponentValidator.java:696)
	at 
org.netbeans.modules.xml.wsdl.model.extensions.soap.validation.SOAPComponentValidator.visit(SOAPComponentValidator.java:676)
	at 
org.netbeans.modules.xml.wsdl.model.extensions.soap.validation.SOAPComponentValidator.validate(SOAPComponentValidator.java:149)
	at org.netbeans.modules.xml.xam.spi.Validation.validate(Validation.java:78)
	at org.netbeans.modules.xml.wsdl.validator.visitor.WSDLSemanticsVisitor.visit(WSDLSemanticsVisitor.java:682)
	at org.netbeans.modules.xml.wsdl.model.impl.ImportImpl.accept(ImportImpl.java:52)
	at 
org.netbeans.modules.xml.wsdl.validator.visitor.WSDLSemanticsVisitor.visitChildren(WSDLSemanticsVisitor.java:937)
	at org.netbeans.modules.xml.wsdl.validator.visitor.WSDLSemanticsVisitor.visit(WSDLSemanticsVisitor.java:310)
	at org.netbeans.modules.xml.wsdl.model.impl.DefinitionsImpl.accept(DefinitionsImpl.java:130)
	at org.netbeans.modules.xml.wsdl.validator.WSDLSemanticValidator.validate(WSDLSemanticValidator.java:38)
	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)

I think it should point to the error instead of failing with that exception.
Comment 1 Andrei Chistiakov 2007-10-02 14:56:23 UTC
Could you please attach that invalid BPEL or WSDL file to this bug report?
Comment 2 getaceres 2007-10-02 15:30:55 UTC
Created attachment 50004 [details]
This is the content of the source folder in the BPEL project.
Comment 3 Vladimir Yaroslavskiy 2007-10-11 15:02:41 UTC
Tried the latest build, can't reproduce NPE.