facebook

Always crashes compiling JSPs in Web Project

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #198539 Reply

    I am trying to port a fairly large project from JBuilder to Eclipse 2.1.1/MyExlipse 2.6.2 running on XP/jdk1.3.1_09. Application consists of 4 EJB JARs, 2 WARs, 9 other projects that produce “loose” JARs, and many other 3rd party JARs (including struts 1.1)… all of which goes together into an EAR.

    I’ve got most everything compiling except my 2 WAR projects. Every time I try to build those projects, the JSP compile (besides taking forever) ends up crashing the JAVAW process. Here is the pop-up window that appears:

    
    JVM terminated. Exit code=1
    C:\jdk1.3.1_09\bin\javaw
    -cp C:\eclipse\startup.jar org.eclipse.core.launcher.Main
    -os win32
    -ws win32
    -arch x86
    -showsplash C:\eclipse\eclipse.exe -showsplash 600
    -data C:\Projects\EclipseWorkspaces\AthensR1.0
    

    Also, there are overloaded versions of some of the taglibs (all tld’s are in /WEB-INF/tlds; the struts JAR and local taglib JARs are in the build path)

    I’m stuck… I can’t find any sort of thread dump file or any other logs. Also can’t figure out how to turn off JSP compile.

    Any ideas?

    #198542 Reply

    Scott Anderson
    Participant

    I’m stuck… I can’t find any sort of thread dump file or any other logs. Also can’t figure out how to turn off JSP compile.

    The Eclipse log file is located at <workspace>/.metadata/.log. It should contain some interesting stack traces. As for the process crash, I’d imagine that you may be running out of RAM. You can start Eclipse with more RAM by creating a shortcut to eclipse.exe and adding startup arguments similar to:
    -vmargs -Xms128M -Xmx384M

    You may also turn off JSP compilation on the JSP editor preference page at Window > Preferences > MyEclipse > Editors > JSP/HTML.

    Please let us know if you find more detail and we’ll be glad to look the next level deeper into this.

    –Scott
    MyEclipse Support

    #198561 Reply

    Wow.. thanks for the quick reply..

    I did quite a bit of testing last night & have discovered…

    1) There is no .log file created when the IDE’s JVM crashes

    2) When I let the automatic compile happen (and also crash) when Eclipse is launched, the splash page does not go away until after the crash.

    3) Memory (at lease heap) has no effect on the crash.. watching task manager, the javaw process gets to just over 300 megs before dieing. (I’m going to fool with MaxPermSize today & see if that helps)

    4) If I disable hotspot with -classic, there is no crash but some strange other errors associated with launching WebLogic7 plug-in in the .log file.

    So, I’ve had a fair number of hotspot issues with various versions of 1.3.1 JDK. I’ve found that sometimes messing with MaxPermSize helps and sometimes it doesn’t. I’ll let you know how my experiments go today.

    Cheers
    –Bill

    #198563 Reply

    Scott Anderson
    Participant

    Bill,

    Thanks for looking into this. Please let us know what you determine. Another thing to try might be to launch Eclipse using a 1.4.2 JDK to see if that alters the behavior.

    –Scott
    MyEclipse Support

    #198572 Reply

    Scott–

    The following command line options resulted in no crash for “Rebuild All”

    
    eclipse ... -vmargs -Xms64m -Xmx256m -XX:MaxPermSize=128m
    

    I’ve run into several other situations where hotspot was very sensitive to the PermHeap size.

    Some side comments on something else I ran into in my tests… when using -classic, I kept getting AbstractMethodError postings in the .log file. Here is an extract from one session:

    
    !SESSION Sep 16, 2003 17:33:12.815 ---------------------------------------------
    java.version=1.3.1_09
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -data c:\projects\eclipseworkspaces\athenar1.0 -install file:C:/eclipse/
    !ENTRY org.eclipse.core.runtime 4 2 Sep 16, 2003 17:33:12.815
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime".
    !STACK 0
    java.lang.AbstractMethodError: com/genuitec/eclipse/easie/weblogic/C.�
        at com.genuitec.eclipse.easie.core.G.Ä‚(Unknown Source)
        at com.genuitec.eclipse.easie.core.EASIECore.�(Unknown Source)
        at com.genuitec.eclipse.easie.weblogic7.A.ĺ(Unknown Source)
        at com.genuitec.eclipse.easie.weblogic7.Weblogic7LauncherPlugin.startup(Unknown Source)
        at org.eclipse.core.internal.plugins.PluginDescriptor$1.run(PluginDescriptor.java:736)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
        at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:748)
        at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
        at org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin(PluginDescriptor.java:306)
        at org.eclipse.ui.internal.Workbench$15.run(Workbench.java:1325)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
        at org.eclipse.core.runtime.Platform.run(Platform.java:413)
        at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:1334)
        at java.lang.Thread.run(Thread.java:479)
    !ENTRY org.eclipse.ui.workbench 2 2 Sep 16, 2003 17:33:12.855
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
    !STACK 1
    org.eclipse.core.runtime.CoreException: Problems encountered starting up plug-in: "com.genuitec.eclipse.easie.weblogic7".
        at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:754)
        at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
        at org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin(PluginDescriptor.java:306)
        at org.eclipse.ui.internal.Workbench$15.run(Workbench.java:1325)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
        at org.eclipse.core.runtime.Platform.run(Platform.java:413)
        at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:1334)
        at java.lang.Thread.run(Thread.java:479)
    !ENTRY org.eclipse.core.runtime 2 2 Sep 16, 2003 17:33:12.875
    !MESSAGE Problems encountered starting up plug-in: "com.genuitec.eclipse.easie.weblogic7".
    !SUBENTRY 1 org.eclipse.core.runtime 2 2 Sep 16, 2003 17:33:12.875
    !MESSAGE Problems encountered starting up plug-in: "com.genuitec.eclipse.easie.weblogic7".
    !STACK 0
    java.lang.AbstractMethodError: com/genuitec/eclipse/easie/weblogic/C.�
        at com.genuitec.eclipse.easie.core.G.Ä‚(Unknown Source)
        at com.genuitec.eclipse.easie.core.EASIECore.�(Unknown Source)
        at com.genuitec.eclipse.easie.weblogic7.A.ĺ(Unknown Source)
        at com.genuitec.eclipse.easie.weblogic7.Weblogic7LauncherPlugin.startup(Unknown Source)
        at org.eclipse.core.internal.plugins.PluginDescriptor$1.run(PluginDescriptor.java:736)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
        at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:748)
        at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
        at org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin(PluginDescriptor.java:306)
        at org.eclipse.ui.internal.Workbench$15.run(Workbench.java:1325)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
        at org.eclipse.core.runtime.Platform.run(Platform.java:413)
        at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:1334)
        at java.lang.Thread.run(Thread.java:479)
    !SUBENTRY 1 org.eclipse.core.runtime 2 2 Sep 16, 2003 17:33:12.905
    !MESSAGE Problems encountered starting up plug-in: "com.genuitec.eclipse.easie.weblogic7".
    !STACK 0
    java.lang.AbstractMethodError: com/genuitec/eclipse/easie/weblogic/C.�
        at com.genuitec.eclipse.easie.core.G.Ä‚(Unknown Source)
        at com.genuitec.eclipse.easie.core.EASIECore.�(Unknown Source)
        at com.genuitec.eclipse.easie.weblogic7.A.ĺ(Unknown Source)
        at com.genuitec.eclipse.easie.weblogic7.Weblogic7LauncherPlugin.startup(Unknown Source)
        at org.eclipse.core.internal.plugins.PluginDescriptor$1.run(PluginDescriptor.java:736)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
        at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:748)
        at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
        at org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin(PluginDescriptor.java:306)
        at org.eclipse.ui.internal.Workbench$15.run(Workbench.java:1325)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
        at org.eclipse.core.runtime.Platform.run(Platform.java:413)
        at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:1334)
        at java.lang.Thread.run(Thread.java:479)
    !ENTRY org.eclipse.ui 4 4 Sep 16, 2003 17:33:12.945
    !MESSAGE Unhandled Exception
    !ENTRY org.eclipse.ui 4 0 Sep 16, 2003 17:33:12.955
    !MESSAGE Unhandled Exception
    !STACK 1
    org.eclipse.core.runtime.CoreException: Problems encountered starting up plug-in: "com.genuitec.eclipse.easie.weblogic7".
        at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:754)
        at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
        at org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin(PluginDescriptor.java:306)
        at org.eclipse.ui.internal.Workbench$15.run(Workbench.java:1325)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
        at org.eclipse.core.runtime.Platform.run(Platform.java:413)
        at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:1334)
        at java.lang.Thread.run(Thread.java:479)
    !ENTRY org.eclipse.core.runtime 2 2 Sep 16, 2003 17:33:12.975
    !MESSAGE Problems encountered starting up plug-in: "com.genuitec.eclipse.easie.weblogic7".
    !SUBENTRY 1 org.eclipse.core.runtime 2 2 Sep 16, 2003 17:33:12.975
    !MESSAGE Problems encountered starting up plug-in: "com.genuitec.eclipse.easie.weblogic7".
    !STACK 0
    java.lang.AbstractMethodError: com/genuitec/eclipse/easie/weblogic/C.�
        at com.genuitec.eclipse.easie.core.G.Ä‚(Unknown Source)
        at com.genuitec.eclipse.easie.core.EASIECore.�(Unknown Source)
        at com.genuitec.eclipse.easie.weblogic7.A.ĺ(Unknown Source)
        at com.genuitec.eclipse.easie.weblogic7.Weblogic7LauncherPlugin.startup(Unknown Source)
        at org.eclipse.core.internal.plugins.PluginDescriptor$1.run(PluginDescriptor.java:736)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
        at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:748)
        at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
        at org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin(PluginDescriptor.java:306)
        at org.eclipse.ui.internal.Workbench$15.run(Workbench.java:1325)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
        at org.eclipse.core.runtime.Platform.run(Platform.java:413)
        at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:1334)
        at java.lang.Thread.run(Thread.java:479)
    

    so… as far as the JSP compile issue is concerned, this about puts that to bed… still, I sure do wish it ran faster though

    Cheers,
    –Bill

    #198574 Reply

    No Operation
    Member

    I remember there was a JVM bug which behaved like this!

    Try to
    – use the -server option, AFAIK this reduced the chance for those crashes.
    – us an actual JDK, which might have less bugs.

    NOP

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Always crashes compiling JSPs in Web Project

You must be logged in to post in the forum log in