Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Classloading problem

807591Feb 22 2008 — edited Mar 10 2008
Hi All
Does anyone know why i might be get the following classloading problem (see stack below). The jars are on the classpath ok, there's just an error reading the jar. The file permissions are ok too. Has anyone seen this before? Any ideas on what could cause this error? I'm using 1.6.0_04 on linux

many thanks

java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.xxxxxxxx.mng.jam.engine.Runner$1.getValueClass(Runner.java:150)
at com.xxxxxxxx.mng.jam.engine.JamEngineImpl.registerJam(JamEngineImpl.java:83)
at com.xxxxxxxx.mng.jam.engine.CBBJamRunner.startJam(CBBJamRunner.java:103)
at com.xxxxxxxx.mng.jam.engine.CBBJamRunner.process(CBBJamRunner.java:78)
...
Caused by: java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 11 more
Caused by: java.util.zip.ZipException: error reading zip file
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1200(ZipFile.java:29)
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:447)
at java.util.zip.ZipFile$1.fill(ZipFile.java:230)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
at java.io.DataInputStream.readFully(DataInputStream.java:178)
at java.util.jar.JarFile.getBytes(JarFile.java:360)
at java.util.jar.JarFile.getManifestFromReference(JarFile.java:159)
at java.util.jar.JarFile.getManifest(JarFile.java:146)
at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:693)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:221)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
... 17 more
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2008
Added on Feb 22 2008
4 comments
230 views