Closed GoogleCodeExporter closed 8 years ago
Did you update GIN and Guice? see issue 77
Original comment by plcoir...@gmail.com
on 25 Apr 2011 at 1:37
Yes, I have updated all the following jar's but still getting the same error.
gwt-servlet-2.2.0.jar
gwt-user-2.2.0.jar
mvp4g-1.3.1.jar
gin-1.5.9.jar
guice-3.0-rc2.jar
javax.inect-1.jar
aopaliance-1.0.jar
guice-assistedinject-3.0-rc2.jar
Any help is highly appreciated.
Original comment by veerarag...@gmail.com
on 26 Apr 2011 at 5:27
Now, after updating my WEB-INF/lib path with the following jar
aopalliance.jar
guice-3.0-rc2.jar
guice-assistedinject-3.0-rc2.jar
javax.inject-1.jar
guice-servlet-3.0.jar
guice-assistedinject-snapshot.jar
gin-1.5.0.jar
guice-snapshot.jar
I'm getting the following error while compling the application. This is getting
more pressurized as the timelines are very tight and I have no other choice
other than to go back to customer saying GWT 2.2.0 has issues. Please help
[java] Validating newly compiled units
[java] [ERROR] Errors in 'jar:file:/D:/Workspace/Clearcase_view/vobs/mlw/CIP/CIPPVGWTWeb/WebContent/WEB-INF/lib/gin-1.5.0.jar!/com/google/gwt/inject/client/assistedinject/GinFactoryModuleBuilder.java'
[java] [ERROR] Line 216: The method get(Class<capture#1-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 223: The method get(Class<T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 230: The method get(Class<capture#3-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 246: The method get(Class<capture#5-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 254: The method get(Class<T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 262: The method get(Class<capture#7-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 278: The method get(Class<capture#10-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 286: The method get(Class<T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 294: The method get(Class<capture#14-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 309: The method get(Class<capture#17-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 324: The method get(Class<F>) is undefined for the type TypeLiteral
[java] [ERROR] Errors in 'file:/D:/Workspace/Clearcase_view/vobs/mlw/CIP/CIPPVGWTWeb/src/com/delta/mlw/cippan/web/client/AppEntryPointMvp.java'
[java] [ERROR] Internal compiler error
[java] java.lang.IncompatibleClassChangeError: com/google/gwt/core/ext/typeinfo/JType.isInterface()Lcom/google/gwt/core/ext/typeinfo/JClassType;
[java] at com.google.gwt.inject.rebind.GinjectorGeneratorImpl.validateInjectorClass(GinjectorGeneratorImpl.java:84)
[java] at com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:65)
[java] at com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:47)
[java] at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
[java] at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
[java] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:662)
[java] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
[java] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:259)
[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:248)
[java] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
[java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
[java] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
[java] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
[java] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)
[java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)
[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:517)
[java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:215)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:187)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
[java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:166)
[java] [ERROR] Unexpected
[java] java.lang.IncompatibleClassChangeError: com/google/gwt/core/ext/typeinfo/JType.isInterface()Lcom/google/gwt/core/ext/typeinfo/JClassType;
[java] at com.google.gwt.inject.rebind.GinjectorGeneratorImpl.validateInjectorClass(GinjectorGeneratorImpl.java:84)
[java] at com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:65)
[java] at com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:47)
[java] at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
[java] at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
[java] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:662)
[java] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
[java] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:259)
[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:248)
[java] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
[java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
[java] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
[java] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
[java] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)
[java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)
[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:517)
[java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:215)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:187)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
[java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:166)
Original comment by veerarag...@gmail.com
on 26 Apr 2011 at 8:47
It seems you have the wrong gin dependencies. You need:
guice-3.0-rc2.jar
guice-servlet-3.0-rc2.jar
guice-assistedinject-3.0-rc2.jar
javax.inject.jar
aopalliance.jar
From what I can see, you have 2 versions of the guice jar and of the
guice-assistedinject jar (snapshot and 3-0-rc2).
Also make sure to also add these jars to your classpath.
Original comment by plcoir...@gmail.com
on 26 Apr 2011 at 12:32
As suggested I have added all the required JAR's. Now I have the following GWT
related JAR in my lib
gin-1.5.0
guice-3.0-rc2
guice-assistedinject-3.0-rc2
guice-servlet-3.0-rc2
javax.inject
aopalliance
Apart from these JAR's, I have the GWT 2.2.0 related jar like the gwt-dev,
gwt-user etc. But still I'm getting the same following error.
Buildfile: D:\Workspace\Clearcase_view\vobs\mlw\CIP\CIPPVGWTWeb\build.xml
gwtc:
[java] Compiling module com.delta.mlw.cippan.web.cippangwtweb
[java] Validating newly compiled units
[java] [ERROR] Errors in 'jar:file:/D:/Workspace/Clearcase_view/vobs/mlw/CIP/CIPPVGWTWeb/WebContent/WEB-INF/lib/gin-1.5.0.jar!/com/google/gwt/inject/client/assistedinject/GinFactoryModuleBuilder.java'
[java] [ERROR] Line 216: The method get(Class<capture#1-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 223: The method get(Class<T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 230: The method get(Class<capture#3-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 246: The method get(Class<capture#5-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 254: The method get(Class<T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 262: The method get(Class<capture#7-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 278: The method get(Class<capture#10-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 286: The method get(Class<T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 294: The method get(Class<capture#14-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 309: The method get(Class<capture#17-of ? extends T>) is undefined for the type TypeLiteral
[java] [ERROR] Line 324: The method get(Class<F>) is undefined for the type TypeLiteral
[java] [ERROR] Errors in 'file:/D:/Workspace/Clearcase_view/vobs/mlw/CIP/CIPPVGWTWeb/src/com/delta/mlw/cippan/web/client/AppEntryPointMvp.java'
[java] [ERROR] Internal compiler error
[java] java.lang.IncompatibleClassChangeError: com/google/gwt/core/ext/typeinfo/JType.isInterface()Lcom/google/gwt/core/ext/typeinfo/JClassType;
[java] at com.google.gwt.inject.rebind.GinjectorGeneratorImpl.validateInjectorClass(GinjectorGeneratorImpl.java:84)
[java] at com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:65)
[java] at com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:47)
[java] at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
[java] at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
[java] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:662)
[java] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
[java] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:259)
[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:248)
[java] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
[java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
[java] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
[java] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
[java] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)
[java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)
[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:517)
[java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:215)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:187)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
[java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:166)
[java] [ERROR] Unexpected
[java] java.lang.IncompatibleClassChangeError: com/google/gwt/core/ext/typeinfo/JType.isInterface()Lcom/google/gwt/core/ext/typeinfo/JClassType;
[java] at com.google.gwt.inject.rebind.GinjectorGeneratorImpl.validateInjectorClass(GinjectorGeneratorImpl.java:84)
[java] at com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:65)
[java] at com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:47)
[java] at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
[java] at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
[java] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:662)
[java] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
[java] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:259)
[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:248)
[java] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
[java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
[java] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
[java] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
[java] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)
[java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)
[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:517)
[java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:215)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:187)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
[java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:166)
BUILD FAILED
D:\Workspace\Clearcase_view\vobs\mlw\CIP\CIPPVGWTWeb\build.xml:48: Java
returned: 1
Total time: 2 minutes 3 seconds
Am I missing something or can you let me know what exactly should be
configuration for migrating. My deliverables have already got delayed by couple
of days now. Any help ASAP is highly appreciated.
Original comment by veerarag...@gmail.com
on 27 Apr 2011 at 5:36
I don't see anything wrong, it seems you have the good jars. To migrate from
2.1 to 2.2 all you have to do is download mvp4g-1.3.1 and gin-1.5. All the jars
you need are inside the gin-1.5 zip (just don't use gin-pre-gwt-2.2.jar, you
only need gin-post-gwt-2.2.jar).
From what I can read on the web, you got this error because of gin dependency,
the only thing I can think of is to double check that no old gin jar are in
your classpath. Maybe you could post your problem on the forum, more developers
may be able to help you.
Original comment by plcoir...@gmail.com
on 27 Apr 2011 at 12:32
Please re-open the bug if you're still having problems. Thanks
Original comment by plcoir...@gmail.com
on 5 Sep 2013 at 4:36
Original issue reported on code.google.com by
veerarag...@gmail.com
on 25 Apr 2011 at 11:21