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 41657 - IAException: Invalid ClassPath root: file:/[...].jar. The root must be a folder.
Summary: IAException: Invalid ClassPath root: file:/[...].jar. The root must be a folder.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: RANDOM
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-04-03 00:37 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (1.59 KB, text/plain)
2004-04-03 00:38 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-04-03 00:37:49 UTC
Thrown when opening web/project project.
Comment 1 Jesse Glick 2004-04-03 00:38:37 UTC
Created attachment 14265 [details]
Stack trace
Comment 2 Jesse Glick 2004-04-03 00:39:44 UTC
Not sure what the root cause is; could be a bug in editor, in
java/api, in apisupport/project. If it is reproducible, should be easy
to track down; try e.g.

  -J-Dorg.netbeans.modules.apisupport.project=0
Comment 3 David Konecny 2004-04-05 11:44:20 UTC
Somebody (and problem is that we do not know who) registered new
classpath to GlobalPathRegistry and editor is trying to parse it.

Tomas, could you please make sure that all support methods for
classpath creation checks its input parameter if possible? Maybe
ClassPath constructor could at least check that all its
PathResourceImplementation does not containg something like
file://.../foo.jar. That might help.

Then I would pass this issue to web/project. Looks most probably as
their issue.

Making P2 just to get this fixed sooner then later.
Comment 4 Jesse Glick 2004-04-22 03:40:39 UTC
Can't reproduce currently.
Comment 5 Tomas Zezula 2004-05-17 13:28:01 UTC
The checking of input parameters will require to iterate the list or
resources, this should net be in the production code. Maybe call it as
assert.
Comment 6 David Konecny 2004-05-17 13:37:42 UTC
For perf reasons it could be assert. I believe this check will be
valuable.
Comment 7 Tomas Zezula 2004-06-08 08:42:39 UTC
Checking in api/src/org/netbeans/spi/java/classpath/ClassPathFactory.java;
/cvs/java/api/src/org/netbeans/spi/java/classpath/ClassPathFactory.java,v
 <--  ClassPathFactory.java
new revision: 1.3; previous revision: 1.2
done

I've added the debugging support into ClassPathFactory. The support is
disabled, to enable it uncomment the assert in the createClassPath method.
Comment 8 Tomas Zezula 2004-06-08 08:51:16 UTC
It seems that the bug is already fixed. I am going to close it. If it
appears again reopen it. The added debugging support may help to find
out the its root case.
Comment 9 David Konecny 2004-06-08 09:02:05 UTC
Assert is commented out because it is too slow? 
Comment 10 Tomas Zezula 2004-06-08 10:54:20 UTC
Yes, it is O(n^2)