Annoying Errai Build Failures
chaluwa Mar 7, 2013 5:19 AMErrai looks great, but am really wondering why I keep getting build errors and different stages of a project. Just this morning, am having build errors on a project that was "OK" just last night. All I added this morning was a @Remote interface and a class that implements it, which is then used with a Caller instance in my view class. I did all of this just like in the kitchensink sample, but guess it broke somthing because now the maven build process fails and the error trace does not even point to my code, but to some InternalCompilerException, like this : com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
Below is the error trace :
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building UniTalk 0.0.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ unitalk ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- gwt-maven-plugin:2.4.0:resources (default) @ unitalk ---
[INFO] auto discovered modules [com.bitrunk.apps.unitalk.unitalk]
[INFO] 29 source files from GWT module com.bitrunk.apps.unitalk.unitalk
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ unitalk ---
[INFO] Compiling 4 source files to /home/dilim/workspace/unitalk/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ unitalk ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ unitalk ---
[INFO] Compiling 1 source file to /home/dilim/workspace/unitalk/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.4.3:test (default-test) @ unitalk ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ unitalk ---
[INFO] auto discovered modules [com.bitrunk.apps.unitalk.unitalk]
[WARNING] Don't declare gwt-dev as a project dependency. This may introduce complex dependency conflicts
[INFO] Compiling module com.bitrunk.apps.unitalk.unitalk
[INFO] Validating newly compiled units
[INFO] Ignored 7 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Scanning for additional dependencies: jar:file:/home/dilim/.m2/repository/org/jboss/errai/errai-ioc/2.2.0.Final/errai-ioc-2.2.0.Final.jar!/org/jboss/errai/ioc/client/Container.java
[INFO] Computing all possible rebind results for 'org.jboss.errai.ioc.client.QualifierEqualityFactory'
[INFO] Rebinding org.jboss.errai.ioc.client.QualifierEqualityFactory
[INFO] Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.QualifierEqualityFactoryGenerator
[INFO] Generating Extensions Bootstrapper...
[ERROR] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[ERROR] SLF4J: Defaulting to no-operation (NOP) logger implementation
[ERROR] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Computing all possible rebind results for 'org.jboss.errai.ioc.client.Bootstrapper'
[INFO] Rebinding org.jboss.errai.ioc.client.Bootstrapper
[INFO] Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator
[INFO] Generating Extensions Bootstrapper...
[INFO] Checking ErraiApp.properties for configured types ...
[INFO] Adding '2' new generated units
[INFO] Validating newly compiled units
[INFO] Ignored 1 unit with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Scanning for additional dependencies: jar:file:/home/dilim/.m2/repository/org/jboss/errai/errai-marshalling/2.2.0.Final/errai-marshalling-2.2.0.Final.jar!/org/jboss/errai/marshalling/client/api/MarshallerFramework.java
[INFO] Computing all possible rebind results for 'org.jboss.errai.marshalling.client.api.MarshallerFactory'
[INFO] Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory
[INFO] Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator
[INFO] Generating Marshallers Bootstrapper...
[INFO] [ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
[INFO] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140)
[INFO] at com.google.gwt.dev.jjs.impl.TypeMap.internalGet(TypeMap.java:242)
[INFO] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:138)
[INFO] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
[INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:1144)
[INFO] at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:601)
[INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:577)
[INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:603)
[INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessStatement(GenerateJavaAST.java:632)
[INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processStatements(GenerateJavaAST.java:1846)
[INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processMethod(GenerateJavaAST.java:1513)
[INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processType(GenerateJavaAST.java:501)
[INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST.exec(GenerateJavaAST.java:2958)
[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:608)
[INFO] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:232)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:198)
[INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
[INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
[INFO] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
[INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[INFO] [ERROR] <no source info>: public class com.bitrunk.apps.unitalk.server.RemoteGateway
[INFO] extends java.lang.Object
[INFO] implements : com.bitrunk.apps.unitalk.client.shared.InstitutionService
[INFO] /* fields */
[INFO] private [unresolved] Unresolved type java.util.logging.Logger log
[INFO] private [unresolved] javax.persistence.EntityManager em
[INFO] private [unresolved] Unresolved type javax.transaction.UserTransaction userTransaction
[INFO] private [unresolved] Event<com.bitrunk.apps.unitalk.client.shared.Institution> newInstitutionEvt
[INFO] /* methods */
[INFO] [unresolved] public void <init>()
[INFO] public void createInstitution(com.bitrunk.apps.unitalk.client.shared.Institution)
[INFO] [unresolved] public List<com.bitrunk.apps.unitalk.client.shared.Institution> fetchInstitutions()
[INFO]
[INFO]
[INFO]
[INFO] org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
[INFO] [ERROR] at SchoolsManager.java(179): cloud.call(new RemoteCallback<Void>() {
[INFO] x() {
[INFO] super();
[INFO] }
[INFO] public @Override void callback(Void response) {
[INFO] entryForm.reset();
[INFO] }
[INFO] }, new ErrorCallback() {
[INFO] x() {
[INFO] super();
[INFO] }
[INFO] public @Override boolean error(Message message, Throwable throwable) {
[INFO] GWT.log("error creating instituion");
[INFO] return false;
[INFO] }
[INFO] }).createInstitution(schl)
[INFO] org.eclipse.jdt.internal.compiler.ast.MessageSend
[INFO] [ERROR] at SchoolsManager.java(172): private void handleSubmit();
[INFO]
[INFO] com.google.gwt.dev.jjs.ast.JMethod
[INFO] [ERROR] at SchoolsManager.java(44): class SchoolsManager extends Object
[INFO] com.google.gwt.dev.jjs.ast.JClassType
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.484s
[INFO] Finished at: Thu Mar 07 10:45:13 WAT 2013
[INFO] Final Memory: 39M/251M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.4.0:compile (default) on project unitalk
-
error.txt.zip 3.4 KB