You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Zalunin Pavel <wr...@gmail.com> on 2008/08/12 21:18:11 UTC

troubles with cactus-1.8.0-bin and jdk1.4.2_10

hi

i've downloaded cactus and tried to add test case into my app (jboss 3.2.1
jdk 1.4.2_10)
i'd copied all libraries from distro into embeeded into jboss tomcat lib dir
then added 2 servlets into web.xml
and tried to compile 'test':
*public class SomeTest extends ServletTestCase{
    public SomeTest() {
    }
}*

and i got next message from my ide (idea 7.0.3)
*
Information:An exception has occurred in the compiler (1.4.2_10). Please
file a bug at the Java Developer Connection (
http://java.sun.com/cgi-bin/bugreport.cgi)  after checking the Bug Parade
for duplicates. Include your program and the following diagnostic in your
report.  Thank you.
Information:java.lang.ClassCastException
Information:    at
com.sun.tools.javac.v8.code.ClassReader.readClassSymbol(ClassReader.java:547)
Information:    at
com.sun.tools.javac.v8.code.ClassReader.readClass(ClassReader.java:849)
Information:    at
com.sun.tools.javac.v8.code.ClassReader.readClassFile(ClassReader.java:936)
Information:    at
com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1091)
Information:    at
com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:1049)
Information:    at
com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:372)
Information:    at
com.sun.tools.javac.v8.code.Symbol$ClassSymbol.complete(Symbol.java:691)
Information:    at
com.sun.tools.javac.v8.code.Type$ClassType.complete(Type.java:1119)
Information:    at
com.sun.tools.javac.v8.code.Type$ClassType.interfaces(Type.java:867)
Information:    at
com.sun.tools.javac.v8.comp.Check.checkNonCyclic(Check.java:888)
Information:    at
com.sun.tools.javac.v8.comp.Check.checkNonCyclic(Check.java:889)
Information:    at
com.sun.tools.javac.v8.comp.Enter$CompleteEnter.attribBase(Enter.java:959)
Information:    at
com.sun.tools.javac.v8.comp.Enter$CompleteEnter.complete(Enter.java:857)
Information:    at
com.sun.tools.javac.v8.comp.Enter.complete(Enter.java:601)
Information:    at com.sun.tools.javac.v8.comp.Enter.main(Enter.java:582)
Information:    at
com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:331)
Information:    at com.sun.tools.javac.v8.Main.compile(Main.java:569)
Information:    at com.sun.tools.javac.Main.compile(Main.java:36)
Information:    at com.sun.tools.javac.Main.main(Main.java:27)
Information:    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
Information:    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Information:    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Information:    at java.lang.reflect.Method.invoke(Method.java:324)
Information:    at
com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:53)
Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
Error:Compiler internal error. Process terminated with exit code 4

*Is it an bug in jdk1.4.2_10 or .... ?

Thanx!

Re: troubles with cactus-1.8.0-bin and jdk1.4.2_10

Posted by Petar Tahchiev <pa...@gmail.com>.
Hi Pavel,

I am not sure where the bug is, but I feel like it is not a
Cactus issue - I see none of the Cactus classes in the
strack trace.

Cheers, Petar.

2008/8/12 Zalunin Pavel <wr...@gmail.com>

> hi
>
> i've downloaded cactus and tried to add test case into my app (jboss 3.2.1
> jdk 1.4.2_10)
> i'd copied all libraries from distro into embeeded into jboss tomcat lib
> dir
> then added 2 servlets into web.xml
> and tried to compile 'test':
> *public class SomeTest extends ServletTestCase{
>    public SomeTest() {
>    }
> }*
>
> and i got next message from my ide (idea 7.0.3)
> *
> Information:An exception has occurred in the compiler (1.4.2_10). Please
> file a bug at the Java Developer Connection (
> http://java.sun.com/cgi-bin/bugreport.cgi)  after checking the Bug Parade
> for duplicates. Include your program and the following diagnostic in your
> report.  Thank you.
> Information:java.lang.ClassCastException
> Information:    at
>
> com.sun.tools.javac.v8.code.ClassReader.readClassSymbol(ClassReader.java:547)
> Information:    at
> com.sun.tools.javac.v8.code.ClassReader.readClass(ClassReader.java:849)
> Information:    at
> com.sun.tools.javac.v8.code.ClassReader.readClassFile(ClassReader.java:936)
> Information:    at
> com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1091)
> Information:    at
> com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:1049)
> Information:    at
> com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:372)
> Information:    at
> com.sun.tools.javac.v8.code.Symbol$ClassSymbol.complete(Symbol.java:691)
> Information:    at
> com.sun.tools.javac.v8.code.Type$ClassType.complete(Type.java:1119)
> Information:    at
> com.sun.tools.javac.v8.code.Type$ClassType.interfaces(Type.java:867)
> Information:    at
> com.sun.tools.javac.v8.comp.Check.checkNonCyclic(Check.java:888)
> Information:    at
> com.sun.tools.javac.v8.comp.Check.checkNonCyclic(Check.java:889)
> Information:    at
> com.sun.tools.javac.v8.comp.Enter$CompleteEnter.attribBase(Enter.java:959)
> Information:    at
> com.sun.tools.javac.v8.comp.Enter$CompleteEnter.complete(Enter.java:857)
> Information:    at
> com.sun.tools.javac.v8.comp.Enter.complete(Enter.java:601)
> Information:    at com.sun.tools.javac.v8.comp.Enter.main(Enter.java:582)
> Information:    at
> com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:331)
> Information:    at com.sun.tools.javac.v8.Main.compile(Main.java:569)
> Information:    at com.sun.tools.javac.Main.compile(Main.java:36)
> Information:    at com.sun.tools.javac.Main.main(Main.java:27)
> Information:    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> Information:    at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> Information:    at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> Information:    at java.lang.reflect.Method.invoke(Method.java:324)
> Information:    at
> com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:53)
> Information:Compilation completed with 1 error and 0 warnings
> Information:1 error
> Information:0 warnings
> Error:Compiler internal error. Process terminated with exit code 4
>
> *Is it an bug in jdk1.4.2_10 or .... ?
>
> Thanx!
>



-- 
Regards, Petar!
Karlovo, Bulgaria.
- - - - - - - -
| Author @ Manning Publications.
| Technical Consultant @ HP
| BGJUG-Bulgarian Java User Group Leader.
| Apache Jakarta PMC member.
| Jakarta Cactus Lead Developer.
| Blogger: http://weblogs.java.net/blog/paranoiabla/
- - - - - - - -
Public PGP Key at:
https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611