Friday, January 16, 2015

Re: Errors migrating to GWT 2.7.0 . Can someone please help me ?

Thomas, Thanks a lot for your response.
I am using JDK1.6. I am also new to GWT.

1) Can you please help me how & where to add -Dgwt.usearchives=false ?
2) Are you suggesting me to use GWT 2.8 instead of 2.7 now?

Thanks in advance.

On Friday, January 16, 2015 at 4:15:32 AM UTC-5, Thomas Broyer wrote:
What JDK are you using? If you're not using OpenJDK or Oracle's JDK (e.g. IBM JDK), then add -Dgwt.usearchives=false.

Note: GWT 2.8 will remove the "gwtar" (which are serialized precompilation state) so it should hopefully work out of the box with any JDK.

On Thursday, January 15, 2015 at 9:42:51 PM UTC+1, ssg wrote:
I am getting the following error while performing Ant Build.
Can someone please help me ?

Compiling module com.acg.mmsea.gwt.Appname
     [java]    [WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/core/Core.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837
     [java]    [WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/user/User.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837
     [java]    [WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/user/UI.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837
     [java]    [WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/user/DOM.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837
     [java]    [WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/user/RemoteService.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837
     [java]    [WARN] Unable to read: jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/xml/XML.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837
     [java]    Ignored 2 units with compilation errors in first pass.

[ERROR] Unexpected internal compiler error
     [java] java.lang.RuntimeException: Unexpected IOException on in-memory stream
     [java]     at com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:383)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateSourceUnit(UnifyAst.java:999)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.internalFindType(UnifyAst.java:1595)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1653)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1645)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.resolveType(UnifyAst.java:1552)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateSourceUnit(UnifyAst.java:1010)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.internalFindType(UnifyAst.java:1595)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1653)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1645)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.resolveType(UnifyAst.java:1552)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateSourceUnit(UnifyAst.java:1010)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.internalFindType(UnifyAst.java:1595)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1653)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1645)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.resolveType(UnifyAst.java:1552)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateSourceUnit(UnifyAst.java:1010)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.internalFindType(UnifyAst.java:1595)
     [java]     at com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:733)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1291)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)
     [java]     at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)
     [java]     at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
     [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:206)
     [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:158)
     [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
     [java]     at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
     [java]     at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
     [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:127)
     [java] Caused by: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837
     [java]     at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:619)
     [java]     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1606)
     [java]     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1501)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1755)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1334)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1976)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1900)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1782)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1334)
     [java]     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1976)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1900)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1782)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1334)
     [java]     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:353)
     [java]     at java.util.ArrayList.readObject(ArrayList.java:731)
     [java]     at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:600)
     [java]     at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1028)
     [java]     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1878)
     [java]     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1782)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1334)
     [java]     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:353)
     [java]     at com.google.gwt.dev.jjs.ast.JDeclaredType.readMembers(JDeclaredType.java:412)
     [java]     at com.google.gwt.dev.jjs.ast.JProgram.deserializeTypes(JProgram.java:229)
     [java]     at com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:381)
     [java]     ... 32 more

BUILD FAILED
C:\APPNAME WrkSpc\AppName\build.xml:65: Java returned: 1

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment