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 179277 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-07 02:06 UTC by Exceptions Reporter
Modified: 2010-03-10 23:15 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 163252


Attachments
stacktrace (2.33 KB, text/plain)
2010-01-07 02:06 UTC, Exceptions Reporter
Details
stacktrace (2.33 KB, text/plain)
2010-02-15 06:14 UTC, Jindrich Sedek
Details
stacktrace (2.33 KB, text/plain)
2010-02-23 15:35 UTC, Petr Jiricka
Details
stacktrace (2.33 KB, text/plain)
2010-03-08 05:51 UTC, Jindrich Sedek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2010-01-07 02:06:25 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows XP, 5.1, x86

User Comments:
Lolo_101: Did Ctrl-left click on a JSP tag in a JSP page



Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1937)
   at org.netbeans.modules.web.core.syntax.JSPHyperlinkProvider$1.run(JSPHyperlinkProvider.java:427)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1371)
   at org.netbeans.modules.web.core.syntax.JSPHyperlinkProvider.performClickAction(JSPHyperlinkProvider.java:318)
   at org.netbeans.lib.editor.hyperlink.HyperlinkOperation$1.performClickAction(HyperlinkOperation.java:303)
   at org.netbeans.lib.editor.hyperlink.HyperlinkOperation.performAction(HyperlinkOperation.java:262)
Comment 1 Exceptions Reporter 2010-01-07 02:06:32 UTC
Created attachment 93109 [details]
stacktrace
Comment 2 Marek Fukala 2010-01-07 07:21:56 UTC
Is there any chance you can reproduce the problem and send me the steps?
Comment 3 Exceptions Reporter 2010-01-28 07:59:57 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=163252
Comment 4 Jindrich Sedek 2010-02-15 06:14:10 UTC
Created attachment 94156 [details]
stacktrace

Create new Web Application
Create new tag library
create new tag handler and add it into the library
use the library in jsp page and use tag handler in jsp page
--------------
        <%@taglib prefix="d"  uri="/WEB-INF/tlds/newtag_library" %>
        <d:NewTagHandler></d:NewTagHandler>
--------------
invoke hyperlinkg on tag handler -> StringIndexOutOFBoundException is thrown
Comment 5 Petr Jiricka 2010-02-23 15:35:15 UTC
Created attachment 94437 [details]
stacktrace

Hyperlinking on a JSP custom tag name? (I think)
Comment 6 Exceptions Reporter 2010-03-04 02:45:00 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=163252
Comment 7 Jindrich Sedek 2010-03-08 05:51:06 UTC
Created attachment 94843 [details]
stacktrace

Invoked hyperlink to an ICEFaces tag - The  source is probably missing, but a status bar message should be shown
Comment 8 Tomasz Slota 2010-03-10 08:10:43 UTC
fixed.

http://hg.netbeans.org/web-main/rev/2653bb438953
Comment 9 Quality Engineering 2010-03-10 23:15:36 UTC
Integrated into 'main-golden', will be available in build *201003110200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2653bb438953
User: Tomasz Slota <tslota@netbeans.org>
Log: #179277: StringIndexOutOfBoundsException: String index out of range: -1