You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mark Derricutt <ma...@talios.com> on 2002/03/04 21:32:31 UTC

Ant failures....

Hi guys, every so often I get the following error and Ant crashes out, this 
is usually after calling a heap of <ant/> sub tasks.

Anyone know that the problem is/seen it before?  I would do as the bug 
message says and report it to sun, but I dont wanna give them my code :P

Is it a lack of memory issue?



compile:
    [javac] Compiling 21 source files to C:\code\jedit\plugins\SQL\build
    [javac] An exception has occurred in the compiler (1.3.1_01). Please 
file a bug at the Java Developer Connection (http://java.su
n.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:1191)
    [javac]     at 
com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1213)
    [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:92)
    [javac]     at 
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:530)
    [javac]     at org.apache.tools.ant.Task.perform(Task.java:217)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:164)
    [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:182)
    [javac]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:601)
    [javac]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:256)
    [javac]     at org.apache.tools.ant.Task.perform(Task.java:217)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:164)
    [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:182)
    [javac]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:601)
    [javac]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:560)
    [javac]     at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [javac]     at org.apache.tools.ant.Main.start(Main.java:153)
    [javac]     at org.apache.tools.ant.Main.main(Main.java:176)

                                   -- \m/ --
  "...if I seem super human I have been misunderstood." (c) Dream Theater
          mark@talios.com - ICQ: 1934853 JID: talios@myjabber.net

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: exec - help needed

Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 05 Mar 2002, Ram Kumar <ra...@interactive1.com> wrote:
> i want to exec a batch file on windows2000.

you cannot <exec> batch files, you need to execute cmd.exe or
command.com or whatever that things is called with 

/c name-of-the-batch

Could some kind soul with more Windows knowledge than I have please,
please, please add an entry to the FAQ for this?

Thanks

        Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


exec - help needed

Posted by Ram Kumar <ra...@interactive1.com>.
i want to exec a batch file on windows2000. I am getting IOException and 
error 2.
my code is:
<project name="UnitTestsGen" default="hey" basedir=".">
     <target name="hey">
        <exec dir="divelog" executable="testgen.bat"/>
     </target>
</project>
any help ?

Ram

At 08:25 AM 3/5/2002 +0100, you wrote:
>On Tue, 05 Mar 2002, Mark Derricutt <ma...@talios.com> wrote:
>
> >     [javac] java.lang.InternalError: jzentry == 0
> >     [javac] at java.util.zip.ZipFile$2.nextElement(ZipFile.java:297)
>
>you are modifying a jar or zip file that is in your CLASSPATH, see
><http://nagoya.apache.org/bugzilla/show_bug.cgi?id=383> and
><http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6715>.
>
>Stefan
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Ant failures....

Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 05 Mar 2002, Mark Derricutt <ma...@talios.com> wrote:

>     [javac] java.lang.InternalError: jzentry == 0 
>     [javac] at java.util.zip.ZipFile$2.nextElement(ZipFile.java:297)

you are modifying a jar or zip file that is in your CLASSPATH, see
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=383> and
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6715>.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Ant failures....

Posted by Ylan Segal <yl...@digiworks.tv>.
Mark,

> compile:
>     [javac] Compiling 21 source files to C:\code\jedit\plugins\SQL\build
>     [javac] An exception has occurred in the compiler (1.3.1_01). Please
> file a bug at the Java Developer Connection (http://java.su
> n.com/cgi-bin/bugreport.cgi).  Include your program and the following
> diagnostic in your report.  Thank you.

I do not know if this helps or not, but I once was having "compiler
failures" sporadically on a machine. I unsinstalled and installed the jdk
again and the problems have not come back. May be it is worth giving it a
shot.

Hope this helps.

Ylan Segal.





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>