NullPointerException in GWT StandardLinkerContext / Maia

Hi all,
I got this error while I am trying to run the GWT app by Maia 10322. HostedMode was opened in the first eap of Maia.


java.lang.NullPointerException
at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.<init>(StandardLinkerContext.java:164)
at com.google.gwt.dev.HostedMode.link(HostedMode.java:452)
at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:353)
at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)



I found the possible cause of this issue that I could be not inherited com.google.gwt.user.User
(see http://code.google.com/p/google-web-toolkit/issues/detail?id=3536), but my module does it.

Another info:

module with rename-to="gwt.house"

war directory containts house/index.xml

The index.xml has set path to JavaScript as: ../gwt.house/gwt.house.nocache.js

My run configuration tries to open house/index.html file.

Any idea?
Thanks
4 comments
Comment actions Permalink

When I create run configuration in IDEA 8.1.2, then open Maia 10322 and try to run it, it works.
When I create run configuration in Maia 10322 it just doesn't work at all.

This is the run configuration made in IDEA 8.1.2. With it, the HostedMode is opening in Maia 10322:


    <configuration default="false" name="Run" type="GWT.ConfigurationType" factoryName="GWT Configuration">
      <module name="landbruks-web-gwt" />
      <option name="VM_PARAMETERS" value="-Xmx256m" />
      <option name="SHELL_PARAMETERS" value="" />
      <option name="RUN_PAGE" value="hus/forsikring.html" />
      <option name="CUSTOM_WEB_XML" />
      <RunnerSettings RunnerId="Debug">
        <option name="DEBUG_PORT" value="56291" />
        <option name="TRANSPORT" value="0" />
        <option name="LOCAL" value="true" />
      </RunnerSettings>
      <RunnerSettings RunnerId="Profile CPU">
        <option name="startFromMode" value="MAIN_CLASS" />
        <option name="otherClassesToStartFrom" value="" />
        <option name="profileNewRunnables" value="true" />
        <option name="filteringMode" value="EXCLUDE" />
        <option name="filterIncludeClasses" value="" />
        <option name="filterExcludeClasses" value="java.*, javax.*,&#10;sun.*, sunw.*, com.sun.*" />
      </RunnerSettings>
      <RunnerSettings RunnerId="Profile Memory">
        <option name="profileAllocMode" value="ALLOC_AND_GC" />
        <option name="profileAllocInterval" value="10" />
        <option name="recordAllocTraces" value="false" />
      </RunnerSettings>
      <RunnerSettings RunnerId="Run" />
      <ConfigurationWrapper RunnerId="Debug" />
      <ConfigurationWrapper RunnerId="Run" />
      <method>
        <option name="AntTarget" enabled="false" />
        <option name="Make" enabled="true" />
        <option name="Maven.BeforeRunTask" enabled="false" />
      </method>
    </configuration>


This is the newly made configuration in Maia 10322:

<configuration default="false" name="asd" type="GWT.ConfigurationType" factoryName="GWT Configuration">
      <module name="landbruks-web-gwt" />
      <option name="VM_PARAMETERS" value="-Xmx128m" />
      <option name="SHELL_PARAMETERS" value="" />
      <option name="RUN_PAGE" value="hus/forsikring.html" />
      <option name="CUSTOM_WEB_XML" />
      <RunnerSettings RunnerId="Debug">
        <option name="DEBUG_PORT" value="62796" />
        <option name="TRANSPORT" value="0" />
        <option name="LOCAL" value="true" />
      </RunnerSettings>
      <RunnerSettings RunnerId="Run" />
      <ConfigurationWrapper RunnerId="Debug" />
      <ConfigurationWrapper RunnerId="Run" />
      <method>
        <option name="AntTarget" enabled="false" />
        <option name="Make" enabled="true" />
        <option name="Maven.BeforeRunTask" enabled="false" />
      </method>
    </configuration>

.. and it doesn't work. Usually HostedMode is just killed before giving any info.



 

0
Comment actions Permalink

Looks like the problem is in -Xmx parameter. It has value 128m in the new configuration. May be it isn't sufficient for your project. You can press
"Edit Defaults" button in Run Configurations Dialog to increase default value of this parameter.

When I create run configuration in IDEA 8.1.2, then open Maia 10322 and try to run it, it works.
When I create run configuration in Maia 10322 it just doesn't work at all.

This is the run configuration made in IDEA 8.1.2. With it, the HostedMode is opening in Maia 10322:


<configuration default="false" name="Run" type="GWT.ConfigurationType" factoryName="GWT Configuration">
<module name="landbruks-web-gwt" />
<option name="VM_PARAMETERS" value="-Xmx256m" />
<option name="SHELL_PARAMETERS" value="" />
<option name="RUN_PAGE" value="hus/forsikring.html" />
<option name="CUSTOM_WEB_XML" />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="56291" />
<option name="TRANSPORT" value="0" />
<option name="LOCAL" value="true" />
</RunnerSettings>
<RunnerSettings RunnerId="Profile CPU">
<option name="startFromMode" value="MAIN_CLASS" />
<option name="otherClassesToStartFrom" value="" />
<option name="profileNewRunnables" value="true" />
<option name="filteringMode" value="EXCLUDE" />
<option name="filterIncludeClasses" value="" />
<option name="filterExcludeClasses" value="java., javax.,&#10;sun., sunw., com.sun.*" />
</RunnerSettings>
<RunnerSettings RunnerId="Profile Memory">
<option name="profileAllocMode" value="ALLOC_AND_GC" />
<option name="profileAllocInterval" value="10" />
<option name="recordAllocTraces" value="false" />
</RunnerSettings>
<RunnerSettings RunnerId="Run" />
<ConfigurationWrapper RunnerId="Debug" />
<ConfigurationWrapper RunnerId="Run" />
<method>
<option name="AntTarget" enabled="false" />
<option name="Make" enabled="true" />
<option name="Maven.BeforeRunTask" enabled="false" />
</method>
</configuration>


This is the newly made configuration in Maia 10322:

<configuration default="false" name="asd" type="GWT.ConfigurationType" factoryName="GWT Configuration">
<module name="landbruks-web-gwt" />
<option name="VM_PARAMETERS" value="-Xmx128m" />
<option name="SHELL_PARAMETERS" value="" />
<option name="RUN_PAGE" value="hus/forsikring.html" />
<option name="CUSTOM_WEB_XML" />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="62796" />
<option name="TRANSPORT" value="0" />
<option name="LOCAL" value="true" />
</RunnerSettings>
<RunnerSettings RunnerId="Run" />
<ConfigurationWrapper RunnerId="Debug" />
<ConfigurationWrapper RunnerId="Run" />
<method>
<option name="AntTarget" enabled="false" />
<option name="Make" enabled="true" />
<option name="Maven.BeforeRunTask" enabled="false" />
</method>
</configuration>

. and it doesn't work. Usually HostedMode is just killed before giving any info.





---
Original message URL: http://www.jetbrains.net/devnet/message/5239132#5239132



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Unfortunately, it doesn't work at all. I downloaded build 10361.

This is my stacktrace:

java.lang.NullPointerException
at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.<init>(StandardLinkerContext.java:164)
at com.google.gwt.dev.HostedMode.link(HostedMode.java:452)
at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:353)
at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

Process finished with exit code 0



I have this issue in one project only. This is downloaded form CVS, my co-workers are using Eclipse. It worked for me earlier. Since IDEA 9, it does not. Of course I made all project IDEA files etc.

Projects created by IDEA works well.

0
Comment actions Permalink

Issue almost resolved.

Two things to resolve it:

1) I got this error:

java.lang.NullPointerException
at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.<init>(StandardLinkerContext.java:164)
at com.google.gwt.dev.HostedMode.link(HostedMode.java:452)
at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:353)
at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

Process finished with exit code 0



 


due to bug in GWT 1.6.4, it is fixed, will be released with the next version. It appears when you have GWT module without declaring inheritance from com.google.gwt.user.User.

2) Since IDEA EAP 9, my application needs more memory to run. If I had set -Xmx256m the HostedMode simply turns off. After increasing to 750 MB, it works well.

Thanks for help Nikolay!

0

Please sign in to leave a comment.