ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject corrupt jar files and javac
Date Fri, 16 Sep 2005 10:37:51 GMT

I would guess from this trace that there is a bad JAR file somewhere in 
my (long, convoluted, m2-tasks created) classpath, something breaking javac.

the problem of course is that javac isnt helpful enough to tell me which 
file. I have tried unzipping everything, but of course, ant's <unzip> 
task doesnt complain at all, and nor, apparently, does <jar> and <exec 
executable="jar" />.

what else do I have to track this down?

compile:
    [depend] The class 
org.smartfrog.services.deployapi.transport.config.Axis2ServiceImpl_Stub 
in file 
/home/slo/Projects/SmartFrog/Forge/core/components/deployapi/build/classes/org/smartfrog/services/deployapi/transport/config/Axis2ServiceImpl_Stub.class

is out of date due to 
org.smartfrog.services.deployapi.transport.config.Axis2Service but has 
not been deleted because its source file could not be determined
[core:javac] Compiling 13 source files to 
/home/slo/Projects/SmartFrog/Forge/core/components/deployapi/build/classes
[core:javac] java.lang.IndexOutOfBoundsException
[core:javac] 	at 
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:122)
[core:javac] 	at 
com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1562)
[core:javac] 	at 
com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1518)
[core:javac] 	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
[core:javac] 	at 
com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:614)
[core:javac] 	at 
com.sun.tools.javac.jvm.ClassReader.loadClass(ClassReader.java:1612)
[core:javac] 	at 
com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:794)
[core:javac] 	at 
com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:963)
[core:javac] 	at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:1726)
[core:javac] 	at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:1649)
[core:javac] 	at com.sun.tools.javac.tree.Tree$Select.accept(Tree.java:993)
[core:javac] 	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:256)
[core:javac] 	at com.sun.tools.javac.comp.Attr.attribType(Attr.java:284)
[core:javac] 	at 
com.sun.tools.javac.comp.MemberEnter.attribImportType(MemberEnter.java:655)
[core:javac] 	at 
com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:539)
[core:javac] 	at com.sun.tools.javac.tree.Tree$Import.accept(Tree.java:401)
[core:javac] 	at 
com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:383)
[core:javac] 	at 
com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:395)
[core:javac] 	at 
com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:506)
[core:javac] 	at 
com.sun.tools.javac.tree.Tree$TopLevel.accept(Tree.java:386)
[core:javac] 	at 
com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:383)
[core:javac] 	at 
com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:777)
[core:javac] 	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
[core:javac] 	at 
com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:614)
[core:javac] 	at com.sun.tools.javac.comp.Enter.complete(Enter.java:448)
[core:javac] 	at com.sun.tools.javac.comp.Enter.main(Enter.java:426)
[core:javac] 	at 
com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:382)
[core:javac] 	at com.sun.tools.javac.main.Main.compile(Main.java:592)
[core:javac] 	at com.sun.tools.javac.main.Main.compile(Main.java:544)
[core:javac] 	at com.sun.tools.javac.Main.compile(Main.java:58)
[core:javac] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[core:javac] 	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[core:javac] 	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[core:javac] 	at java.lang.reflect.Method.invoke(Method.java:585)
[core:javac] 	at 
org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
[core:javac] 	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
[core:javac] 	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
[core:javac] 	at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message