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 206481 - [71cat] NullPointerException at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.removePolicyElements
Summary: [71cat] NullPointerException at org.netbeans.modules.websvc.wsitconf.wsdlmode...
Status: RESOLVED INCOMPLETE
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-16 18:10 UTC by vanob
Modified: 2011-12-19 06:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 183859


Attachments
stacktrace (2.49 KB, text/plain)
2011-12-16 18:10 UTC, vanob
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vanob 2011-12-16 18:10:39 UTC
This bug was originally marked as duplicate of bug 165528, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.1 RC2 (Build 201111302200)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.removePolicyElements(WSITModelSupport.java:636)
   at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.removePolicies(WSITModelSupport.java:594)
   at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.copyImports(WSITModelSupport.java:309)
   at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.getModelForClient(WSITModelSupport.java:239)
   at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.getModelForClient(WSITModelSupport.java:208)
   at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.getModel(WSITModelSupport.java:147)
Comment 1 vanob 2011-12-16 18:10:41 UTC
Created attachment 114272 [details]
stacktrace
Comment 2 Denis Anisimov 2011-12-19 06:42:37 UTC
Please provide steps to reproduce.
I cannot identify the reason of NPE without these steps.
The NPE appears as result of null value of definitions in the WSDL model.
But this is not valid WSDL file.
As I see from the NPE you are opening WS client attributes.
So you have some WS client created based on some WSDL file, right ?
Then you invoke "Edit Web Service Attributes..." on the client node, right ?

So please give me the URL of the WSDL file you use.
And please check this file locally ( you can open it in the editor via double click on the client node ) : does it have the same content as remote URL ?
Please attach its local content to the issue.