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 96252 - WSDL validation: NPE if no message on port operation input + JMS bindings
Summary: WSDL validation: NPE if no message on port operation input + JMS bindings
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Binding Components (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: James Tran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-22 01:53 UTC by jlautz
Modified: 2007-08-15 20:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
WSDL producing NP (2.39 KB, application/octet-stream)
2007-02-22 01:54 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2007-02-22 01:53:51 UTC
Seen on Windows XP with EP Gavotte 070220_4 and JDK 1.5.0_10:

1. Open the attached WSDL document in the WSDL editor (source view is fine).
2. Run Validate XML.

==> NPE with the following stack trace:
java.lang.NullPointerException
	at
org.netbeans.modules.wsdlextensions.jms.validator.JMSComponentValidator.referencesValidMessagePart(JMSComponentValidator.java:1078)
	at
org.netbeans.modules.wsdlextensions.jms.validator.JMSComponentValidator.validate(JMSComponentValidator.java:618)
	at
org.netbeans.modules.wsdlextensions.jms.validator.JMSComponentValidator.validate(JMSComponentValidator.java:195)
	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.ValidateXMLCookieImpl.validateXML(ValidateXMLCookieImpl.java:48)
	at
org.netbeans.modules.xml.tools.actions.ValidateAction$RunAction.run(ValidateAction.java:95)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 jlautz 2007-02-22 01:54:35 UTC
Created attachment 38797 [details]
WSDL producing NP
Comment 2 Ritesh Adval 2007-02-22 03:05:00 UTC
Alex,

This is reproducible. Can you have someone fix this in JMS validator.

Thanks
Ritesh
Comment 3 Alexei Mokeev 2007-02-22 09:21:19 UTC
It is P2 issue filed after bug cut-off date. I assume that it is not a stopper
for Beta. If you disagree then rise priority to P1 and remove waiver keyword. 
Comment 4 James Tran 2007-02-22 23:20:03 UTC
Fixed jms validator to check for null message for operation input and output.  
If there is no message defined for the operation's input and/or output, then 
skip the message part validation and allow wsdl validator to catch the 
undefined message error.
Comment 5 Alexei Mokeev 2007-03-06 11:52:11 UTC
Removed EP551_WAIVER_APPROVED
Comment 6 _ hong_lin 2007-08-15 20:04:45 UTC
Close "FIXED" issue against previous releases