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 47361 - Constant exceptions while editing unit tests
Summary: Constant exceptions while editing unit tests
Status: CLOSED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 42680
  Show dependency tree
 
Reported: 2004-08-18 12:01 UTC by _ tboudreau
Modified: 2006-03-24 10:12 UTC (History)
1 user (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 _ tboudreau 2004-08-18 12:01:00 UTC
Probably a problem in the NetBeans project type, 
but I'm not sure where to file bugs just on that.

Edit some openide unit test.  Every 30 seconds or 
so, the following exception pops up:


Annotation: Exception occurred in Request 
Processor
java.lang.IllegalArgumentException: Folder URL 
must end with '/'. Was: 
file:/C:/space/nb_all/openide/build/test/unit/clas
ses
	at 
org.netbeans.api.java.queries.SourceForBinaryQuery
.findSourceRoots(SourceForBinaryQuery.java:54)
	at 
org.netbeans.modules.javacore.parser.ECRequestDesc
Impl.getCompileAndSourcePath
(ECRequestDescImpl.java:100)
	at 
org.netbeans.modules.javacore.parser.ECRequestDesc
Impl.<init>(ECRequestDescImpl.java:50)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.Re
sourceImpl$ErrorList.initCheck
(ResourceImpl.java:1158)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.Re
sourceImpl$ErrorList.size(ResourceImpl.java:1168)
	at 
org.netbeans.modules.java.JavaEditor.refreshAnnota
tions(JavaEditor.java:373)
	at 
org.netbeans.modules.java.JavaEditor.access$200
(JavaEditor.java:69)
	at 
org.netbeans.modules.java.JavaEditor$2.run
(JavaEditor.java:228)
	at org.openide.util.Task.run
(Task.java:136)
	at 
org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
[catch] at 
org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)
Comment 1 Jesse Glick 2004-08-18 20:50:34 UTC
Have fix with unit test. Workaround: build the test dir before working
with it.

Probably only started being a problem recently, due to changes in the
Java background parser, which apparently now uses ClassPath.EXECUTE as
part of the calculation of the build/.../classes dir.
Comment 2 Jesse Glick 2004-08-18 20:51:49 UTC
Just an FYI for Tom: if you start coming across this class of
exception as a result of parser changes, usually it means that someone
forgot to append '/' to the URL of a folder that does not exist on
disk - a common mistake.
Comment 3 Jesse Glick 2004-08-18 22:47:53 UTC
committed   * Up-To-Date  1.34       
apisupport/project/src/org/netbeans/modules/apisupport/project/ClassPathProviderImpl.java
committed   * Up-To-Date  1.6        
apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ClassPathProviderImplTest.java
Comment 4 Marian Mirilovic 2005-12-20 15:51:33 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.