ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4794] New: - Sometimes Internal Error when compiling.
Date Sun, 11 Nov 2001 13:56:34 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4794>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4794

Sometimes Internal Error when compiling.

           Summary: Sometimes Internal Error when compiling.
           Product: Ant
           Version: 1.4
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: keeskuip@technologist.com


I sometimes get an java.lang.InternalError when compiling with ant.
This happens on windowsNT and Linux.
I'm using jdk1.3.1_01 from sun.

The strange thing is that when I start ant again, it compiles without
  any errors.

Could it be that ant (javac) is trying to use a corrupted jar-file. 
It then throws away that jar-file. And the next time the jar-file is 
not there, so it rebuilds that jar-file.

The errortrace is below :


[kees@chocomel]# ant
Buildfile: build.xml

prepare:
     [echo] *** project/batchEngine ***

prepare:
     [echo] *** klant ***

check_for_optional_packages:

compile:

jar:
      [jar] Building jar:
/usr/local/project/projecten/Verkade/build/lib/klant/ini.jar

check_for_optional_packages:

compile:
    [javac] Compiling 1 source file to
/usr/local/project/projecten/Verkade/project/batchEngine/classes
    [javac] An exception has occurred in the compiler (1.3.1_01). 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: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.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)

BUILD FAILED

/usr/local/project/projecten/Verkade/project/batchEngine/build.xml:94: Compile
failed, messages should have been provided.

Total time: 4 seconds

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


Mime
View raw message