Sun One 7 2004Q2 restart on breakpoint in debug

Hi,

I have a very annoying problem.

I took over a project from another team of another company. I have to migrate the web application (using Struts, J2EE, EJB 2.0, ...) from Sun One to JBoss.

For this, a specific profile is searched, and awaiting this profile, i have to get to know the project, structure and code (i don't know any EJB 2.0, i know Hibernate and Spring and like that a lot more than EJB).

Now i'm working a month and a half already on this project, reading documentation, adding documentation, inspecting the code, and developing small changes and bugfixes.

Every time i wanted to perform a remote application debug from within Eclipse to the Sun One AS, things fail.

I start Sun One in debug mode, i check the address port, i connect to that port from Eclipse in debug mode (remote application debug), but when the application reaches the breakpoint, the Sun One AS just restarts, and the application gives a page not found.

First i thought it was a memory problem (i read logs with OutOfMemory and parallel GC errors, but i can't find the logs anymore), and i finally got a computer with 2GB RAM (we work on VPC's). But that didn't solve the problem either.

I removed the -Xmx option for maximum heap size, but that didn't do any good either.

Does anyone know how i can perform debugging from within Eclipse to the Sun One AS without problems?

Thanks very much in advance.

[1464 byte] By [DonStevoa] at [2007-11-27 0:40:20]
# 1

And i found an error log in the /config directory of the used server instance:

#

# An unexpected error has been detected by HotSpot Virtual Machine:

#

# Internal Error (50532D41524B33574545500E435050011C), pid=3964, tid=2368

#

# Java VM: Java HotSpot(TM) Server VM (1.4.2_11-b06 mixed mode)

T H R E A D

Current thread (0x00d89968): VMThread [id=2368]

Stack: [0x05900000,0x05a00000)

[error occurred during error reporting, step 110, id 0xc0000005]

[error occurred during error reporting, step 120, id 0xc0000005]

VM_Operation (0x0c5bfbb4): parallel gc failed allocation, mode: safepoint, requested by thread 0x066e1008

P R O C E S S

Java Threads: ( => current thread )

0x06eb1008 JavaThread "service-j2ee-2" [_thread_in_native, id=2108]

0x0eb52e00 JavaThread "Thread-54" daemon [_thread_blocked, id=276]

0x070b9110 JavaThread "SingleSignOnExpiration" daemon [_thread_blocked, id=2796]

0x06eb1170 JavaThread "StandardManager[]" daemon [_thread_blocked, id=1804]

0x00f915f8 JavaThread "Thread-53" daemon [_thread_blocked, id=1984]

0x069cfb70 JavaThread "StandardManager[/kwatraWeb]" daemon [_thread_blocked, id=3772]

0x06eccbe0 JavaThread "RMI LeaseChecker" daemon [_thread_blocked, id=2592]

0x06c0dfb8 JavaThread "GC Daemon" daemon [_thread_blocked, id=3680]

0x06e03258 JavaThread "RMI Reaper" [_thread_blocked, id=772]

0x06594dd8 JavaThread "Thread-52" daemon [_thread_blocked, id=2920]

0x06adac70 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=3528]

0x06c3adf8 JavaThread "Thread-51" [_thread_blocked, id=3860]

0x06c3a810 JavaThread "Thread-50" daemon [_thread_blocked, id=2544]

0x0682e5b0 JavaThread "JTS Timeout Thread" daemon [_thread_blocked_trans, id=1964]

0x06789c60 JavaThread "ORB Server-side Reader, conn from MVG-WRK-0041.DG3.be:3019"

daemon [_thread_in_native, id=2236]

0x06c314f8 JavaThread "ORB Client-side Reader, conn to 10.20.24.3:4653" daemon [_thread_in_native, id=132]

0x06eb29c0 JavaThread "Thread-47" [_thread_blocked, id=4008]

0x06d315c0 JavaThread "ORB Listener 0.0.0.0:4653" daemon [_thread_in_native, id=3956]

0x06bb8a40 JavaThread "Thread-46" daemon [_thread_blocked, id=3040]

0x06bb7e30 JavaThread "Thread-45" daemon [_thread_blocked, id=376]

0x067e8c70 JavaThread "Thread-44" daemon [_thread_blocked, id=2968]

0x067e8100 JavaThread "Thread-43" daemon [_thread_blocked, id=2928]

