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.
Summary: | indexOutOfBounds when flushing caches | ||
---|---|---|---|
Product: | obsolete | Reporter: | pepeio <pepeio> |
Component: | archivesupport | Assignee: | issues@obsolete <issues> |
Status: | CLOSED WONTFIX | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
pepeio
2008-03-19 10:59:13 UTC
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 |