need help

120 views
Skip to first unread message

santlal vishwakarma

unread,
Oct 10, 2011, 2:17:16 AM10/10/11
to Google Web Toolkit
I am getting following errors while compiling multisearch application
and not able to solve it.
I am new to GWT . if anyone know solution pls help me



[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.access
$000(BuildTypeMap.java:99)
at com.google.gwt.dev.jjs.impl.BuildTypeMap
$BuildDeclMapVisitor.visit(BuildTypeMap.java:195)
at
org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.traverse(LocalDeclaration.java:
237)
at
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:
239)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:
1239)
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.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
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.google.gwt.json.client.JSONObject
extends com.google.gwt.json.client.JSONValue
/* fields */
private final [unresolved] com.google.gwt.core.client.JavaScriptObject
jsObject
/* methods */
[unresolved] public void <init>()
public void <init>(com.google.gwt.core.client.JavaScriptObject)
[unresolved] private native void
addAllKeys(Collection<java.lang.String>)
[unresolved] private java.lang.String[] computeKeys()
[unresolved] private native java.lang.String[]
computeKeys0(java.lang.String[])
[unresolved] private native int computeSize()
[unresolved] public native boolean containsKey(java.lang.String)
[unresolved] public boolean equals(java.lang.Object)
public com.google.gwt.json.client.JSONValue get(java.lang.String)
[unresolved] private native Unresolved type
com.google.gwt.json.client.JSONValue get0(java.lang.String)
[unresolved] public com.google.gwt.core.client.JavaScriptObject
getJavaScriptObject()
[unresolved] native com.google.gwt.core.client.JavaScriptObject
getUnwrapper()
[unresolved] public int hashCode()
[unresolved] public com.google.gwt.json.client.JSONObject isObject()
[unresolved] public Set<java.lang.String> keySet()
[unresolved] public Unresolved type
com.google.gwt.json.client.JSONValue put(java.lang.String, Unresolved
type com.google.gwt.json.client.JSONValue)
[unresolved] private native void put0(java.lang.String, Unresolved
type com.google.gwt.json.client.JSONValue)
[unresolved] public int size()
[unresolved] public java.lang.String toString()
[unresolved] private static
com.google.gwt.core.client.JavaScriptObject
unwrap(com.google.gwt.json.client.JSONObject)

Juan Pablo Gardella

unread,
Oct 10, 2011, 7:35:13 AM10/10/11
to google-we...@googlegroups.com
Check this thread

2011/10/10 santlal vishwakarma <santlal.vis...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


santlal vishwakarma

unread,
Oct 10, 2011, 8:39:47 AM10/10/11
to Google Web Toolkit
I have added <inherits name="com.google.gwt.json.JSON" /> in
multisearch.gwt.xml file and that problem solved
but now I am getting these errors

[ERROR] Line 22: Expected a valid parameter type signature in
JSNI method reference
>
obj.@com.example.multisearch.client.JSONRequestHandler::onRequestComplete(
>
---------------------------------------------------------------------------
^

this is the code i have written

private native static void createCallbackFunction(
JSONRequestHandler obj, String callbackName )/*-{
tmpcallback = function( j ){
obj.@com.example.multisearch.client.JSONRequestHandler::onRequestComplete(
Ljava/lang/String;)( j );
};
eval( "window."+callbackName+"=tmpcallback" );
}-*/;


class name is
correct(com.example.multisearch.client.JSONRequestHandler),method also
correct and its parameter also correct but still it generating
error.pls help me

Thomas Broyer

unread,
Oct 10, 2011, 12:35:09 PM10/10/11
to google-we...@googlegroups.com
JSNI references must be on a single line; there cannot be new lines between the '@' and the ')'. I haven't checked but actually it might even choke on spaces.
Reply all
Reply to author
Forward
0 new messages