ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murphy, Tom (T06)" <murphy...@naptheon.com>
Subject Zip Exception during build, but build completes successfully
Date Mon, 24 Mar 2003 16:29:01 GMT
Using Java 1.3.1 on AIX 5.2, I get a ZipException during the build process.
Normally I'd think it's a path/classpath problem, but here the rest of the
build completes successfully.  Running Ant with the -debug flag, the
exception occurs after the lines

	Apache Ant version 1.5.1 compiled on October 2 2002
	Buildfile: build.xml

but before the line

	Detected Java version: 1.3 in: /usr/java131/jre

After that, as I said, build completes successfully.  My project doesn't use
any zip files, and the error seems to occur while Ant is "setting up"--i.e.,
before processing my stuff--so I'm not sure what file it's trying to open.
Does anyone know?

A similar question was asked a while back
(http://archives.apache.org/eyebrowse/ReadMsg?listName=user@ant.apache.org&m
sgNo=7271) but didn't get a response.  Any help is appreciated.

My stack trace err msg follows:
java.util.zip.ZipException: error in opening zip file
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:127)
	at java.util.jar.JarFile.<init>(JarFile.java:138)
	at java.util.jar.JarFile.<init>(JarFile.java:80)
	at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:526)
	at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:491)
	at sun.misc.URLClassPath$2.run(URLClassPath.java:287)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.misc.URLClassPath.getLoader(URLClassPath.java(Compiled Code))
	at sun.misc.URLClassPath.getLoader(URLClassPath.java(Compiled Code))
	at sun.misc.URLClassPath.getResource(URLClassPath.java:162)
	at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:675)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:238)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:514)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:441)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:446)
	at java.lang.Class.forName1(Native Method)
	at java.lang.Class.forName(Class.java:142)
	at
org.apache.tools.ant.util.JavaEnvUtils.<clinit>(JavaEnvUtils.java:125)
	at org.apache.tools.ant.Main.runBuild(Main.java:567)
	at org.apache.tools.ant.Main.start(Main.java:196)
	at org.apache.tools.ant.Main.main(Main.java:235)

Mime
View raw message