0x067e7518 JavaThread "Thread-42" daemon [_thread_blocked, id=3384]

0x066ebc70 JavaThread "Thread-41" daemon [_thread_blocked, id=3180]

0x066eb100 JavaThread "Thread-40" daemon [_thread_blocked, id=3876]

0x066ea620 JavaThread "Thread-39" daemon [_thread_blocked, id=2372]

0x069505d0 JavaThread "Thread-38" daemon [_thread_blocked, id=3504]

0x0694f930 JavaThread "Thread-37" daemon [_thread_blocked, id=2116]

0x0694ee50 JavaThread "Thread-36" daemon [_thread_blocked, id=3784]

0x06705298 JavaThread "Thread-35" daemon [_thread_blocked, id=3524]

0x06704408 JavaThread "Thread-34" daemon [_thread_blocked, id=3080]

0x06b80b80 JavaThread "Thread-33" daemon [_thread_blocked, id=264]

0x06b80068 JavaThread "Thread-32" daemon [_thread_blocked, id=1020]

0x06787670 JavaThread "Thread-31" daemon [_thread_blocked, id=472]

0x06786a60 JavaThread "Thread-30" daemon [_thread_blocked, id=3464]

0x06a5e1d0 JavaThread "Thread-29" daemon [_thread_blocked, id=2520]

0x06a5d660 JavaThread "Thread-28" daemon [_thread_blocked, id=3804]

0x067773c0 JavaThread "Thread-27" daemon [_thread_blocked, id=2164]

0x06776c50 JavaThread "Thread-26" daemon [_thread_blocked, id=1852]

0x066e22b0 JavaThread "Thread-25" daemon [_thread_blocked, id=3148]

0x066e1b40 JavaThread "Thread-24" daemon [_thread_blocked, id=3828]

0x066e1008 JavaThread "Thread-23" daemon [_thread_blocked, id=3060]

0x069cdc88 JavaThread "Thread-22" daemon [_thread_blocked, id=3708]

0x06994a00 JavaThread "Thread-21" daemon [_thread_blocked, id=960]

0x06993fd0 JavaThread "Thread-20" daemon [_thread_blocked, id=2224]

0x06ae8578 JavaThread "Thread-19" daemon [_thread_blocked, id=2704]

0x06a1c680 JavaThread "Thread-18" daemon [_thread_blocked, id=3892]

0x06ed4ca8 JavaThread "Thread-17" daemon [_thread_blocked, id=1144]

0x06713280 JavaThread "Thread-16" daemon [_thread_blocked, id=3476]

0x0680c080 JavaThread "Thread-15" daemon [_thread_blocked, id=3160]

0x0680ba18 JavaThread "Thread-14" daemon [_thread_blocked, id=1308]

0x066e7f08 JavaThread "Thread-13" daemon [_thread_blocked, id=1652]

0x066e7d10 JavaThread "Thread-12" daemon [_thread_blocked, id=1388]

0x00f816a0 JavaThread "Thread-11" daemon [_thread_blocked, id=2880]

0x066e8868 JavaThread "Thread-10" daemon [_thread_blocked, id=2248]

0x06ac6810 JavaThread "Thread-9" daemon [_thread_blocked, id=3844]

0x066a86e0 JavaThread "Thread-8" daemon [_thread_blocked, id=1192]

0x066a84e8 JavaThread "Thread-7" daemon [_thread_blocked, id=1732]

0x066560d0 JavaThread "Thread-0" [_thread_blocked, id=476]

0x00d9a948 JavaThread "CompilerThread1" daemon [_thread_blocked, id=1256]

0x00d99c40 JavaThread "CompilerThread0" daemon [_thread_blocked, id=408]

0x00d98c98 JavaThread "AdapterThread" daemon [_thread_blocked, id=2640]

0x00d98008 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2056]

0x00d818c8 JavaThread "JDWP Event Helper Thread" daemon [_thread_in_native, id=1520]

0x00ee7e40 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_in_native, id=3712]

0x00d8bb78 JavaThread "Finalizer" daemon [_thread_blocked, id=3688]

0x00d8a768 JavaThread "Reference Handler" daemon [_thread_blocked, id=3624]

0x00d67a18 JavaThread "main" [_thread_in_native, id=2080]

Other Threads:

