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 130683 - IllegalArgumentException from jspparser.ContextUtil.findRelativePath
Summary: IllegalArgumentException from jspparser.ContextUtil.findRelativePath
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Andrei Badea
URL: http://statistics.netbeans.org/except...
Keywords:
: 133740 134085 134943 135401 135906 143202 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-20 17:08 UTC by Lukas Jungmann
Modified: 2009-08-02 14:15 UTC (History)
18 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 35127


Attachments
ide log (101.71 KB, text/plain)
2008-03-20 17:54 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2008-03-20 17:08:49 UTC
-create a new webapp
-d'n'd websvc manager->web services->facebook->Social NS->...->events_get into a JSP

=> (should be shown directly to the user and not only in the log:)
java.lang.IllegalArgumentException: /home/lukas/NetBeansProjects/WebApplication4/web /
/home/lukas/NetBeansProjects/WebApplication4/web/index.jsp
        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:400)
        at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport.createCompilationContext(WebAppParseSupport.java:372)
        at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport.getJspOpenInfo(WebAppParseSupport.java:213)
        at org.netbeans.modules.web.jspparser.JspParserImpl.getJspOpenInfo(JspParserImpl.java:139)
        at org.netbeans.modules.web.core.jsploader.TagLibParseSupport.getCachedOpenInfo(TagLibParseSupport.java:268)
        at org.netbeans.modules.web.core.jsploader.JspDataObject.updateFileEncoding(JspDataObject.java:222)
        at org.netbeans.modules.web.core.jsploader.BaseJspEditorSupport.saveDocument(BaseJspEditorSupport.java:365)
        at org.netbeans.modules.web.core.jsploader.BaseJspEditorSupport.saveDocument(BaseJspEditorSupport.java:347)
        at org.netbeans.modules.web.core.jsploader.BaseJspEditorSupport$4.save(BaseJspEditorSupport.java:309)
        at org.netbeans.modules.websvc.saas.codegen.java.support.Util.showMethod(Util.java:564)
        at org.netbeans.modules.websvc.saas.codegen.java.JaxRsEditorDrop$1.run(JaxRsEditorDrop.java:151)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 Lukas Jungmann 2008-03-20 17:50:17 UTC
Tome, this seems to be yours - happens also after a rigthclick on the web project's root node with almost the same
stacktrace
Comment 2 Lukas Jungmann 2008-03-20 17:53:37 UTC
another interesting message in the IDE's log related to this:

USER: /home/lukas/NetBeansProjects/WebApplication4/web / /home/lukas/NetBeansProjects/WebApplication4/web/index.jsp
WARNING [null]: WARNING - ErrorManager detected cyclic exception nesting:
WARNING [null]:         java.lang.IllegalArgumentException: /home/lukas/NetBeansProjects/WebApplication4/web /
/home/lukas/NetBeansProjects/WebApplication4/web/index.jsp
WARNING [null]: Be sure not to annotate an exception with itself, directly or indirectly.
Comment 3 Lukas Jungmann 2008-03-20 17:54:37 UTC
Created attachment 58773 [details]
ide log
Comment 4 Lukas Jungmann 2008-03-23 22:50:57 UTC
in netbeans-hudson-trunk-1247-javaee there is this exception randomly poping up quite often in various occasions, ie:
-after creating a web project
-after deleting a web project

=> pretty annoying and very visible => P2
Comment 5 Tomas Mysik 2008-03-28 17:04:29 UTC
This situation is caused by equals() and hashCode() methods in org.netbeans.modules.web.api.webmodule.WebModule. These 
method should be removed because they make no sense - I will try to do it after NB 6.1 and we will see.

Lowering priority to P3 because this situation only happens if you delete project and immediately create a new one 
with the same name - not so common case I would say (agreed by jungi).
Comment 6 Tomas Mysik 2008-04-08 10:31:23 UTC
Reassigning to Andrei - thanks a lot.
Comment 7 Karthikeyan Rajeswaran 2008-04-20 20:02:39 UTC
See also issue 130865 .
Comment 8 haroldcarr 2008-04-28 05:04:23 UTC
I would suggest raising the priority to P2.
I delete and recreate projects with the SAME name all the time when I give Metro demos.  I have a lot of precanned web
services as part of the demo that depend on certain names.  So I need to use the same name when I recreate it at the
demo.  It has been *very* embarresing (for me and for netbeans) to have to shutdown nb (and glassfish) and restart to
work around this bug.
Comment 9 haroldcarr 2008-04-28 05:04:39 UTC
I would suggest raising the priority to P2.
I delete and recreate projects with the SAME name all the time when I give Metro demos.  I have a lot of precanned web
services as part of the demo that depend on certain names.  So I need to use the same name when I recreate it at the
demo.  It has been *very* embarrasing (for me and for netbeans) to have to shutdown nb (and glassfish) and restart to
work around this bug.
Comment 10 Lukas Jungmann 2008-05-13 12:23:24 UTC
*** Issue 134943 has been marked as a duplicate of this issue. ***
Comment 11 Lukas Jungmann 2008-05-15 13:52:04 UTC
*** Issue 133740 has been marked as a duplicate of this issue. ***
Comment 12 Lukas Jungmann 2008-05-15 13:53:58 UTC
this issue has more then 50 duplicates => P2
Comment 13 Lukas Jungmann 2008-05-20 10:30:11 UTC

*** This issue has been marked as a duplicate of 135401 ***
Comment 14 Lukas Jungmann 2008-05-20 10:31:41 UTC
ooops :(
Comment 15 Lukas Jungmann 2008-05-20 10:31:48 UTC
*** Issue 135401 has been marked as a duplicate of this issue. ***
Comment 16 Lukas Jungmann 2008-05-27 16:32:54 UTC
*** Issue 135906 has been marked as a duplicate of this issue. ***
Comment 17 Exceptions Reporter 2008-06-04 16:11:11 UTC
This issue has already 100 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=35127
Comment 18 Andrei Badea 2008-06-05 13:50:10 UTC
a654bdb61cbd
Comment 19 Petr Jiricka 2008-06-05 14:10:23 UTC
Andrei - great, thanks! Honzo, should this issue be put into the patch 2?
Comment 20 Quality Engineering 2008-06-05 15:51:19 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #239 build
Changeset: http://hg.netbeans.org/main/rev/a654bdb61cbd
User: Andrei Badea <abadea@netbeans.org>
Log: #130683: IllegalArgumentException from jspparser.ContextUtil.findRelativePath
Comment 21 Tomas Mysik 2008-06-19 15:38:51 UTC
*** Issue 134085 has been marked as a duplicate of this issue. ***
Comment 22 Lukas Jungmann 2008-06-24 15:11:20 UTC
v.
Comment 23 Tomas Mysik 2008-08-16 08:29:24 UTC
*** Issue 143202 has been marked as a duplicate of this issue. ***