IntelliJ and 2.8.0-SNAPSHOT

168 views
Skip to first unread message

P.G.Taboada

unread,
Nov 26, 2015, 12:02:40 PM11/26/15
to GWT Users
Hi,

IntelliJ fails to start SDM/ run configuration with 2.8.0-SNAPSHOT here. Are there any known tricks/ workarounds?

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:96)
at com.google.gwt.dev.DevMode.ensureCodeServerListener(DevMode.java:660)
at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:879)
at com.google.gwt.dev.DevMode.doStartup(DevMode.java:545)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:983)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:775)
at com.google.gwt.dev.DevMode.main(DevMode.java:426)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.gwt.dev.shell.SuperDevListener.runCodeServer(SuperDevListener.java:113)
at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:92)
... 11 more
Unable to start Code server
Caused by: java.lang.NoSuchFieldError: JS_RC
at com.google.gwt.dev.codeserver.Options.<init>(Options.java:91)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:49)
... 17 more

Ignacio Baca Moreno-Torres

unread,
Nov 26, 2015, 1:43:34 PM11/26/15
to GWT Users
Works ok for me. You might have some classpath problem. codeserver.Options belong to gwt-codeserver and OptionsJsIntropMode.JS_RC belong to gwt-dev, so maybe IntelliJ is using the last codeserver and the not-so-last gwt-dev.

I had some problems with intelliJ gwt dependency configuration. Sometimes get confused with the snapshots and point to a specific time-stamped version and do not update again. You can see which version is used in the classpath or in the .iml files.

Other problem I see sometimes is that intelliJ stop using maven as a gwt lib provider, this can be confirmed in the <project>.iml file, you should see something like.

<component name="FacetManager">
<facet type="gwt" name="GWT">
<configuration>
<setting name="gwtSdkUrl" value="file://$MAVEN_REPOSITORY$/com/google/gwt/gwt-dev/2.8.0-SNAPSHOT" />
<setting name="gwtSdkType" value="maven" />
</configuration>
</facet>
</component>

I hope this helps.

amir

unread,
Nov 26, 2015, 3:48:44 PM11/26/15
to GWT Users
Could be b/c of:
"""
Caused by: java.lang.NoSuchFieldError: JS_RC
"""

Latest 2.8.0-SNAPSHOT uses -generateJsInteropExports
Reply all
Reply to author
Forward
0 new messages