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 196601 - AssertionError: Null file object.
Summary: AssertionError: Null file object.
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-11 17:18 UTC by philgmo
Modified: 2011-11-03 15:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 177486


Attachments
stacktrace (1.22 KB, text/plain)
2011-03-11 17:18 UTC, philgmo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description philgmo 2011-03-11 17:18:00 UTC
Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02-334, Java(TM) SE Runtime Environment, 1.6.0_24-b07-334-10M3326
OS: Mac OS X

Stacktrace: 
java.lang.AssertionError: Null file object.
   at org.netbeans.modules.xml.retriever.catalog.Utilities.createModelSource(Utilities.java:631)
   at org.netbeans.modules.xml.retriever.catalog.Utilities.getModelSource(Utilities.java:618)
   at org.netbeans.modules.websvc.editor.hints.WebServicesHintsProvider.initServiceMetadata(WebServicesHintsProvider.java:178)
   at org.netbeans.modules.websvc.editor.hints.WebServicesHintsProvider.run(WebServicesHintsProvider.java:132)
   at org.netbeans.modules.websvc.editor.hints.WebServicesHintsProvider$ProblemFinderCompInfo.run(WebServicesHintsProvider.java:208)
   at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:322)
Comment 1 philgmo 2011-03-11 17:18:05 UTC
Created attachment 106918 [details]
stacktrace
Comment 2 Denis Anisimov 2011-11-01 13:05:13 UTC
I don't know exact steps to reproduce but this could be a result of steps below:
- Create Web Project.
- Create WS from WSDL ( use remote wsdl ).
As result remote wsdl file will be downloaded locally and its path will be used in jax-ws.xml file.
- Remove local wsdl file .
- Find WS node in the project explorer and open WS in the editor .
There will be an exception.

So WebServicesHintsProvider.initServiceMetadata() method should check wsdl file object value against null even if local wsdl file String value is not null.
Comment 3 Denis Anisimov 2011-11-01 13:12:34 UTC
One thing I forgot to mention : switch editor to design view.
Comment 4 Denis Anisimov 2011-11-01 13:25:18 UTC
web-main#8391d75a33a3
Comment 5 Quality Engineering 2011-11-02 15:15:47 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/8391d75a33a3
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#196601 - AssertionError: Null file object.
Comment 6 Quality Engineering 2011-11-03 15:32:36 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/8391d75a33a3
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#196601 - AssertionError: Null file object.