BZ #149: GWT compiler doesn't work

Status fields:

creation_ts:2010-11-19 14:38
component:vm
version:default branch
rep_platform:All
op_sys:Linux
bug_status:RESOLVED
resolution:FIXED
reporter:stefan@complang.tuwien.ac.at
The Google Web Toolkit (2.1.0) compiler aborts with an exception:

gwt compiler (2.1.0):
     [java] Caused by: java.lang.ClassCastException:
sun/net/www/protocol/file/FileURLConnection
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$JreIndex.readPackages
(AbstractCompiler.java:364)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$JreIndex.<clinit>(Abs
tractCompiler.java:342)

I'm not sure what this is about, but I suspect some weird interaction with class
loaders.

Tested with OpenJDK/CACAO.

Comment #1 by stefan@complang.tuwien.ac.at on 2011-08-15 13:26:44

Cannot reproduce the exact same exception anymore, but I get this now:

Caused by: java.io.StreamCorruptedException: invalid type code: 01
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1373)
        at java.io.ObjectInputStream.skipCustomData(ObjectInputStream.java:1928)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1890)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1963)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1887)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368)
        at com.google.gwt.dev.util.Util.readStreamAsObject(Util.java:769)
        at com.google.gwt.dev.util.DiskCache.readObject(DiskCache.java:108)
        ... 7 more

$ pwd
/home/sr/temp/gwt-2.1.0/samples/Hello

$ ~/it-build/it6/b15/icedtea6/openjdk.build/j2sdk-image/bin/java -Xmx768m -cp
/home/sr/temp/gwt-2.1.0/samples/Hello/src:/home/sr/temp/gwt-2.1.0/samples/Hello/war/WEB-
INF/classes:/home/sr/temp/gwt-2.1.0/gwt-user.jar:/home/sr/temp/gwt-2.1.0/gwt-
dev.jar:/home/sr/temp/gwt-2.1.0/samples/Hello/war/WEB-INF/lib/gwt-servlet-
deps.jar:/home/sr/temp/gwt-2.1.0/samples/Hello/war/WEB-INF/lib/gwt-servlet.jar
com.google.gwt.dev.Compiler -war war com.google.gwt.sample.hello.Hello

Comment #2 by stefan@complang.tuwien.ac.at on 2011-08-29 21:21:38

http://mips.complang.tuwien.ac.at/hg/cacao/rev/4549072ab2de

Comment #3 by stefan@complang.tuwien.ac.at on 2011-08-29 21:23:05

*** Bug 153 has been marked as a duplicate of this bug. ***