You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Paul Arzul <pa...@exinet.co.za> on 2000/11/07 07:37:20 UTC

jikes: cannot computer sytem time stamp; javac: java.lang.InternalError: jzentry == 0

i had successfully migrated from ant 1.1 to ant 1.2. then
this...

an intermittent error has become permanent. on compiling the
same project, using the same jdk (1.3), ant 1.1 succeeds
while ant 1.2 fails. i've tried various compilers and get
the following odd messages:

jikes 1.11
---8<---
:     [javac] Compiling 541 source files to ...
:     [javac] Assertion failed: false && "Cannot compute system time stamp\n", file lookup.cpp, line
: 280
:     [javac] 
:     [javac] abnormal program termination
--->8---

jikes 1.12
---8<---
: compile:
:     [javac] Compiling 541 source files to ...
:     [javac] Assertion failed: false && "Cannot compute system time stamp\n", file
: ../../../jikes-1.12/src/lookup.cpp, line 284
:     [javac] 
:     [javac] abnormal program termination
--->8---

javac (sun jdk 1.3)
---8<---
:     [javac] Compiling 541 source files to ...
:     [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(Unknown Source)
:     [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.Javac.doModernCompile(Javac.java:525)
:     [javac] 	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:334)
:     [javac] 	at org.apache.tools.ant.Target.execute(Target.java:142)
:     [javac] 	at org.apache.tools.ant.Project.runTarget(Project.java:818)
:     [javac] 	at org.apache.tools.ant.Project.executeTarget(Project.java:532)
:     [javac] 	at org.apache.tools.ant.Project.executeTargets(Project.java:506)
:     [javac] 	at org.apache.tools.ant.Main.runBuild(Main.java:420)
:     [javac] 	at org.apache.tools.ant.Main.main(Main.java:149)
--->8---

any clues? my system time (nt 4.0sp6) is set to the correct
current date/time, and the java files to be compiled each
have valid date/timestamps too.

mystified. :o

- p

-- 
Please send email to me using plain text only. :)


Re: javac: java.lang.InternalError: jzentry == 0

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "PA" == Paul Arzul <pa...@exinet.co.za> writes:

 PA> why do you think testing lib files isn't a good idea -
 PA> performance?

Sort of.

In any case it shouldn't be up to Ant to do this, checking during
installation is another issue, I agree (we might want to add a
<verifyjar> task and call this in the install target for example).

Stefan

Re: javac: java.lang.InternalError: jzentry == 0

Posted by Paul Arzul <pa...@exinet.co.za>.
On 7 Nov 2000, Stefan Bodewig wrote:

: >>>>> "PA" == Paul Arzul <pa...@exinet.co.za> writes:
: 
:  PA> finally traced the jzentry == 0 problem to a corrupt
:  PA> lib/optional.jar.
: 
: The optional.jar at jakarta.apache.org is OK, just checked on the
: machine directly.

thanks stefan! i checked the returned mime-type after 3
corrupted downloads using different user agents (it's fine -
application/octet-stream).

i finally had luck with:

lynx -dump http://jakarta.apache.org/builds/ant/release/v1.2/bin/optional.jar > optional.jar &

;)


:  PA> does anyone think it's a worthwhile idea to have ant check
:  PA> archives - especially those it is dependent on?
: 
: I'm not sure I understand what you mean? Do a "jar tf" on all files in
: lib? Don't think this would be a good idea.

this bug was difficult (for me) to spot. i think a checksum
of sorts somewhere would be nice. as far as i can see,
jar tf does not actually test the integrity of an archive -
just lists it's table of contents.

i found the corrupt jar using "unzip -t".

why do you think testing lib files isn't a good idea -
performance? if so, maybe do it only the very first time the
user runs ant - on setup so to speak.

oh... and i think i can speak for others on this list when i
say a big thank you to you for your continued contribution
to this list - the frequency, content and levelheadedness of
your posts make me sort ant mail by author. :>

- p

-- 
Please send email to me using plain text only. :)


Re: javac: java.lang.InternalError: jzentry == 0

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "PA" == Paul Arzul <pa...@exinet.co.za> writes:

 PA> finally traced the jzentry == 0 problem to a corrupt
 PA> lib/optional.jar.

The optional.jar at jakarta.apache.org is OK, just checked on the
machine directly.

 PA> does anyone think it's a worthwhile idea to have ant check
 PA> archives - especially those it is dependent on?

I'm not sure I understand what you mean? Do a "jar tf" on all files in
lib? Don't think this would be a good idea.

Stefan

Re: javac: java.lang.InternalError: jzentry == 0

Posted by Paul Arzul <pa...@exinet.co.za>.
On Tue, 7 Nov 2000, Paul Arzul wrote:

: :     [javac] Compiling 541 source files to ...
: :     [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

finally traced the jzentry == 0 problem to a corrupt
lib/optional.jar.

does anyone think it's a worthwhile idea to have ant check
archives - especially those it is dependent on?

- p

-- 
Please send email to me using plain text only. :)