adgarcia13
asked on
Problem running Java program that calls methods in a Windows C++ DLL via a JNI wrapper.......
Greetings,
Am having a problem running an Eclipse Java program in the IDE on Windows XP that calls Windows C++ methods in a Windows DLL via JNI. The JNI wrapper was developed using the SUN SDK. When we run the java program using the SUN JVM it all works well; when we attempt this using the JVM available with IBM Websphere 6.0.2.5 we have the following problem when we attempted to make the first C++ method call:
JVMDG217: Dump Handler is Processing Signal 11 - Please Wait.
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to C:\EclipseWorkspace\AppNam
and in the dump file found the following:
NULL Â Â Â Â Â --------------------------
0SECTION Â Â Â TITLE subcomponent dump routine
NULL Â Â Â Â Â ==========================
1TISIGINFO Â Â signal 11 received
1TIDATETIME Â Â Date: Â Â Â Â Â Â Â Â 2006/06/26 at 09:55:32
1TIFILENAME Â Â Javacore filename: Â Â D:\EclipseWorkspace\SQLPar
NULL Â Â Â Â Â --------------------------
0SECTION Â Â Â XHPI subcomponent dump routine
NULL Â Â Â Â Â ==========================
1XHEXCPCODE Â Â Exception code: C0000005 Access Violation
1XHEXCPADDRESS Fault address: Â 1001F1C3 01:0001E1C3
1XHEXCPMODULE Â Fault module: Â D:\IBM\WebSphere\AppServer
NULL Â Â Â Â Â
1XHREGISTERS Â Registers:
2XHREGISTER Â Â Â EAX:00000000
2XHREGISTER Â Â Â EBX:05E552D4
2XHREGISTER Â Â Â ECX:0032AB18
2XHREGISTER Â Â Â EDX:05E553A0
2XHREGISTER Â Â Â ESI:002B1998
2XHREGISTER Â Â Â EDI:00000000
2XHREGISTER Â Â Â CS:EIP:001B:1001F1C3
2XHREGISTER Â Â Â SS:ESP:0023:0006FC48 Â EBP:00000000
2XHREGISTER Â Â Â DS:0023 Â ES:0023 Â FS:003B Â GS:0000
NULL Â Â Â Â Â
1XHFLAGS Â Â Â Flags:00010246
NULL Â Â Â Â Â
NULL Â Â Â Â Â --------------------------
0SECTION Â Â Â CI subcomponent dump routine
NULL Â Â Â Â Â ==========================
1CIJAVAVERSION J2RE 1.4.2 IBM Windows 32 build cn142ifx-20051115 (SR3 + 94164 + 97403 + 97482)
1CIRUNNINGAS Â Running as a standalone JVM
1CICMDLINE Â Â D:\IBM\WebSphere\AppServer
1CIJAVAHOMEDIR Java Home Dir: Â D:\IBM\WebSphere\AppServer
1CIJAVADLLDIR Â Java DLL Dir: Â Â D:\IBM\WebSphere\AppServer
1CISYSCP Â Â Â Sys Classpath: Â D:\IBM\WebSphere\AppServer
1CIUSERARGS Â Â UserArgs:
2CIUSERARG Â Â Â Â Â Â Â vfprintf 0x403000
2CIUSERARG Â Â Â Â Â Â Â -Dinvokedviajava
2CIUSERARG Â Â Â Â Â Â Â -Djava.class.path=D:\Eclip
2CIUSERARG Â Â Â Â Â Â Â vfprintf
NULL Â Â Â Â Â
1CIJVMMI Â Â Â JVM Monitoring Interface (JVMMI)
NULL Â Â Â Â Â ------------------------
2CIJVMMIOFF Â Â No events are enabled.
NULL Â Â Â Â Â
NULL Â Â Â Â Â --------------------------
0SECTION Â Â Â DC subcomponent dump routine
NULL Â Â Â Â Â ==========================
1DCHEADEREYE  Header eye catcher  DCST
1DCHEADERLEN  Header length    24
1DCHEADERVER  Header version    1
1DCHEADERMOD Â Header modification 0
2DCARRAYINFO   10 - index  9 signature S name  short[] factor 2
2DCARRAYINFO   11 - index 10 signature I name   int[] factor 4
2DCARRAYINFO   12 - index 11 signature J name  long[] factor 8
NULL Â Â Â Â Â --------------------------
0SECTION Â Â Â DG subcomponent dump routine
NULL Â Â Â Â Â ==========================
1DGTRCENABLED Â Trace enabled: Yes
2DGTRCTYPE Â Â Â Trace: Internal
2DGTRCBUFFERS Â Â Buffer specification: 8k
2DGTRCBUFALLOC Â Buffers allocated: 0
2DGTRCBUFUSED Â Â Buffers in use: Â Â 0
1DGJDUMPBUFF Â Javadump buffer size (allocated): 2621440
NULL Â Â Â Â Â --------------------------
0SECTION Â Â Â ST subcomponent dump routine
NULL Â Â Â Â Â ==========================
1STGCMODES Â Â Resettable GC: No
1STGCMODES Â Â Concurrent GC: No
1STCURHBASE Â Â Current Heap Base: 0x101801FC
1STCURHLIM Â Â Current Heap Limit: 0x1057FBFC
1STMWHBASE Â Â Middleware Heap Base: 0x101801FC
1STMWHLIM Â Â Â Middleware Heap Limit: 0x1057FBFC
1STGCHELPERS Â Number of GC Helper Threads: 0
1STJVMOPTS Â Â -Xconcurrentlevel: 0
1STJVMOPTS Â Â -Xconcurrentbackground: 0
1STGCCTR Â Â Â GC Counter: 0
1STAFCTR Â Â Â AF Counter: 0
1STHEAPFREE Â Â Bytes of Heap Space Free: 2f2e40
1STHEAPALLOC Â Bytes of Heap Space Allocated: 3ffa00
1STSMBASE Â Â Â SM Base: 0x0
1STSMEND Â Â Â SM End: 0x0
1STPAMSTART Â Â PAM Start: 0x0
1STPAMEND Â Â Â PAM End: 0x0
1STCOMACTION Â Compact Action: 0
NULL Â Â Â Â Â --------------------------
0SECTION Â Â Â XE subcomponent dump routine
NULL Â Â Â Â Â ==========================
1XETHRESHOLD Â MMI threshold for java methods is set to 2000
1XEJITINIT Â Â JIT is initialized
1XEJVMPIOFF Â Â JVMPI is not activated
1XEJNITHRESH Â MMI threshold for JNI methods is set to 0
1XETRCHIS Â Â Â Trace history length is set to 4
1XEJITDUMP Â Â JIT dump routine is not yet implemented.
NULL Â Â Â Â Â --------------------------
0SECTION Â Â Â LK subcomponent dump routine
NULL Â Â Â Â Â ==========================
NULL Â Â Â Â Â
1LKPOOLINFO Â Â Monitor pool info:
2LKPOOLINIT Â Â Â Initial monitor count: 32
2LKPOOLEXPNUM Â Â Minimum number of free monitors before expansion: 5
2LKPOOLEXPBY Â Â Pool will next be expanded by: 16
2LKPOOLTOTAL Â Â Current total number of monitors: 32
2LKPOOLFREE Â Â Â Current number of free monitors: 28
NULL Â Â Â Â Â
1LKMONPOOLDUMP Monitor Pool Dump (flat &Â inflated object-monitors):
2LKMONINUSE Â Â Â sys_mon_t:0x0026FD30 infl_mon_t: 0x002B227C:
3LKMONOBJECT Â Â Â java.lang.ref.Reference$Lo
3LKNOTIFYQ Â Â Â Â Â Â Waiting to be notified:
3LKWAITNOTIFY Â Â Â Â Â Â "Reference Handler" (0x1D6FAA0)
2LKMONINUSE Â Â Â sys_mon_t:0x0026FDC0 infl_mon_t: 0x002B22D4:
3LKMONOBJECT Â Â Â java.lang.ref.ReferenceQue
3LKNOTIFYQ Â Â Â Â Â Â Waiting to be notified:
3LKWAITNOTIFY Â Â Â Â Â Â "Finalizer" (0x1DF35E8)
NULL Â Â Â Â Â
1LKREGMONDUMP Â JVM System Monitor Dump (registered monitors):
2LKREGMON Â Â Â Â Â JITC PIC Lock (0x01EB1448): <unowned>
2LKREGMON Â Â Â Â Â JITC CHA lock (0x01E9B090): <unowned>
2LKREGMON Â Â Â Â Â JITC MB UPDATE lock (0x026A0070): <unowned>
2LKREGMON Â Â Â Â Â JITC Global_Compile lock (0x026A0020): <unowned>
2LKREGMON Â Â Â Â Â Free Class Loader Cache Entry lock (0x002B4098): <unowned>
NULL Â Â Â Â Â
1LKOBJMONDUMP Â Java Object Monitor Dump (flat &Â inflated object-monitors):
2LKINFLATEDMON Â Â java.lang.ref.ReferenceQue
3LKINFLDETAILS Â Â Â Â locknflags 80000400 Monitor inflated infl_mon 0x002B22D4
2LKINFLATEDMON Â Â java.lang.ref.Reference$Lo
3LKINFLDETAILS Â Â Â Â locknflags 80000200 Monitor inflated infl_mon 0x002B227C
NULL Â Â Â Â Â --------------------------
0SECTION Â Â Â XM subcomponent dump routine
NULL Â Â Â Â Â ==========================
NULL Â Â Â Â Â Â
1XMCURTHDINFO Â Current Thread Details
NULL Â Â Â Â Â ----------------------
3XMTHREADINFO Â Â Â "main" (TID:0x101EB9B8, sys_thread_t:0x2B1B70, state:R, native ID:0xCBC) prio=5: pending=java.lang.NoClassD
4XESTACKTRACE Â Â Â Â Â at DSSqlParser.SqlParser.init
4XESTACKTRACE Â Â Â Â Â at DSSqlParser.SqlParser.main
1XMTHDINFO Â Â All Thread Details
NULL Â Â Â Â Â ------------------
NULL Â Â Â Â Â
2XMFULLTHDDUMP Full thread dump Classic VM (J2RE 1.4.2 IBM Windows 32 build cn142ifx-20051115 (SR3 + 94164 + 97403 + 97482), native threads):
3XMTHREADINFO Â Â Â "Finalizer" (TID:0x101EB8B0, sys_thread_t:0x1DF35E8, state:CW, native ID:0x4AC) prio=8
4XESTACKTRACE Â Â Â Â Â at java.lang.Object.wait(Nati
4XESTACKTRACE Â Â Â Â Â at java.lang.ref.ReferenceQue
4XESTACKTRACE Â Â Â Â Â at java.lang.ref.ReferenceQue
4XESTACKTRACE Â Â Â Â Â at java.lang.ref.Finalizer$Fi
3XMTHREADINFO Â Â Â "Reference Handler" (TID:0x101EB908, sys_thread_t:0x1D6FAA0, state:CW, native ID:0xBB8) prio=10
4XESTACKTRACE Â Â Â Â Â at java.lang.ref.Reference.pr
4XESTACKTRACE Â Â Â Â Â at java.lang.ref.Reference.ac
4XESTACKTRACE Â Â Â Â Â at java.lang.ref.Reference$Re
3XMTHREADINFO Â Â Â "Signal dispatcher" (TID:0x101EB960, sys_thread_t:0x1DE63C8, state:R, native ID:0xD84) prio=5
3XMTHREADINFO Â Â Â "main" (TID:0x101EB9B8, sys_thread_t:0x2B1B70, state:R, native ID:0xCBC) prio=5: pending=java.lang.NoClassD
4XESTACKTRACE Â Â Â Â Â at DSSqlParser.SqlParser.init
4XESTACKTRACE Â Â Â Â Â at DSSqlParser.SqlParser.main
NULL Â Â Â Â Â --------------------------
0SECTION Â Â Â CL subcomponent dump routine
NULL Â Â Â Â Â ==========================
1CLCLASSPATH Â Â Â Â Â Â Â Classpath Z(D:\IBM\WebSphere\AppServ
1CLFLAGOLDJAVA Â Â Â Â Â Â Oldjava mode false
1CLFLAGBOOTSTRP Â Â Â Â Â Bootstrapping false
1CLFLAGVERBOSE Â Â Â Â Â Â Verbose class dependencies false
1CLENUMVERIFY Â Â Â Â Â Â Class verification VERIFY_REMOTE
1CLPNTRNAMECLLO Â Â Â Â Â Namespace to classloader 0x00000000
1CLPNTRCLSEXT Â Â Â Â Â Â Extension loader 0x101EB830
1CLPNTRSYSLOADR Â Â Â Â Â System classloader 0x101EB7B0
1CLTEXTCLLOS Â Â Â Â Â Â Â Classloader summaries
1CLTEXTCLLSS Â Â Â Â Â Â Â Â Â Â Â Â 12345678: 1=primordial,2=extension,3
2CLTEXTCLLOADER Â Â Â Â Â Â Â Â Â Â Â -----ta- Loader sun/misc/Launcher$AppClass
3CLNMBRLOADEDCL Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Number of loaded classes 1
3CLNMBRCACHECLS Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Number of cached classes 259
3CLHEXDALLOCTIO Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Allocation used for loaded classes 1
3CLHEXDPCKGEOWN Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Package owner 0x101EB7B0
2CLTEXTCLLOADER Â Â Â Â Â Â Â Â Â Â Â -xh-st-- Loader sun/misc/Launcher$ExtClass
3CLNMBRLOADEDCL Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Number of loaded classes 0
3CLNMBRCACHECLS Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Number of cached classes 0
3CLHEXDALLOCTIO Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Allocation used for loaded classes 3
3CLHEXDPCKGEOWN Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Package owner 0x101EB830
2CLTEXTCLLOADER Â Â Â Â Â Â Â Â Â Â Â p-h-st-- Loader *System*(0x00361F20), Shadow 0x00000000
3CLNMBRLOADEDCL Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Number of loaded classes 306
3CLNMBRCACHECLS Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Number of cached classes 306
3CLHEXDALLOCTIO Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Allocation used for loaded classes 3
3CLHEXDPCKGEOWN Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Package owner 0x00000000
1CLTEXTCLLOD Â Â Â Â Â Â Â ClassLoader loaded classes
2CLTEXTCLLOAD Â Â Â Â Â Â Â Â Â Â Â Â Loader sun/misc/Launcher$AppClass
3CLTEXTCLASS Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â DSSqlParser/SqlParser(0x10
2CLTEXTCLLOAD Â Â Â Â Â Â Â Â Â Â Â Â Loader sun/misc/Launcher$ExtClass
2CLTEXTCLLOAD Â Â Â Â Â Â Â Â Â Â Â Â Loader *System*(0x00361F20)
3CLTEXTCLASS Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â java/io/DataOutput(0x002DA
3CLTEXTCLASS Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â sun/net/www/URLConnection(
3CLTEXTCLASS Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â com/ibm/jvm/io/FileOutputS
3CLTEXTCLASS Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â java/util/Hashtable$EmptyI
3CLTEXTCLASS Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â java/lang/ClassLoader(0x00
3CLTEXTCLASS Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â java/lang/Comparable(0x002
NULL Â Â Â Â Â --------------------------
0SECTION Â Â Â Javadump End section
1DGJDUMP Â Â Â Javadump Buffer Usage Information
NULL Â Â Â Â Â ==========================
2DGJDUMPALLOC Â Javadump buffer size (allocated): 2621440
2DGJDUMPUSED Â Javadump buffer size (used) Â Â : 34558
NULL Â Â Â Â Â ---------------------- END OF DUMP --------------------------
Any help is appreciated.
ADG13
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did you analyze this Java Core dump with IBM Thread analyzer ?
Check following URL ( You will also find URL to download IBM ThreadAnalyzer tool which read java core dump and analyze it ):
http://www-1.ibm.com/support/docview.wss?rs=180&context=SSEQTP&dc=DB520&dc=D600&dc=DB530&dc=D700&dc=DB500&dc=DB540&dc=DB510&dc=DB550&q1=c%2b%2b+method+call&uid=swg21180862&loc=en_US&cs=utf-8&lang=en
Good Luck.
Andy K
Check following URL ( You will also find URL to download IBM ThreadAnalyzer tool which read java core dump and analyze it ):
http://www-1.ibm.com/support/docview.wss?rs=180&context=SSEQTP&dc=DB520&dc=D600&dc=DB530&dc=D700&dc=DB500&dc=DB540&dc=DB510&dc=DB550&q1=c%2b%2b+method+call&uid=swg21180862&loc=en_US&cs=utf-8&lang=en
Good Luck.
Andy K
try running with java -Xcheck:jni, it helps you find out native problems
ASKER
Thanks Andy,
Do you know of any specific information on this issue? I did some research on the internet and it seems other people have run into related problems but not this specific one. I guess I am wondering if it has already been reported and there is some known workaround or patch. If I don't find something soon a PMR will be opened.
Thanks,
ADG13