Re: GWT 2.6.0 to 2.7.0 leads to compiler error 'java.lang.IncompatibleClassChangeError'

2014-12-06 Thread Stephan Beutel
Thanks for the hint. It was an old ASM version.
Now it builds fine.



Am Mittwoch, 3. Dezember 2014 09:42:18 UTC+1 schrieb Cristiano:

 Hi,
 find out which dependency is including ASM and then try to exclude it in 
 your pom.xml

 In our project,  app-hmi-soaconnector was importing ASM as a 
 sub-dependency due to CXF, so It did added the exclusion tag like you can 
 see below directly in our main GWT web app project.

 --- app_main/hmi/app-gwt-webapp/pom.xml (revision 7903)
 +++ app_main/hmi/app-gwt-webapp/pom.xml (working copy)
 @@ -130,6 +136,12 @@
   artifactIdapp-hmi-soaconnector/artifactId
   version${app.version}/version
 + exclusions
 + exclusion
 + artifactIdasm/artifactId
 + groupIdasm/groupId
 + /exclusion
 + /exclusions
   /dependency
   dependency

 I found out the responsible using Eclipse Dependency Hierarchy.

 Also remember to include codeserver dependency if you want to use super 
 dev mode

 @@ -79,6 +79,12 @@
   version${gwt.version}/version
   scoperuntime/scope
   /dependency
 + dependency
 + groupIdcom.google.gwt/groupId
 + artifactIdgwt-codeserver/artifactId
 + version${gwt.version}/version
 + scopetest/scope
 + /dependency
   !-- Guice Injection dependencies --
   dependency
   groupIdcom.google.inject/groupId

 Regards,
 Cristiano



 Il giorno Wed, 3 Dec 2014 alle 08:33 Thomas Broyer t.br...@gmail.com 
 javascript: ha scritto:

 You must have an incompatible version of ASM in your build path. ASM only 
 ensures backwards compatible starting with version 4, earlier versions 
 should have been repackaged but it's not always the case (people have 
 listed Hibernate as a culprit for example)

 --
 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+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to google-we...@googlegroups.com 
 javascript:.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.



-- 
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+unsubscr...@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.


Re: GWT 2.6.0 to 2.7.0 leads to compiler error 'java.lang.IncompatibleClassChangeError'

2014-12-03 Thread Cristiano Costantini
Hi,
find out which dependency is including ASM and then try to exclude it in
your pom.xml

In our project,  app-hmi-soaconnector was importing ASM as a sub-dependency
due to CXF, so It did added the exclusion tag like you can see below
directly in our main GWT web app project.

--- app_main/hmi/app-gwt-webapp/pom.xml (revision 7903)
+++ app_main/hmi/app-gwt-webapp/pom.xml (working copy)
@@ -130,6 +136,12 @@
  artifactIdapp-hmi-soaconnector/artifactId
  version${app.version}/version
+ exclusions
+ exclusion
+ artifactIdasm/artifactId
+ groupIdasm/groupId
+ /exclusion
+ /exclusions
  /dependency
  dependency

I found out the responsible using Eclipse Dependency Hierarchy.

Also remember to include codeserver dependency if you want to use super dev
mode

@@ -79,6 +79,12 @@
  version${gwt.version}/version
  scoperuntime/scope
  /dependency
+ dependency
+ groupIdcom.google.gwt/groupId
+ artifactIdgwt-codeserver/artifactId
+ version${gwt.version}/version
+ scopetest/scope
+ /dependency
  !-- Guice Injection dependencies --
  dependency
  groupIdcom.google.inject/groupId

Regards,
Cristiano



Il giorno Wed, 3 Dec 2014 alle 08:33 Thomas Broyer t.bro...@gmail.com ha
scritto:

You must have an incompatible version of ASM in your build path. ASM only
 ensures backwards compatible starting with version 4, earlier versions
 should have been repackaged but it's not always the case (people have
 listed Hibernate as a culprit for example)

 --
 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+unsubscr...@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.


-- 
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+unsubscr...@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.


GWT 2.6.0 to 2.7.0 leads to compiler error 'java.lang.IncompatibleClassChangeError'

2014-12-02 Thread Stephan Beutel
Hello,

after switching to GWT 2.7.0 I cannot build our project anymore. I cleaned 
everything in my Maven target folder (gwt unit cache, build classes, ...) 
but with no luck.

Every time I get this stacktrace:

[INFO] [ERROR] Unexpected internal compiler error
[INFO] java.lang.IncompatibleClassChangeError: class 
com.google.gwt.dev.javac.asm.CollectMethodData has interface 
org.objectweb.asm.MethodVisitor as super class
[INFO] at java.lang.ClassLoader.defineClass1(Native Method)
[INFO] at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
[INFO] at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[INFO] at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
[INFO] at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[INFO] at java.lang.Class.getDeclaredMethods0(Native Method)
[INFO] at java.lang.Class.privateGetDeclaredMethods(Class.java:2688)
[INFO] at java.lang.Class.getDeclaredMethod(Class.java:2115)
[INFO] at 
java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1431)
[INFO] at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:72)
[INFO] at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:494)
[INFO] at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at java.io.ObjectStreamClass.init(ObjectStreamClass.java:468)
[INFO] at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365)
[INFO] at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:602)
[INFO] at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1623)
[INFO] at 
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
[INFO] at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
[INFO] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
[INFO] at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
[INFO] at 
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:501)
[INFO] at 
com.google.gwt.dev.javac.CachedCompilationUnit.readObject(CachedCompilationUnit.java:204)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[INFO] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:483)
[INFO] at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
[INFO] at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896)
[INFO] at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
[INFO] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
[INFO] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1707)
[INFO] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1345)
[INFO] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
[INFO] at 
com.google.gwt.dev.javac.CompilationUnitArchive.readObject(CompilationUnitArchive.java:124)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[INFO] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:483)
[INFO] at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
[INFO] at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896)
[INFO] at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
[INFO] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
[INFO] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
[INFO] at 
com.google.gwt.dev.javac.CompilationUnitArchive.createFromStream(CompilationUnitArchive.java:59)
[INFO] at 
com.google.gwt.dev.javac.CompilationUnitArchive.createFromURL(CompilationUnitArchive.java:66)
[INFO] at 
com.google.gwt.dev.ArchivePreloader.preloadArchives(ArchivePreloader.java:62)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:246)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:206)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:158)
[INFO] at 

GWT 2.6.0 to 2.7.0 leads to compiler error 'java.lang.IncompatibleClassChangeError'

2014-12-02 Thread Thomas Broyer
You must have an incompatible version of ASM in your build path. ASM only 
ensures backwards compatible starting with version 4, earlier versions should 
have been repackaged but it's not always the case (people have listed Hibernate 
as a culprit for example)

-- 
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+unsubscr...@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.