Elemental and c.g.gwt.user.User

158 views
Skip to first unread message

Bademus ᵗʰᵉ

unread,
Dec 31, 2012, 11:58:30 AM12/31/12
to google-we...@googlegroups.com
Hello.
Is it possible use Elemental with c.g.gwt.user.User?
The problem is after using Elemental and c.g.gwt.user.User in the project (Debug\Run) I got an Exception
At the same time project compiles normaly but with only one permutation.

Exception:
17:50:46.736 [ERROR] [MyProject] Unable to load module entry point class net.MyProject.site.client.MyProject (see associated exception for details)
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
    at com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:483)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:470)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:893)
    at com.google.gwt.dev.js.ast.JsReturn.traverse(JsReturn.java:49)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:1032)
    at com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:59)
    at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:47)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:253)
    at com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:241)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:52)
    at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:1387)
    at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1158)
    at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1203)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at com.google.gwt.user.client.DOM.appendChild(DOM.java:66)
    at com.google.gwt.user.client.ui.CellPanel.<init>(CellPanel.java:76)
    at com.google.gwt.user.client.ui.VerticalPanel.<init>(VerticalPanel.java:37)
    at net.MyProject.site.client.MyProject.onModuleLoad(MyProject.java:14)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IndexOutOfBoundsException: Index: 11, Size: 11
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)
    at java.util.ArrayList.get(ArrayList.java:322)
    at com.google.gwt.dev.shell.CompilingClassLoader$DispatchClassInfoOracle.getClassInfoByDispId(CompilingClassLoader.java:123)
    at com.google.gwt.dev.shell.CompilingClassLoader.getClassInfoByDispId(CompilingClassLoader.java:1021)
    at com.google.gwt.dev.shell.Jsni$JsSourceGenWithJsniIdentFixup.visit(Jsni.java:177)
    at com.google.gwt.dev.js.ast.JsInvocation.traverse(JsInvocation.java:69)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:893)
    at com.google.gwt.dev.js.ast.JsReturn.traverse(JsReturn.java:49)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:1032)
    at com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:59)
    at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:47)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:468)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:445)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:253)
    at com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:241)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:52)
    at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:1387)
    at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1158)
    at com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1203)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at com.google.gwt.user.client.DOM.appendChild(DOM.java:66)
    at com.google.gwt.user.client.ui.CellPanel.<init>(CellPanel.java:76)
    at com.google.gwt.user.client.ui.VerticalPanel.<init>(VerticalPanel.java:37)
    at net.MyProject.site.client.MyProject.onModuleLoad(MyProject.java:14)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:662)

myproject.gwt.xml:
...
<inherits name="com.google.gwt.user.User" />
<inherits name="elemental.Elemental" />
...

Thomas Broyer

unread,
Dec 31, 2012, 1:23:20 PM12/31/12
to google-we...@googlegroups.com
There are known incompatibilities between Elemental and DevMode:

It (apparently) works well in SuperDevMode.
Reply all
Reply to author
Forward
0 new messages