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.
This is in a platform based application, happens when starting. Exception in thread "Flushing caches" java.lang.ArrayIndexOutOfBoundsException: 1 at org.netbeans.Archive.flushCaches(Archive.java:235) at org.netbeans.Stamps$Store.store(Stamps.java:467) at org.netbeans.Stamps$Worker.run(Stamps.java:629) I have no idea of the cause for this exception.
I have the same problem. We have this problem after porting our application from NB platform 6 to 6.5 Have some additional information about archive support in NB platform or some solution for fix this problem?
I have some additional information: this exception throws, because to the jar archive puts incorrect resources. In my case it happens after trying to initialize in my code Spring's ClassPathXmlApplicationContext(DEFAULT_APPLICATION_XML) where DEFAULT_APPLICATION_XML declared as private String[] DEFAULT_APPLICATION_XML = {"classpath*:application.xml", "classpath*:application*.xml"}; Spring tries to get from classpath all *.xml from classpath. In some moment program enter to method Archive.getData(JarSource source, String name) with parameters, where name="". In result of with request we have srcId like a "jar:file:/D:/DEVELOPMENT/TRUNK/dist/platform9/core/patches/org-openide-filesystems-sie.jar!/". This data puts to 'requests'. When Archive.flushCaches(...) called, program gets incorrect string from 'requests' map, like "jar:file:/D:/DEVELOPMENT/TRUNK/dist/platform9/core/patches/org-openide-filesystems-sie.jar!/". After splitting string 'parts' array contains only one element and as result - exception will be throw in line 235: byte[] data = src.resource(parts[1]); How correct fix this? I make some "fix" and build my own boot.jar, but I think it's not good idea.
Just got this exception in a 6.9.1 application.
Obsolete issue. Closing.
v/c