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 220110

Summary: StringIndexOutOfBoundsException: String index out of range: 72
Product: javaee Reporter: crazyjavahacking
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED FIXED    
Severity: normal CC: akobberup, exceptions_reporter, FrantaM, javydreamercsw, misterm, NukemBy
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 193558
Attachments: stacktrace
stacktrace

Description crazyjavahacking 2012-10-15 11:59:53 UTC
Build: NetBeans IDE Dev (Build 201210140002)
VM: Java HotSpot(TM) Client VM, 20.9-b04, Java(TM) SE Runtime Environment, 1.6.0_34-b04
OS: Windows 7

User Comments:
crazyjavahacking: During regular code completion




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 72
   at java.lang.String.substring(String.java:1934)
   at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider.getCompletionTreePath(JPACodeCompletionProvider.java:321)
   at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider.access$100(JPACodeCompletionProvider.java:91)
   at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.run(JPACodeCompletionProvider.java:225)
   at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery.access$600(JPACodeCompletionProvider.java:106)
   at org.netbeans.modules.j2ee.persistence.editor.completion.JPACodeCompletionProvider$JPACodeCompletionQuery$Task.run(JPACodeCompletionProvider.java:293)
Comment 1 crazyjavahacking 2012-10-15 11:59:54 UTC
Created attachment 125964 [details]
stacktrace
Comment 2 Sergey Petrov 2012-10-16 07:03:14 UTC
*** Bug 220122 has been marked as a duplicate of this bug. ***
Comment 3 Sergey Petrov 2012-10-16 07:05:44 UTC
can someone provide sample code and cursor position?
Comment 4 Sergey Petrov 2012-10-16 08:44:24 UTC
http://hg.netbeans.org/web-main/rev/c563cbd000bc
Comment 5 javydreamercsw 2012-10-16 20:14:17 UTC
Created attachment 126038 [details]
stacktrace

Deleting from a just pasted string.
Comment 6 Quality Engineering 2012-10-17 02:02:45 UTC
Integrated into 'main-golden', will be available in build *201210170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c563cbd000bc
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #220110 remove unused line with exception
Comment 7 Sergey Petrov 2012-10-17 11:14:58 UTC
*** Bug 220264 has been marked as a duplicate of this bug. ***
Comment 8 Sergey Petrov 2012-10-26 12:10:35 UTC
*** Bug 220902 has been marked as a duplicate of this bug. ***
Comment 9 Sergey Petrov 2012-11-19 13:10:51 UTC
*** Bug 222326 has been marked as a duplicate of this bug. ***