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 146242 - [65cat] IllegalArgumentException: /Users/alc/NetBeansProjects/benevolentact/benevolentact-war/src/main/webapp/WEB-INF / /Users/alc/NetBeansProjects/benevolentact/benevolentact-war/src/main/webapp/WEB-INF/tlds
Summary: [65cat] IllegalArgumentException: /Users/alc/NetBeansProjects/benevolentact/b...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Mysik
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
: 148290 170101 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-04 21:06 UTC by big_al
Modified: 2009-08-24 19:07 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 61901


Attachments
stacktrace (951 bytes, text/plain)
2008-09-04 21:06 UTC, big_al
Details
stacktrace (3.89 KB, text/plain)
2009-07-26 15:01 UTC, eventlistener
Details

Note You need to log in before you can comment on or make changes to this bug.
Description big_al 2008-09-04 21:06:06 UTC
Build: NetBeans IDE Dev (Build 200809021401)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_05-b13-52, Java(TM) SE Runtime Environment, 1.6.0_05-b13-120
OS: Mac OS X, 10.5.2, x86_64

User Comments: 


Stacktrace: 
java.lang.IllegalArgumentException: /Users/alc/NetBeansProjects/benevolentact/benevolentact-war/src/main/webapp/WEB-INF / /Users/alc/NetBeansProjects/benevolentact/benevolentact-war/src/main/webapp/WEB-INF/tlds/facelets.tld
        at org.netbeans.modules.web.jspparser.ContextUtil.findRelativePath(ContextUtil.java:103)
        at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport.getImplicitLocation(WebAppParseSupport.java:710)
        at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport.reinitTagLibMappings(WebAppParseSupport.java:684)
        at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport.reinitCaches(WebAppParseSupport.java:737)
        at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport$ReinitCaches.run(WebAppParseSupport.java:745)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
Comment 1 big_al 2008-09-04 21:06:23 UTC
Created attachment 69097 [details]
stacktrace
Comment 2 Tomas Mysik 2008-09-24 12:15:03 UTC
Any possibility to provide exact steps to reproduce please? Thanks a lot.
Comment 3 big_al 2008-09-24 15:34:26 UTC
Sorry it's been too long since the exception occured, so I can't remember.
Comment 4 Tomas Mysik 2008-09-25 10:26:24 UTC
*** Issue 148290 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Mysik 2008-09-25 10:28:38 UTC
To hurdleg: Is this issue reliably reproducible for you? Do you have exact steps to reproduce please? It would help a 
lot. Thanks.
Comment 6 hurdleg 2008-09-25 13:29:38 UTC
Hello: No, unfortunately, I can't repeat this behaviour.
Seems to have disappeared: I rebooted my laptop, , and started NetBeans 6.1. I re-created the Web application, using 
the Java Server Faces framework. I created a new page, and the visual editor appeared as expected.
I'm satisfied that this issued has been resolved. I'll leave it to you to change the status.
cheers,
gerry
.
Comment 7 Tomas Mysik 2008-10-01 16:03:46 UTC
This issue is likely related to issue #130683 but unfortunately I have no reliable steps to reproduce so it's very 
hard to find out the cause and fix it...
Comment 8 eventlistener 2009-07-26 15:01:41 UTC
This issue was originally marked as duplicate of issue 130683, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE Dev (Build 200907251401)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows Vista, 6.0, x86

User Comments: 
This bug reproduced in last development build (netbeans-trunk-nightly-200907251401.zip)

Stacktrace: 
java.lang.IllegalArgumentException: C:\Users\Unknown User\Documents\NetBeansProjects\nakrutkam.net\web / C:\Users\Unknown User\Documents\NetBeansProjects\nakrutkam.net\web\offers.jspx
        at org.netbeans.modules.web.jspparser.ContextUtil.findRelativePath(ContextUtil.java:103)
        at org.netbeans.modules.web.jspparser.ContextUtil.findRelativeContextPath(ContextUtil.java:121)
        at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport.getJSPUri(WebAppParseSupport.java:455)
        at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport.createCompilationContext(WebAppParseSupport.java:422)
        at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport.getJspOpenInfo(WebAppParseSupport.java:242)
        at org.netbeans.modules.web.jspparser.JspParserImpl.getJspOpenInfo(JspParserImpl.java:180)
