Exception In Thread "main" java.lang.ClassFormatError: Incompatible magic value 0 in class file com/agile/api/pc/Session (Doc ID 2232364.1)

Last updated on FEBRUARY 19, 2017

Applies to:

Oracle Agile Product Collaboration - Version 9.3.4.0 and later
Information in this document applies to any platform.

Symptoms

On : 9.3.4.0 version, SDK (PC)

When attempting to run standalone java code which uses Agile SDk API,
the following error occurs.

ERROR
-----------------------
Exception in thread "main" java.lang.ClassFormatError: Incompatible magic value 0 in class file com/agile/api/pc/Session
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
  at com.agile.api.NetworkClassLoader.findClass(NetworkClassLoader.java:81)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  at com.agile.api.AgileSessionFactory.createSession(AgileSessionFactory.java:1026)
  at com.pepsico.agile.sync.utility.SyncUtility.getAgileSession(SyncUtility.java:65)
  at com.pepsico.agile.sync.SyncAttributes.executeMainMethod(SyncAttributes.java:85)
  at com.pepsico.agile.sync.SyncAttributes.main(SyncAttributes.java:53)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1.Configure the SDK standlaone code in eclipse IDE
2. try to run it, error occurs



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms