Operating System - HP-UX
1835215 Members
2370 Online
110078 Solutions
New Discussion

sun.misc.InvalidJarIndexException

 
Geoff Hartnell
Advisor

sun.misc.InvalidJarIndexException

When starting an application on HP-UX 11, I get the following exception (which I don't get on Solaris):

$ Exception in thread "main" sun.misc.InvalidJarIndexException: Invalid index!
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.logica.omg.application.NodeGroupManager.validateNodes(NodeGroupManager.java:381)
at com.logica.omg.application.NodeGroupManager.readConfig(NodeGroupManager.java:349)
at com.logica.omg.application.NodeGroupManager.configure(NodeGroupManager.java:93)
at com.logica.omg.application.NodeGroupManager.start(NodeGroupManager.java:147)
at com.logica.omg.application.OmgManager.main(OmgManager.java:120)


I got round this by removing the INDEX.LIST files from each of three jars (INDEX.LIST attached for each jar). I think these look ok.

Has anyone had similar problems when starting an application and if so how to get round it apart from hacking the jar file to remove INDEX.LIST ?

Thanks,

Geoff
4 REPLIES 4
Geoff Hartnell
Advisor

Re: sun.misc.InvalidJarIndexException

Here's the first INDEX.LIST that caused the exception
Geoff Hartnell
Advisor

Re: sun.misc.InvalidJarIndexException

Here's the next INDEX.LIST
Geoff Hartnell
Advisor

Re: sun.misc.InvalidJarIndexException

Here's the final INDEX.LIST
Geoff Hartnell
Advisor

Re: sun.misc.InvalidJarIndexException

SOLUTION: upgrade the RTE to sdk_13102os11.depot

See http://developer.java.sun.com/developer/bugParade/bugs/4358512.html

Geoff