=>0x00d89968 VMThread [id=2368]

0x00db2630 WatcherThread [id=384]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])

[0x00db4eb0/0x00000600] Threads_lock - owner thread: 0x00d89968

[0x00cf2ba8/0x000005c4] Heap_lock - owner thread: 0x066e1008

Heap

PSYoungGentotal 280768K, used 53248K [0x10010000, 0x27e70000, 0x27e70000)

eden [0x10010000,0x10010000,0x1a610000)

from [0x21240000,0x24640000,0x27e70000)

to[0x1a610000,0x1a610000,0x21240000)

PSOldGentotal 217536K, used 156605K [0x27e70000, 0x352e0000, 0x4fc10000)

object [0x27e70000,0x3175f7c8,0x352e0000)

PSPermGentotal 44800K, used 44727K [0x4fc10000, 0x527d0000, 0x53c10000)

object [0x4fc10000,0x527bdff8,0x527d0000)

Dynamic libraries:

0x00400000 - 0x00406000 C:\Sun\AppServer7\bin\appservd.exe

0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll

0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll

0x60b90000 - 0x60c79000 C:\Sun\AppServer7\bin\ns-httpd40.dll

0x60e00000 - 0x60e1a000 C:\Sun\AppServer7\bin\ssl3.dll

0x60ce0000 - 0x60d5d000 C:\Sun\AppServer7\bin\nss3.dll

0x60b10000 - 0x60b17000 C:\Sun\AppServer7\bin\libplc4.dll

0x60ac0000 - 0x60af1000 C:\Sun\AppServer7\bin\libnspr4.dll

0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll

0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll

0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.dll

0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll

0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll

0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll

0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\MSWSOCK.dll

0x60b20000 - 0x60b26000 C:\Sun\AppServer7\bin\libplds4.dll

0x60c80000 - 0x60c88000 C:\Sun\AppServer7\bin\nsfc.dll

0x60db0000 - 0x60db6000 C:\Sun\AppServer7\bin\nstime.dll

0x60cd0000 - 0x60cda000 C:\Sun\AppServer7\bin\nsprwrap.dll

0x60e20000 - 0x60e2c000 C:\Sun\AppServer7\bin\support.dll

0x60dc0000 - 0x60dc5000 C:\Sun\AppServer7\bin\nstp.dll

0x600e0000 - 0x600e5000 C:\Sun\AppServer7\bin\getprop.dll

0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll

0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll

0x60b30000 - 0x60b4e000 C:\Sun\AppServer7\bin\libsi18n.dll

0x60aa0000 - 0x60aaa000 C:\Sun\AppServer7\bin\libdbm.dll

0x600a0000 - 0x600a5000 C:\Sun\AppServer7\bin\ares3.dll

0x7c9c0000 - 0x7d1d6000 C:\WINDOWS\system32\SHELL32.dll

0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll

0x60da0000 - 0x60da8000 C:\Sun\AppServer7\bin\NSSLDAP32V50.dll

0x60cc0000 - 0x60cc6000 C:\Sun\AppServer7\bin\NSLDAPPR32V50.dll

0x60c90000 - 0x60cb5000 C:\Sun\AppServer7\bin\NSLDAP32V50.dll

0x60e30000 - 0x60ec1000 C:\Sun\AppServer7\bin\xerces-c.dll

0x609e0000 - 0x60a3c000 C:\Sun\AppServer7\bin\icuuc2.dll

0x60100000 - 0x60904000 C:\Sun\AppServer7\bin\icudt2.dll

0x60910000 - 0x609a2000 C:\Sun\AppServer7\bin\icuin2.dll

0x00320000 - 0x00331000 C:\WINDOWS\system32\MSVCIRT.dll

0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls

_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll

0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\comctl32.dll

0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll

0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll

0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll

0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll

0x60a60000 - 0x60a72000 C:\Sun\AppServer7\bin\j2eeplugin.dll

0x08000000 - 0x082b8000 C:\Sun\AppServer7\jdk\jre\bin\server\jvm.dll

0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll

0x5dac0000 - 0x5dac8000 C:\WINDOWS\system32\rdpsnd.dll

0x76360000 - 0x76370000 C:\WINDOWS\system32\WINSTA.dll

0x5b860000 - 0x5b8b4000 C:\WINDOWS\system32\NETAPI32.dll

