MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
wdenton
Post subject: Always crashes compiling JSPs in Web Project  PostPosted: Sep 16, 2003 - 10:37 PM
Registered Member
Registered Member


Joined: Sep 16, 2003
Posts: 10

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:

Code:

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?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Sep 16, 2003 - 11:26 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

Quote:

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

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
wdenton
Post subject:   PostPosted: Sep 17, 2003 - 06:50 PM
Registered Member
Registered Member


Joined: Sep 16, 2003
Posts: 10

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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Sep 17, 2003 - 07:40 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

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

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
wdenton
Post subject:   PostPosted: Sep 17, 2003 - 09:31 PM
Registered Member
Registered Member


Joined: Sep 16, 2003
Posts: 10

Scott--

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

Code:

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:

Code:

!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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
nop
Post subject:   PostPosted: Sep 17, 2003 - 09:45 PM
Registered Member
Registered Member


Joined: May 05, 2003
Posts: 189
Location: in your JVM
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits