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 213146 - ArrayIndexOutOfBoundsException: 0
Summary: ArrayIndexOutOfBoundsException: 0
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2012-05-29 10:54 UTC by viggonavarsete
Modified: 2012-05-29 11:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 188548


Attachments
stacktrace (9.96 KB, text/plain)
2012-05-29 10:54 UTC, viggonavarsete
Details

Note You need to log in before you can comment on or make changes to this bug.
Description viggonavarsete 2012-05-29 10:54:18 UTC
Build: NetBeans IDE Dev (Build 201205280002)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13
OS: Linux

User Comments:
viggonavarsete: I was just about to delete two projects from within the IDE when this happened. I have been testing the TS_71_EJB test suite, and have made many project and been able to delete them successfully, but this time the IDE failed.




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 0
   at org.netbeans.modules.j2ee.persistence.spi.jpql.TypeRepository.fillTypeElement(TypeRepository.java:125)
   at org.netbeans.modules.j2ee.persistence.spi.jpql.TypeRepository.getType(TypeRepository.java:110)
   at org.netbeans.modules.j2ee.persistence.spi.jpql.ManagedType.getType(ManagedType.java:93)
   at org.eclipse.persistence.jpa.internal.jpql.SemanticValidator.visit(SemanticValidator.java:880)
   at org.eclipse.persistence.jpa.internal.jpql.parser.AbstractSchemaName.accept(AbstractSchemaName.java:42)
   at org.eclipse.persistence.jpa.internal.jpql.SemanticValidator.visit(SemanticValidator.java:1706)
Comment 1 viggonavarsete 2012-05-29 10:54:24 UTC
Created attachment 119985 [details]
stacktrace
Comment 2 Sergey Petrov 2012-05-29 11:10:50 UTC
may be happens if elements are deleted and at the same time jpql is validated, will add some simple check
Comment 3 Sergey Petrov 2012-05-29 11:30:15 UTC
I'm sure it's random so it's hard to validate/test but array size check is added
at worst case it will result in another issue but this one is fixed http://hg.netbeans.org/web-main/rev/3f464c1fadfb