Compiler exception occured. Not able to compile GWT application

1,117 views
Skip to first unread message

Raghul

unread,
Oct 14, 2011, 5:52:43 AM10/14/11
to Google Web Toolkit
I getting the following error while compiling the GWT application.

Any one please help resolve this issue.

Validating newly compiled units
Ignored 3 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see
all errors.
[ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140)
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
at com.google.gwt.dev.jjs.impl.BuildTypeMap.getType(BuildTypeMap.java:
730)
at
com.google.gwt.dev.jjs.impl.BuildTypeMap.createField(BuildTypeMap.java:
570)
at com.google.gwt.dev.jjs.impl.BuildTypeMap.access
$300(BuildTypeMap.java:99)
at com.google.gwt.dev.jjs.impl.BuildTypeMap
$BuildDeclMapVisitor.visit(BuildTypeMap.java:180)
at
org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.traverse(FieldDeclaration.java:
285)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:
1232)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:
687)
at
com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(BuildTypeMap.java:
637)
at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
514)
at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
523)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
599)
at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
33)
at com.google.gwt.dev.Precompile.validate(Precompile.java:187)
at com.google.gwt.dev.Compiler.run(Compiler.java:222)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
88)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[ERROR] <no source info>: public class com.gwt.demo.User extends
java.lang.Object
/* fields */
private [unresolved] java.lang.String firstName
private [unresolved] java.lang.String lastName
/* methods */
public void <init>(java.lang.String, java.lang.String) throws
java.lang.Exception
[unresolved] public void setLastName(java.lang.String)
[unresolved] private void getLastName() throws java.lang.Exception



org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
[ERROR] at LoginDemo.java(18): public User user = null;
org.eclipse.jdt.internal.compiler.ast.FieldDeclaration

Kevin Jordan

unread,
Oct 14, 2011, 10:40:47 PM10/14/11
to Google Web Toolkit
You'll need to put a SomeName.gwt.xml in some directory relative to
the com.gwt classpath that has <source path="demo" /> and then in
your app's entrypoint module .gwt.xml file you add a line that says
<inherits name="com.gwt.SomeName"/> where SomeName is the module you
name where you're putting your .User stuff. If you put it in
the .client sub-package relative to your entrypoint .gwt.xml you don't
have to do an inherits.

Sudhakar Abraham

unread,
Oct 15, 2011, 2:46:33 AM10/15/11
to Google Web Toolkit
Add your project.gwt.xml file in your project directory. Inherit your
application entrypoint module with <inherits
name="com.google.gwt.json.JSON" />

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

Ronnie and Sandy

unread,
Feb 23, 2012, 1:44:14 PM2/23/12
to Google-We...@googlegroups.com
Very helpful, Sudhakar. God Bless You!

Reply all
Reply to author
Forward
0 new messages