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 112731 - NPE while trying to open Edit WS Attributes dialog
Summary: NPE while trying to open Edit WS Attributes dialog
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: WSIT (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-08-14 12:07 UTC by Lukas Jungmann
Modified: 2008-07-28 17:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
projects (69.68 KB, application/octet-stream)
2007-08-14 12:13 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2007-08-14 12:07:10 UTC
hudson #2424, jdk6u2

-when I try to open Edit WS Attributes dialog from the ws client node in EJB module project I get:

java.lang.NullPointerException
    at org.netbeans.modules.xml.wsdl.model.visitor.FindReferencedVisitor.visitChildren(FindReferencedVisitor.java:118)
    at org.netbeans.modules.xml.wsdl.model.visitor.FindReferencedVisitor.find(FindReferencedVisitor.java:55)
    at org.netbeans.modules.xml.wsdl.model.impl.WSDLModelImpl.findComponentByName(WSDLModelImpl.java:205)
    at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.PolicyModelHelper.getBinding(PolicyModelHelper.java:259)
    at org.netbeans.modules.websvc.wsitconf.ui.client.ClientView.isCallBackConfigRequired(ClientView.java:202)
    at org.netbeans.modules.websvc.wsitconf.ui.client.ClientView.<init>(ClientView.java:141)
    at org.netbeans.modules.websvc.wsitconf.ui.client.ClientTopComponent.doInitialize(ClientTopComponent.java:92)
    at org.netbeans.modules.websvc.wsitconf.ui.client.ClientTopComponent.addNotify(ClientTopComponent.java:115)
    at java.awt.Container.addNotify(Container.java:2592)
...

-workaround for me was to open WSDL file in the editor (double click on the ws client node) - then the NPE above
disapperars and I was able to open Edit WS Attributes dialog
Comment 1 Lukas Jungmann 2007-08-14 12:13:04 UTC
Created attachment 46564 [details]
projects
Comment 2 Lukas Jungmann 2007-08-14 12:57:48 UTC
I don't have clear steps to reproduce this yet.

I was just preparing project for testing WSIT features (see attached projects and try to re-create them from scratch)
and then I followed: http://wiki.netbeans.org/wiki/view/TS_60_WSIT

BTW: be aware of issue 112736
Comment 3 Shivanand Kini 2007-10-15 22:14:50 UTC
wsdl model issue
Comment 4 Nam Nguyen 2007-10-16 00:16:57 UTC
I can't reproduce this issue.  Hudson build #2424 is quite old?  I can notice the mismatched line number in the
description stack.

Anyway, from the stack I can tell that the given WSDL model was not well-formed because its root is null.  The UI
(ClientTopComponent) should check for the condition, display proper error and prevent user interaction further down that
cause this NPE.

Reassign to websvc/wsitconf.

Comment 5 Nam Nguyen 2007-10-16 00:48:08 UTC
Note that model factory getModel(ModelSource source) does not throw IOException, so client of the call should check the
state VALID before rendering.
Comment 6 Martin Grebac 2007-10-30 13:18:26 UTC
I'm not able to reproduce. I've been fixing an issue with ejb project some time ago, so I assume it's fixed already.
Feel free to reopen if it's still there.
Comment 7 Lukas Jungmann 2008-07-28 17:30:26 UTC
v.