Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGWT 2.1/2.2, GWT 2.0.3 hosted mode exception on linux

    Hello,

    I am using SmartGwt 2.1 or 2.2 with gwt 2.0.3 and I'm running the project in hosted mode (using Jetty as server). When I try to start the project, I get the following:

    00:02:56.873 [ERROR] Unable to load module entry point class org.codeandmagic.affected.gwt.client.Affected (see associated exception for details)
    com.google.gwt.core.client.JavaScriptException: (TypeError): _1.charAt is not a function fileName: http://127.0.0.1:8080/affected/affected/sc/modules/ISC_Core.js lineNumber: 379 stack: ([object Array])@http://127.0.0.1:8080/affected/affected/sc/modules/ISC_Core.js:379 ([object Array],null,null,[object Object],(void 0))@http://127.0.0.1:8080/affected/affected/sc/modules/ISC_Core.js:372 ([object Array],[object Object])@http://127.0.0.1:8080/affected/affected/sc/modules/ISC_Core.js:369 ()@http://127.0.0.1:8080/affected/affected/sc/modules/ISC_Containers.js:69 ()@http://127.0.0.1:8080/affected/affected/sc/modules/ISC_Containers.js:62 ()@http://127.0.0.1:8080/affected/affected/sc/modules/ISC_Containers.js:64 ()@http://127.0.0.1:8080:199 ()@http://127.0.0.1:8080:252 @:0 ()@http://127.0.0.1:8080/affected/affected/hosted.html?affected:57 ()@http://127.0.0.1:8080/affected/dojo-release-1.4.2/dojo/dojo.js:16 ()@http://127.0.0.1:8080/affected/dojo-release-1.4.2/dojo/dojo.js:16 ((function () {var result = __static(dispId, this);if (result[0]) {throw result[1];} else {return result[1];}}))@http://127.0.0.1:8080/affected/dojo-release-1.4.2/dojo/dojo.js:16 ()@http://127.0.0.1:8080:2 connect("http://127.0.0.1:8080/affected/Affected.html?gwt.codesvr=127.0.0.1:9997","i3c#uaW EWU#c\"EiS","127.0.0.1:9997","affected","2.0")@:0 ((void 0),"affected","http://127.0.0.1:8080/affected/affected/")@http://127.0.0.1:8080/affected/affected/hosted.html?affected:264 z()@http://127.0.0.1:8080/affected/affected/affected.nocache.js:2 (8)@http://127.0.0.1:8080/affected/affected/affected.nocache.js:8 at com.google.gwt.dev.shell.BrowserChannelServer.invo keJavascript(BrowserChannelServer.java:195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke (ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative( ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeV oid(ModuleSpace.java:284) at com.google.gwt.dev.shell.JavaScriptHost.invokeNati veVoid(JavaScriptHost.java:107) at org.codeandmagic.affected.gwt.client.Affected.subs cribeLoad(Affected.java) at org.codeandmagic.affected.gwt.client.Affected.onMo duleLoad(Affected.java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(Module Space.java:369) at com.google.gwt.dev.shell.OophmSessionHandler.loadM odule(OophmSessionHandler.java:185) at com.google.gwt.dev.shell.BrowserChannelServer.proc essConnection(BrowserChannelServer.java:380) at com.google.gwt.dev.shell.BrowserChannelServer.run( BrowserChannelServer.java:222) at java.lang.Thread.run(Thread.java:619)


    I've tried to inherit com.smartgwt.SmartGwtNoScript and include the scripts directly in the html file, like in the showcase sample. Unfortunately, I get the same result. To mention that if I run the project from within Eclipse plugin (no server), it works without this exception. But somehow, in hosted mode, it crashes.

    Any suggestions that might help me actually use SmartGwt with hosted mode? I'm on Ubuntu 10.04.

    Thanks,
    Evelina
Working...
X