0x60070000 - 0x6007a000 C:\Sun\AppServer7\bin\PSAPI.DLL

0x76c90000 - 0x76cb8000 C:\WINDOWS\system32\IMAGEHLP.dll

0x10000000 - 0x10007000 C:\Sun\AppServer7\jdk\jre\bin\hpi.dll

0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll

0x01400000 - 0x0140e000 C:\Sun\AppServer7\jdk\jre\bin\verify.dll

0x022b0000 - 0x022c9000 C:\Sun\AppServer7\jdk\jre\bin\java.dll

0x022d0000 - 0x022de000 C:\Sun\AppServer7\jdk\jre\bin\zip.dll

0x05c00000 - 0x05c1c000 C:\Sun\AppServer7\jdk\jre\bin\jdwp.dll

0x05c20000 - 0x05c25000 C:\Sun\AppServer7\jdk\jre\bin\dt_socket.dll

0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll

0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll

0x07140000 - 0x0714f000 C:\Sun\AppServer7\jdk\jre\bin\net.dll

0x600b0000 - 0x600bd000 C:\Sun\AppServer7\bin\cis.dll

0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll

0x76d40000 - 0x76d58000 C:\WINDOWS\system32\MPRAPI.dll

0x77cc0000 - 0x77cf2000 C:\WINDOWS\system32\ACTIVEDS.dll

0x76e10000 - 0x76e35000 C:\WINDOWS\system32\adsldpc.dll

0x76b20000 - 0x76b31000 C:\WINDOWS\system32\ATL.DLL

0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll

0x77120000 - 0x771ac000 C:\WINDOWS\system32\OLEAUT32.dll

0x76e80000 - 0x76e8e000 C:\WINDOWS\system32\rtutils.dll

0x71bf0000 - 0x71c03000 C:\WINDOWS\system32\SAMLIB.dll

0x77920000 - 0x77a13000 C:\WINDOWS\system32\SETUPAPI.dll

0x07f60000 - 0x07f66000 C:\Sun\AppServer7\jdk\jre\bin\ioser12.dll

0x07f70000 - 0x07f75000 C:\Sun\AppServer7\jdk\jre\bin\rmi.dll

0x0ffd0000 - 0x0fff8000 C:\WINDOWS\system32\rsaenh.dll

VM Arguments:

jvm_args: -DJAVA_HOME=C:/Sun/AppServer7/jdk

-Dcom.sun.aas.installRoot=C:/Sun/AppServer7

-Dcom.sun.aas.instanceRoot=C:\Sun\AppServer7\domains\domain1

-Duser.language=nl

-Duser.country=BE

-Duser.variant= exit vfprintf

-Djava.security.policy=C:/Sun/AppServer7/domains/domain1/kwatraNieuw/config/server.policy

-Djava.security.auth.login.config=C:/Sun/AppServer7/domains/domain1/kwatraNieuw/config/login.conf

-Djava.util.logging.manager=com.iplanet.ias.server.logging.ServerLogManager

-Dcom.sun.aas.configRoot=C:/Sun/AppServer7/config

-Dcom.sun.aas.imqLib=C:/Sun/AppServer7/imq/lib

-Dcom.sun.aas.imqBin=C:/Sun/AppServer7/imq/bin

-Dcom.sun.aas.webServicesLib=C:\Sun\AppServer7\share\lib

-XX:+AggressiveHeap -XX:+DisableExplicitGC

-Djavax.rmi.CORBA.UtilClass=com.iplanet.ias.util.orbutil.IasUtilDelegate

-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter

-Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl

-Dcom.sun.jdo.api.persistence.model.multipleClassLoaders=reload

-server -Xss128k -Xms512m -Xdebug

-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=2876

-Xnoagent -Djava.compiler=NONE

java_command: <unknown>

Launcher Type: generic

Environment Variables:

CLASSPATH=C:\Program Files\QuickTime\QTSystem\QTJava.zip

PATH=C:/Sun/AppServer7/jdk\jre\bin\server;

C:/Sun/AppServer7/jdk\jre\bin;;C:/Sun/AppServer7/bin/;

C:\oracle\product\10.2.0\client_1;C:\oracle\product\10.2.0\client_1\bin;

C:\orarun\bin;C:\WINDOWS\system32;C:\WINDOWS;

