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 163027

Summary: [67cat] IllegalArgumentException: URI is not absolute
Product: editor Reporter: giorgio42 <giorgio42>
Component: Parsing & IndexingAssignee: Jan Jancura <jjancura>
Status: VERIFIED FIXED    
Severity: blocker CC: giorgio42, ki4ngel, mschovanek, pluszak, vstejskal
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=149770
Issue Type: DEFECT Exception Reporter: 149770
Attachments: stacktrace
stacktrace
stacktrace

Description giorgio42 2009-04-19 00:00:43 UTC
Build: NetBeans IDE Dev (Build 090418)
VM: Java HotSpot(TM) Client VM, 14.0-b11, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b02
OS: Windows XP, 5.1, x86

User Comments:
giorgio42: Initial run of 090418 just finished all standard tasks (importing 6.5 settings, project opening and scanning, task scanning). The editor area shows just to tabs, the Start Page and a (simple) Main.java from a project I opened by clicking on one of the recent projects links in the start page. Tabbed back to start page, then switched away from NetBeans to a different application, then switched back to NetBeans and clicked the Main.java tab. At this point the exception was thrown.



Stacktrace: 
java.lang.IllegalArgumentException: URI is not absolute
        at java.net.URI.toURL(URI.java:1080)
        at org.netbeans.modules.parsing.impl.indexing.Util.resolveUrl(Util.java:133)
        at org.netbeans.modules.parsing.spi.indexing.support.IndexResult.getUrl(IndexResult.java:87)
        at org.netbeans.modules.parsing.spi.indexing.support.IndexResult.getFile(IndexResult.java:110)
        at org.netbeans.modules.tasklist.impl.Loader.loadTasks(Loader.java:127)
        at org.netbeans.modules.tasklist.impl.Loader.run(Loader.java:95)
Comment 1 giorgio42 2009-04-19 00:00:51 UTC
Created attachment 80429 [details]
stacktrace
Comment 2 giorgio42 2009-04-19 21:04:12 UTC
Build: NetBeans IDE Dev (Build 090418)
VM: Java HotSpot(TM) Client VM, 14.0-b11, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b02
OS: Windows XP, 5.1, x86

User Comments: 
while editing a javascript section in a JSP page.

Stacktrace: 
java.lang.IllegalArgumentException: URI is not absolute
        at java.net.URI.toURL(URI.java:1080)
        at org.netbeans.modules.parsing.impl.indexing.Util.resolveUrl(Util.java:133)
        at org.netbeans.modules.parsing.spi.indexing.support.IndexResult.getUrl(IndexResult.java:87)
        at org.netbeans.modules.parsing.spi.indexing.support.IndexResult.getFile(IndexResult.java:110)
        at org.netbeans.modules.tasklist.impl.Loader.loadTasks(Loader.java:127)
        at org.netbeans.modules.tasklist.impl.Loader.run(Loader.java:95)
Comment 3 giorgio42 2009-04-19 21:04:22 UTC
Created attachment 80457 [details]
stacktrace
Comment 4 giorgio42 2009-04-19 21:06:05 UTC
Build: NetBeans IDE Dev (Build 090418)
VM: Java HotSpot(TM) Client VM, 14.0-b11, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b02
OS: Windows XP, 5.1, x86

User Comments: 
Closed the JSP file that caused the exception previously. Now the exception is thrown when I try to open the file by double clicking in the Projects window.

Stacktrace: 
java.lang.IllegalArgumentException: URI is not absolute
        at java.net.URI.toURL(URI.java:1080)
        at org.netbeans.modules.parsing.impl.indexing.Util.resolveUrl(Util.java:133)
        at org.netbeans.modules.parsing.spi.indexing.support.IndexResult.getUrl(IndexResult.java:87)
        at org.netbeans.modules.parsing.spi.indexing.support.IndexResult.getFile(IndexResult.java:110)
        at org.netbeans.modules.tasklist.impl.Loader.loadTasks(Loader.java:127)
        at org.netbeans.modules.tasklist.impl.Loader.run(Loader.java:95)
Comment 5 giorgio42 2009-04-19 21:06:22 UTC
Created attachment 80458 [details]
stacktrace
Comment 6 Vitezslav Stejskal 2009-04-20 09:53:34 UTC
local changeset: 038654fe2597
Comment 7 Vitezslav Stejskal 2009-04-20 12:54:04 UTC
*** Issue 163097 has been marked as a duplicate of this issue. ***
Comment 8 Martin Schovanek 2009-04-20 16:40:03 UTC
This issue is considered as Nb 6.7 Beta stopper, please fixed in Beta branch as well.

Verified by QE in Build jet-main-487-on-090420
Comment 9 Vitezslav Stejskal 2009-04-20 21:04:27 UTC
Transplanted to release67_beta as http://hg.netbeans.org/release67_beta/rev/42a847c987c2
Comment 10 Quality Engineering 2009-04-21 08:12:23 UTC
Integrated into 'main-golden', will be available in build *200904210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/038654fe2597
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #163027 - attempting to fix problems in URL resolution; plus better exception message
Comment 11 Jiri Prox 2009-04-22 10:53:13 UTC
Martine, can you please verify it in beta? thanks
Comment 12 Martin Schovanek 2009-04-22 11:37:44 UTC
Verified by QE in: NetBeans IDE 6.7 Beta (Build 200904220001)