Hi I'm trying to work with JSNI and am new with it. I tried the most
basic step to implement the JSNI in GWT class and I'm getting
following error:

Unable to load module entry point class com.myComp.client.MeetingApp
(see associated exception for details)
java.lang.RuntimeException: Could not find a native method with the
signature '@com.myComp.client.MeetingApp::getSomeValue(Ljava/lang/
String;)'
        at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow
(ModuleSpaceIE6.java:57)
        at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke
(ModuleSpaceIE6.java:152)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
447)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
(ModuleSpace.java:228)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
(JavaScriptHost.java:91)
        at com.ecw.client.MeetingApp.getSomeValue(MeetingApp.java)
        at com.ecw.client.MeetingApp.onModuleLoad(MeetingApp.java:58)

I'm not sure where and what I'm doing wrong but below is how I'm
calling it:

public void onModuleLoad() {
                setLayout(new CenterLayout());
            final HTML loading = new HTML("<center><img src=\"img\\ajax-
loader.gif\" alt=\"loading\"> Loading Module. Please Wait... </
center>");
            RootPanel.get().add(loading);
            getSomeValue("Check It");
...............
}
         public static native String getSomeValue(String msg) /*- {
           $wnd.alert(msg);
          } -*/;

Any help would really really be appreciated. Thanks in advance.

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

Reply via email to