C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;

C:\orarun\jdk\bin;C:\Program Files\Provision Networks\Virtual Access Client\

OS=Windows_NT

PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel

S Y S T E M

OS: Windows XP Build 2600 Service Pack 2

CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2

Memory: 4k page, physical 2088428k(641700k free), swap 4030576k(2605040k free)

vm_info: Java HotSpot(TM) Server VM (1.4.2_11-b06) for windows-x86,

built on Feb 13 2006 10:02:05 by "java_re" with MS VC++ 6.0

Anyone who has more information as to what to do?

Thx.

Message was edited by:

DonStevo

Message was edited by:

DonStevo

DonStevoa at 2007-7-11 22:53:06 > top of Java-index,Application & Integration Servers,Application Servers...
# 2
Anyone? :-SThis is really slowing down my development proces.Thanks in advance.
DonStevoa at 2007-7-11 22:53:06 > top of Java-index,Application & Integration Servers,Application Servers...
# 3
No one knows a solution? :-(Well, i hope it gets better after we switched and migrated to JBoss, but that only starts in a month or so, so i'll be doing very slow development for a while then.
DonStevoa at 2007-7-11 22:53:06 > top of Java-index,Application & Integration Servers,Application Servers...
# 4

Hi there,

To give more information ...

Before posting this topic i googled, and found some sites, like http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/crashes.html , but none could help me with my problem.

I tried to switch from serial gc to parallel gc and the other way round, i tried the throughput collector, i tried assigning more memory, removed the maximum heap size boundary, but to no help...

Can anyone help me?

DonStevoa at 2007-7-11 22:53:06 > top of Java-index,Application & Integration Servers,Application Servers...
# 5
have you checked on the Java version that is installed on your pc and against the java version that is set on the classpath? JBoss may also read the environment variable. Had you installed two JDK in your machine?
jemrusalem07a at 2007-7-11 22:53:06 > top of Java-index,Application & Integration Servers,Application Servers...
# 6

comment out anything of these from run.bat of JBOSS.

check also the debugging of JBOSS if it is correct.

rem set JAVA_OPTS= -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%

or if you need to debug then set suspend = y...

these depends..

try to remove first.. then return here again to post the result..

jemrusalem07a at 2007-7-11 22:53:06 > top of Java-index,Application & Integration Servers,Application Servers...
# 7

Hi there,

We don't use JBoss yet. We'll be migrating in a few months.

For now, i have Sun One Application Server 7 Update 3 installed (we had problems with a CORBA.MARSHALL Exception that occured in version 7 2004Q2 Update 5 (but not in version 7 Update 3), and had CMP problems (booleans in EJB-QL's that weren't translated correctly in the version 7 Update 3, for which I changed some code.

I use the JDK which is delivered together with Sun AS (that is JDK 1.4.2_03a or something).

I didn't try debugging anymore for months, but the last time i tried, it was on Sun One AS 7 2004Q2 with JDK 1.4.2_11 or something like that ... and the Application Server crashed and restarted when reaching the breakpoint.

:-S

DonStevoa at 2007-7-11 22:53:06 > top of Java-index,Application & Integration Servers,Application Servers...
# 8

Some forums say that this is HotSpot thing, rather than specific application like JBoss or Sun One App Server. I'm not very sure about what is wrong with the HotSpot but its a good start where you can dig.

I had encountered the same problem, and I just did the following thing that I posted and my application is working now. That is check that you are consistently using the same version of JDKs thoughout your development and your environment, and finally do a check that you in your run script, for instance run.bat for JBoss specially the debug settings. There are many cases, but double check this in your case.

I hope this helps. Please add comment again if you solved your problem. :)

jemrusalem07a at 2007-7-11 22:53:06 > top of Java-index,Application & Integration Servers,Application Servers...
# 9

I'll check it out.

Sun One has a debug flag, that automatically inserts debug options in the JVM options or the server startup.

Then I check the debug port, and I enable remote debug in Eclipse.

I only use a J2SDK 1.4.2 that came with the Sun One Application Server 7 Update 3, and no JRE installed. So i think my environment is consistent.

Didn't try to debug anymore, but will check it again.

Thx

DonStevoa at 2007-7-11 22:53:06 > top of Java-index,Application & Integration Servers,Application Servers...