2 Replies Latest reply on Aug 26, 2016 10:32 AM by Optimuskck

    Java concurrent program with external jars going into error. java.lang.ClassFormatError: Truncated class file

    Optimuskck

      Hi I am using java concurrent program with Some external jars. It is working perfectly fine on all other instances. But i have instance with 3 bind together. In that instance i am getting exception . when trying to run . The classpath in options as follows

       

      -classpath {javatoplocation}: {appzborg.zip location}:{external jars location}

       

      this error comes even if i edit it to -classpath {javatoplocation}

       

      my exception is like this

       

       

      java.lang.ClassFormatError: Truncated class file
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at oracle.apps.fnd.security.ConnectionManager.class$(ConnectionManager.java:386)
      at oracle.apps.fnd.security.ConnectionManager.<clinit>(ConnectionManager.java:404)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at oracle.apps.fnd.common.AppsContext.class$(AppsContext.java:71)
      at oracle.apps.fnd.common.AppsContext.makeConnectionManager(AppsContext.java:868)
      at oracle.apps.fnd.common.Context.setConnectionManager(Context.java:484)
      at oracle.apps.fnd.common.Context.setConnectionManager(Context.java:468)
      at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:533)
      at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:301)
      at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:144)
      at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:127)
      at oracle.apps.fnd.cp.request.Run.main(Run.java:127)
      

       

      I assume this is something to do with java top location . Any insight or help would be really appreciated .