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 150477 - [65cat] IllegalArgumentException: fileObject == null
Summary: [65cat] IllegalArgumentException: fileObject == null
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milan Kuchtiak
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 02:48 UTC by sunbiz
Modified: 2010-04-06 13:54 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 28710


Attachments
stacktrace (3.66 KB, text/plain)
2008-10-17 02:48 UTC, sunbiz
Details
stacktrace (7.73 KB, text/plain)
2009-02-18 16:26 UTC, Exceptions Reporter
Details
stacktrace (3.93 KB, text/plain)
2009-04-04 16:34 UTC, spaquet
Details
stacktrace (4.12 KB, text/plain)
2009-04-04 16:48 UTC, spaquet
Details
stacktrace (6.65 KB, text/plain)
2009-08-31 20:01 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2008-10-17 02:48:32 UTC
Build: NetBeans IDE Dev (Build 200810140201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments:
sunbiz: Deleted source .java files for a RESTful webservice

jungi: -open Bookstore sample from Jersey distro
-dismiss broken server dialog
-expand RESTful Web Services node => IAE

sunbiz: Deleted source .java files for a RESTful webservice



Stacktrace: 
java.lang.IllegalArgumentException: fileObject == null
        at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:409)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory$OpenCookieImpl.<init>(OpenCookieFactory.java:92)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory.create(OpenCookieFactory.java:71)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory.create(OpenCookieFactory.java:63)
        at org.netbeans.modules.websvc.rest.nodes.RestServiceNode.<init>(RestServiceNode.java:80)
        at org.netbeans.modules.websvc.rest.nodes.RestServiceNode.<init>(RestServiceNode.java:68)
Comment 1 sunbiz 2008-10-17 02:48:37 UTC
Created attachment 72075 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-02-18 16:26:21 UTC
Build: NetBeans IDE Dev (Build 200902050256)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-11-generic, i386

User Comments: 
Expanding the 'RESTful Web Services' node in the Projects panel

Stacktrace: 
java.lang.IllegalArgumentException: fileObject == null
        at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:220)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory$OpenCookieImpl.<init>(OpenCookieFactory.java:92)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory.create(OpenCookieFactory.java:71)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory.create(OpenCookieFactory.java:63)
        at org.netbeans.modules.websvc.rest.nodes.RestServiceNode.<init>(RestServiceNode.java:80)
        at org.netbeans.modules.websvc.rest.nodes.RestServiceNode.<init>(RestServiceNode.java:68)
Comment 3 Exceptions Reporter 2009-02-18 16:26:32 UTC
Created attachment 77113 [details]
stacktrace
Comment 4 spaquet 2009-04-04 16:34:10 UTC
Build: NetBeans IDE Dev (Build 200903310200)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 


Stacktrace: 
java.lang.IllegalArgumentException: fileObject == null
        at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:220)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory$OpenCookieImpl.<init>(OpenCookieFactory.java:92)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory.create(OpenCookieFactory.java:71)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory.create(OpenCookieFactory.java:63)
        at org.netbeans.modules.websvc.rest.nodes.RestServiceNode.<init>(RestServiceNode.java:80)
        at org.netbeans.modules.websvc.rest.nodes.RestServiceNode.<init>(RestServiceNode.java:68)
Comment 5 spaquet 2009-04-04 16:34:14 UTC
Created attachment 79442 [details]
stacktrace
Comment 6 spaquet 2009-04-04 16:48:08 UTC
Build: NetBeans IDE Dev (Build 200903310200)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 


Stacktrace: 
java.lang.IllegalArgumentException: fileObject == null
        at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:220)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory$OpenCookieImpl.<init>(OpenCookieFactory.java:92)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory.create(OpenCookieFactory.java:71)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory.create(OpenCookieFactory.java:63)
        at org.netbeans.modules.websvc.rest.nodes.RestServiceNode.<init>(RestServiceNode.java:80)
        at org.netbeans.modules.websvc.rest.nodes.RestServiceNode.<init>(RestServiceNode.java:68)
Comment 7 spaquet 2009-04-04 16:48:11 UTC
Created attachment 79443 [details]
stacktrace
Comment 8 Jaroslav Tulach 2009-08-31 20:01:20 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-3809-on-090825)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux, 2.6.24.7-laptop-1mnb, i386

User Comments: 


Stacktrace: 
java.lang.IllegalArgumentException: fileObject == null
        at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:220)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory$OpenCookieImpl.<init>(OpenCookieFactory.java:94)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory.create(OpenCookieFactory.java:73)
        at org.netbeans.modules.websvc.rest.nodes.OpenCookieFactory.create(OpenCookieFactory.java:65)
        at org.netbeans.modules.websvc.rest.nodes.RestServiceNode.<init>(RestServiceNode.java:80)
        at org.netbeans.modules.websvc.rest.nodes.RestServiceNode.<init>(RestServiceNode.java:66)
Comment 9 Jaroslav Tulach 2009-08-31 20:01:25 UTC
Created attachment 86879 [details]
stacktrace
Comment 10 Exceptions Reporter 2010-03-24 13:07:26 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=28710
Comment 11 Milan Kuchtiak 2010-03-29 13:06:07 UTC
Need to handle cases with no source roots in a project.
Comment 12 Milan Kuchtiak 2010-03-29 14:44:29 UTC
Fixed.

Details:
http://hg.netbeans.org/main/rev/6c9dc7e53361
Comment 13 Jaroslav Pospisil 2010-04-06 13:54:38 UTC
v.