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 182908 - "Edit Web Service Attributes" failes with AssertinError
Summary: "Edit Web Service Attributes" failes with AssertinError
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: WSIT (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-26 15:02 UTC by cy6ergn0m
Modified: 2013-07-22 13:42 UTC (History)
2 users (show)

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 cy6ergn0m 2010-03-26 15:02:36 UTC
If I open project's "Web Service References", click right button to exist reference and choose "Edit Web Service Attributes" - nothing happens and exception dialog shown with the following stack trace:
java.lang.AssertionError: Null file object.
	at org.netbeans.modules.xml.retriever.catalog.Utilities.createModelSource(Utilities.java:625)
	at org.netbeans.modules.xml.retriever.catalog.Utilities.getModelSource(Utilities.java:612)
	at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.getModelFromFO(WSITModelSupport.java:189)
	at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.getModelForClient(WSITModelSupport.java:218)
	at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.getModelForClient(WSITModelSupport.java:202)
	at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.WSITModelSupport.getModel(WSITModelSupport.java:144)
	at org.netbeans.modules.websvc.wsitconf.WSITEditor.createWSEditorComponent(WSITEditor.java:143)
	at org.netbeans.modules.websvc.core.wseditor.support.EditWSAttributesPanel.addTabs(EditWSAttributesPanel.java:82)
	at org.netbeans.modules.websvc.core.wseditor.support.EditWSAttributesCookieImpl.openEditor(EditWSAttributesCookieImpl.java:118)
	at org.netbeans.modules.websvc.core.wseditor.support.EditWSAttributesCookieImpl.access$000(EditWSAttributesCookieImpl.java:81)
[catch] at org.netbeans.modules.websvc.core.wseditor.support.EditWSAttributesCookieImpl$1.run(EditWSAttributesCookieImpl.java:96)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:133)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

In log I can see one message before this exception:
WARNING [org.openide.xml.EntityCatalog]: No resolver found for http://jqastatus.russia.sun.com:8181/SQEDataAccess/SQEDataService?wsdl


Environment:
Product Version: NetBeans IDE Dev (Build 201003260201)
Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13
System: Linux version 2.6.27.45-desktop-1mnb running on i386; UTF-8; ru_RU (nb)
Userdir: /home/cy6ergn0m/.netbeans/dev
Comment 1 Milan Kuchtiak 2010-03-29 08:23:30 UTC
Martin, please, can you evaluate this? Is this WSIT or Retriever issue ?
Comment 2 Martin Grebac 2010-04-27 10:48:58 UTC
Hard to tell without reproduction test case, but based on the traces it looks like resolver issue because it seems the wsdl is not retried properly and then wsit code fails on invalid artefact.
Comment 3 Martin Grebac 2010-05-12 14:50:27 UTC
I tried to create client in web project against your service and open the QoS dialog, and it works fine for me. Would you please provide exact reproduction steps - what kind of project, ... or attach your project?
Comment 4 puow 2010-07-16 12:08:47 UTC
I also have the same problem which goes away if I delete the wsit-.xml file in the WEB-INF directory and I remove all @WebMethod(exclude = true) annotations from the Service.

The problem also comes back if I add any of the @WebMethod(exclude = true) annotation(s) back.
Comment 5 Denis Anisimov 2011-10-07 06:43:21 UTC
Very strange behavior related to presence of Java annotations in Java file.
Need to investigate deeply for next release.
Comment 6 Sergey Petrov 2013-04-30 12:06:53 UTC
issue 228616 may e the same but with asssertions on, but right now I'm unable to reproduce it with latest 7.4 build.
Comment 7 Milan Kuchtiak 2013-07-22 13:42:18 UTC
Already fixed.
See the bug 196601.