Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 186321 - [69cat] IndexOutOfBoundsException: Index: 0, Size: 0
[69cat] IndexOutOfBoundsException: Index: 0, Size: 0
Product: java
Classification: Unclassified
Component: Freeform
All All
: P1 (vote)
: 6.x
Assigned To: Tomas Zezula
EXCEPTIONS_REPORT, 69patch1-verified
Depends on:
  Show dependency treegraph
Reported: 2010-05-18 18:28 UTC by jasondonmoyer
Modified: 2010-07-08 07:12 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT

stacktrace (1.86 KB, text/plain)
2010-05-18 18:28 UTC, jasondonmoyer

Note You need to log in before you can comment on or make changes to this bug.
Description jasondonmoyer 2010-05-18 18:28:43 UTC
Build: NetBeans IDE Dev (Build 201005132200)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

User Comments:
jasondonmoyer: typing in the java editor

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.ArrayList.RangeCheck(
   at java.util.ArrayList.get(
Comment 1 jasondonmoyer 2010-05-18 18:28:47 UTC
Created attachment 99156 [details]
Comment 2 Tomas Zezula 2010-05-19 11:30:08 UTC
Workaround is to add:
inside the <annotation-processing> element.
Comment 3 Tomas Zezula 2010-05-19 12:11:45 UTC
Fixed jet-main b4f712722bb0
Comment 4 _ moser 2010-06-04 16:25:40 UTC
Will this be go into the 6.9 release. At the moment this is a total show-stopper for me and I stick with 6.8. Even the proposed workaround does not work in 6.9: with


in the <compilation-unit> section of my project.xml NetBeans 6.9 does not recognize the project anymore. What could I do to use the Refactor-Move packages of a Freeform project in NB 6.9?
Comment 5 Tomas Zezula 2010-06-04 16:29:56 UTC
The workaround should work fine with nb 6.9. If the project is not recognized the project.xml is not according to schema. Please attach the project.xml I will take a look.
Comment 6 _ moser 2010-06-04 16:56:34 UTC
OK, I had to update the xmlns attribute of the <java-data> tag from "" to "" and to add the <ANNOTATION-PROCESSING> tag to all compilation units. Now it works, many thanks.

However, should this be the procedure every user of freeform projects has to go after the release, before refactoring works again? I think this is a show-stopper for the 6.9 release.
Comment 7 Tomas Zezula 2010-06-07 17:55:49 UTC
Finally I've found a way how to reproduce this problem even without having annotation processors enabled. Originally I've thought that the method causing the problem is called only when AP are enabled, but it's also called when there are 2 or more dependent freeform projects. The fix is scheduled for the first patch release. I will also ask if it's still possible to get the fix into NB 6.9 but it's already code frozen.
Comment 8 Peter Pis 2010-06-08 14:04:45 UTC

Product Version: NetBeans IDE Dev (Build 100608-d3de0f34d022)
Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13
System: Linux version 2.6.31-22-generic running on i386; UTF-8; en_US (nb)
Comment 9 Peter Pis 2010-06-08 15:00:04 UTC
will be integrated into 6.9.
Comment 10 Jan Lahoda 2010-06-08 16:13:31 UTC
The patch seems safe to me.

Transplanted to release69 branch:
Comment 11 Peter Pis 2010-06-09 08:58:42 UTC

Product Version: NetBeans IDE 6.9 (Build 201006082101)
Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13
System: Linux version 2.6.31-22-generic running on i386; UTF-8; en_US (nb)
Comment 12 rbalada 2010-06-14 08:16:03 UTC
Transplanted to release691 repository as 0e60fc8c92cd
Comment 13 rbalada 2010-06-14 08:38:03 UTC
Added keyword 6.9.1_CANDIDATE to bugfixes, which were integrated in release69 repository *after* the release691 clone has been created.
Comment 14 Peter Pis 2010-07-02 13:43:48 UTC

NetBeans IDE 6.9.1 Dev (Build 201006302301)

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo