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.
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)
Created attachment 119985 [details] stacktrace
may be happens if elements are deleted and at the same time jpql is validated, will add some simple check
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