Comment 9 eventlistener 2009-07-26 15:01:51 UTC
Created attachment 85225 [details]
stacktrace
Comment 10 Exceptions Reporter 2009-07-26 15:02:06 UTC
This issue already has 53 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=61901
Comment 11 Petr Jiricka 2009-07-27 16:22:12 UTC
Jirko S, please advise. Looking at the latest stack trace from a very fresh build:
http://www.netbeans.org/nonav/issues/showattachment.cgi/85225/stacktrace.txt

It looks like the following call returns false: 
FileUtil.isParentOf("C:\Users\Unknown User\Documents\NetBeansProjects\nakrutkam.net\web", "C:\Users\Unknown
User\Documents\NetBeansProjects\nakrutkam.net\web\offers.jspx")

How can that happen? I see that this method may silently swallow FileStateInvalidException, which makes things like this
hard to debug. Is this what happened? And why? Wouldn't it be better to log the exception so it can be better diagnosed?
Thanks.
Comment 12 Jiri Skrivanek 2009-07-28 09:01:52 UTC
Similar problem is described in issue 130998. There probably (never was able to reproduce it locally) exist two valid
FileObjects for one physical File. I hope I have fixed it because I haven't got any new report since then. I added some
logging directly into ContextUtil from which we can diagnose if this is the same case. Of course much better would be to
have reliable test case but I am afraid this is pretty random issue.

core-main #867354e561b8
Comment 13 Petr Jiricka 2009-07-28 12:35:42 UTC
Thanks many times Jirko. Although I am a bit skeptical that this is a duplicate of issue 130998, because that one was
fixed in May (before 6.7), and some of the reports in this issue are from 6.7 RC2 and 6.8 Dev. Anyway, for now I am
marking as incomplete, let's wait for more logs with the new debug message. Thanks.
Comment 14 Marian Mirilovic 2009-07-28 12:39:24 UTC
decreased to P2 instead INCOMPLETE .... let's wait for new logs
Comment 15 Tomas Mysik 2009-07-28 13:32:47 UTC
IMHO it is a "duplicate" of issue #130683. AFAIK this can happen only using these steps (that's why I always ask for
steps to reproduce, to find out another possible scenario):
- have a project A in directory B
- delete project A (together with directory B)
- create a new project A in directory B

=> now it _can_ happen (so it is RANDOM) that old parse proxy is used instead of creating a new one (it wasn't
gc'ed yet or possible memory leak), so FileObject for WebRoot is not null but is invalid => FileUtil.isParentOf()
returns false. I will try to fix/work around, hopefully it will help.
Comment 16 Quality Engineering 2009-07-28 17:48:06 UTC
Integrated into 'main-golden', will be available in build *200907281401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/867354e561b8
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #146242 - Added debug messages.
Comment 17 Tomas Mysik 2009-07-29 13:44:23 UTC
Could be fixed, let's wait for feedback.
http://hg.netbeans.org/web-main/rev/64b02bc640be
Comment 18 Quality Engineering 2009-07-30 06:02:25 UTC
Integrated into 'main-golden', will be available in build *200907300201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/64b02bc640be
User: Tomas Mysik <tmysik@netbeans.org>
Log: #146242: [65cat] IllegalArgumentException: /Users/alc/NetBeansProjects/benevolentact/benevolentact-war/src/main/webapp/WEB-INF / /Users/alc/NetBeansProjects/benevolentact/benevolentact-war/src/main/webapp/WEB-INF/tlds
Comment 19 Tomas Mysik 2009-08-14 09:12:25 UTC
*** Issue 170101 has been marked as a duplicate of this issue. ***