[kaffe] [gump] NPE using Jar files w/o manifest

Adam Heath doogie at brainfood.com
Fri Dec 24 13:02:32 PST 2004


On Thu, 23 Dec 2004, Davanum Srinivas wrote:

> Hi all,
>
> Apache Axis build breaks when jimi zip (http://java.sun.com/products/jimi/) is added to classpath.
> Reason is jimi is a zip file (jimi1_0.zip) and hence does not have a manifest.mf file.
>
> java.lang.NullPointerException
>    at java.util.zip.ZipFile.getZipData0 (ZipFile.java)
>    at java.util.zip.ZipFile.getInputStream (ZipFile.java:102)
>    at org.apache.tools.ant.loader.AntClassLoader2.addPathFile (AntClassLoader2.java:252)
>    at org.apache.tools.ant.AntClassLoader.addPathElement (AntClassLoader.java:447)
>    at org.apache.tools.ant.AntClassLoader.setClassPath (AntClassLoader.java:347)
>    at org.apache.tools.ant.Project.createClassLoader (Project.java:307)
>    at org.apache.tools.ant.taskdefs.Available.eval (Available.java:245)
>    at org.apache.tools.ant.taskdefs.ConditionTask.execute (ConditionTask.java:85)
>    at java.lang.reflect.Method.invoke0 (Method.java)
>    at java.lang.reflect.Method.invoke (Method.java:255)
>
> Thanks,
> dims

Ah, simple.  If we can't find the named entry, return null for the input
stream.  Fix in cvs.





More information about the kaffe mailing list