ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Meals" <tme...@intraware.com>
Subject Re: javac fails intermittently
Date Thu, 02 Aug 2001 18:44:03 GMT
Richard --

What OS are you using?  Any Error (as opposed to Exception) is bad news,
and usually something wrong with the JVM or the machine.  Do other
applications (Java and non-Java) have problems on the system?

If it's RedHat Linux 7.0, there are some known issues with JDK 1.3.
There have been a few postings about how to fix it (see the mail
archives), but I've found the simplest was to disable the HotSpot VM.
In Ant, you can define to use the "classic" compiler as opposed to the
"modern", which is the default for 1.3 VMs.  If other Java apps have
similar problems, consider changing it system-wide.  Look around
${JAVA_HOME}/lib/jre/java.cnf (?), I think.

Tim

Richard Rodrigues wrote:

>  Hi,Sorry if this has been posted earlier.My ant build runs into the
> following problem often.The funny part is if I run the build again it
> works without a hitch.     [javac] An exception has occurred in the
> compiler (1.3.0). Please file a bug
>  at the Java Developer Connection
> (http://java.sun.com/cgi-bin/bugreport.cgi).
> Include your program and the following diagnostic in your report.
> Thank you.
>     [javac] java.lang.InternalError: jzentry == 0
>     [javac]     at
> java.util.zip.ZipFile$2.nextElement(ZipFile.java:297)
>     [javac]     at
> com.sun.tools.javac.v8.code.ClassReader.openArchive(ClassReader.java:893)
>
>     [javac]     at
> com.sun.tools.javac.v8.code.ClassReader.list(ClassReader.java:1095)
>     [javac]     at
> com.sun.tools.javac.v8.code.ClassReader.listAll(ClassReader.java:1180)
>
>     [javac]     at
> com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1202)
>     [javac]     at
> com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:955)
>
>     [javac]     at
> com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
>     [javac]     at
> com.sun.tools.javac.v8.comp.Enter._case(Enter.java:424)
>     [javac]     at
> com.sun.tools.javac.v8.tree.Tree$TopLevel.visit(Tree.java:349)
>     [javac]     at
> com.sun.tools.javac.v8.comp.Enter.classEnter(Enter.java:392)
>     [javac]     at
> com.sun.tools.javac.v8.comp.Enter.classEnter(Enter.java:410)
>     [javac]     at
> com.sun.tools.javac.v8.comp.Enter.main(Enter.java:540)
>     [javac]     at
> com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:357)
>     [javac]     at com.sun.tools.javac.v8.Main.compile(Main.java:247)
>     [javac]     at com.sun.tools.javac.Main.compile(Main.java:26)
>     [javac]     at java.lang.reflect.Method.invoke(Native Method)
>     [javac]     at
> org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:99)
>
>     [javac]     at
> org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:461)
>     [javac]     at
> org.apache.tools.ant.Target.execute(Target.java:153)
>     [javac]     at
> org.apache.tools.ant.Project.runTarget(Project.java:898)
>     [javac]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:536)
>     [javac]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:510)
> [javac]     at org.apache.tools.ant.Main.runBuild(Main.java:421)
>     [javac]     at org.apache.tools.ant.Main.main(Main.java:149)
>     [javac] Compile failed, messages should have been provided.Am I
> missing something or is there a workaround?Is this related to javac
> not releasing locks?Regards,Richard.

--
Tim Meals
Web Applications Developer

mailto:tmeals@intraware.com
fax:      925-253-4599               http://www.intraware.com
operator: 925-253-4500        Intraware ... Control Your Technology



Mime
View raw message