• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat crash when running native code... however same code runs in Eclipse perfectly with Tomcat  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I am facing a serious problem when running a native code (MATLAB) in Tomcat. The code plots a graph in a web page. It has calls to MATLAB codes and uses a dll. The code works fine in Eclipse environment with Tomcat.

However when I try to deploy the project(generated WAR file) into Tomcat alone (paste into Webapps directory) and invoke the servlet, it doesn't work.
Tomcat crashes and shuts down.

From the log I find that JVM crashes with EXCEPTION_ACCESS_VIOLATION. My OS is Vista, Java 1.6.0_13, Tomcat 6.0.20

Please suggest some way to work it out

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6da1f312, pid=4332, tid=4432
#
# Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode windows-x86)
# Problematic frame:
# C [jvm.dll+0x16f312]

#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

--------------- THR EAD ---------------

Current thread (0x01dc9c00): JavaThread "main" [_thread_in_vm, id=4432, stack(0x069d0000,0x071d0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000094

Registers:
EAX=0x00000000, EBX=0x01dc4628, ECX=0x00000006, EDX=0x00000010
ESP=0x071cf494, EBP=0x01e03d80, ESI=0x01dc9c00, EDI=0x01dc4630
EIP=0x6da1f312, EFLAGS=0x00010287

Top of Stack: (sp=0x071cf494)
0x071cf494: 01dc4630 01dc9c00 6d9aec3a 00000010
0x071cf4a4: 01dc9c00 00000006 01dc9c00 181f3b68
0x071cf4b4: 071cf620 181f3b68 00000000 07295920
0x071cf4c4: 07295950 074687a9 01dc9c00 01dc4a94
0x071cf4d4: 00000159 01dc4628 01dc4630 01dc4a1c
0x071cf4e4: 01dc4730 071cf5e4 071cf51c 01dc4730
0x071cf4f4: 073b1d28 01dc4a98 01dc4630 00000000
0x071cf504: 00000041 00000000 00000000 00000000

Instructions: (pc=0x6da1f312)
0x6da1f302: 54 ac 6d 56 57 50 ff 15 58 a1 a7 6d 8b 54 24 0c
0x6da1f312: 8b 88 94 00 00 00 8b 41 08 8b 79 0c 83 c2 07 83


Stack: [0x069d0000,0x071d0000], sp=0x071cf494, free space=8189k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [jvm.dll+0x16f312]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j java.security.AccessController.getStackAccessControlContext()Ljava/security/AccessControlContext;+0
j java.security.AccessController.getContext()Ljava/security/AccessControlContext;+0
j java.lang.Thread.init(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V+135
j java.lang.Thread.<init>(Ljava/lang/ThreadGroup;Ljava/lang/String;)V+45
v ~StubRoutines::call_stub


--------------- PROCESS ---------------

Java Threads: ( => current thread )
=>0x01dc9c00 JavaThread "main" [_thread_in_vm, id=4432, stack(0x069d0000,0x071d0000)]

Other Threads:
0x0425e400 VMThread [stack: 0x09460000,0x094b0000] [id=3284]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 14784K, used 263K [0x10170000, 0x11170000, 0x12170000)
eden space 13184K, 2% used [0x10170000, 0x101b1ec8, 0x10e50000)
from space 1600K, 0% used [0x10e50000, 0x10e50000, 0x10fe0000)
to space 1600K, 0% used [0x10fe0000, 0x10fe0000, 0x11170000)
tenured generation total 49152K, used 0K [0x12170000, 0x15170000, 0x18170000)
the space 49152K, 0% used [0x12170000, 0x12170000, 0x12170200, 0x15170000)
compacting perm gen total 32768K, used 528K [0x18170000, 0x1a170000, 0x1c170000)
the space 32768K, 1% used [0x18170000, 0x181f4190, 0x181f4200, 0x1a170000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x00424000 C:\Program Files\Java\jdk1.6.0_13\bin\java.exe
0x77a60000 - 0x77b87000 C:\Windows\system32\ntdll.dll
0x766d0000 - 0x767ab000 C:\Windows\system32\kernel32.dll
0x762e0000 - 0x763a6000 C:\Windows\system32\ADVAPI32.dll
0x77bf0000 - 0x77cb3000 C:\Windows\system32\RPCRT4.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jdk1.6.0_13\jre\bin\msvcr71.dll
0x6d8b0000 - 0x6db06000 C:\Program Files\Java\jdk1.6.0_13\jre\bin\client\jvm.dll
0x77440000 - 0x774dd000 C:\Windows\system32\USER32.dll
0x765f0000 - 0x7663b000 C:\Windows\system32\GDI32.dll
0x74e90000 - 0x74ec2000 C:\Windows\system32\WINMM.dll
0x77390000 - 0x7743a000 C:\Windows\system32\msvcrt.dll
0x77910000 - 0x77a54000 C:\Windows\system32\ole32.dll
0x77730000 - 0x777bd000 C:\Windows\system32\OLEAUT32.dll
0x74b00000 - 0x74b39000 C:\Windows\system32\OLEACC.dll
0x765a0000 - 0x765be000 C:\Windows\system32\IMM32.DLL
0x777c0000 - 0x77888000 C:\Windows\system32\MSCTF.dll
0x76110000 - 0x7613c000 C:\Windows\system32\apphelp.dll
0x77bd0000 - 0x77bd9000 C:\Windows\system32\LPK.DLL
0x767b0000 - 0x7682d000 C:\Windows\system32\USP10.dll
0x6d340000 - 0x6d348000 C:\Program Files\Java\jdk1.6.0_13\jre\bin\hpi.dll
0x76240000 - 0x76247000 C:\Windows\system32\PSAPI.DLL
0x6d860000 - 0x6d86c000 C:\Program Files\Java\jdk1.6.0_13\jre\bin\verify.dll
0x6d3e0000 - 0x6d3ff000 C:\Program Files\Java\jdk1.6.0_13\jre\bin\java.dll
0x6d8a0000 - 0x6d8af000 C:\Program Files\Java\jdk1.6.0_13\jre\bin\zip.dll
0x6d6c0000 - 0x6d6d3000 C:\Program Files\Java\jdk1.6.0_13\jre\bin\net.dll
0x765c0000 - 0x765ed000 C:\Windows\system32\WS2_32.dll
0x77be0000 - 0x77be6000 C:\Windows\system32\NSI.dll
0x75900000 - 0x7593b000 C:\Windows\system32\mswsock.dll
0x75960000 - 0x75965000 C:\Windows\System32\wship6.dll
0x755c0000 - 0x755c5000 C:\Windows\System32\wshtcpip.dll
0x74a70000 - 0x74a7f000 C:\Windows\system32\NLAapi.dll
0x75b40000 - 0x75b59000 C:\Windows\system32\IPHLPAPI.DLL
0x75b00000 - 0x75b35000 C:\Windows\system32\dhcpcsvc.DLL
0x75d80000 - 0x75dac000 C:\Windows\system32\DNSAPI.dll
0x76170000 - 0x76184000 C:\Windows\system32\Secur32.dll
0x75af0000 - 0x75af7000 C:\Windows\system32\WINNSI.DLL
0x75ac0000 - 0x75ae1000 C:\Windows\system32\dhcpcsvc6.DLL
0x72eb0000 - 0x72ebf000 C:\Windows\system32\napinsp.dll
0x72bf0000 - 0x72c02000 C:\Windows\system32\pnrpnsp.dll
0x72ea0000 - 0x72ea8000 C:\Windows\System32\winrnr.dll
0x775b0000 - 0x775fa000 C:\Windows\system32\WLDAP32.dll
0x72ec0000 - 0x72ec6000 C:\Windows\system32\rasadhlp.dll
0x10000000 - 0x1016e000 D:\MATLAB\R2009a\bin\win32\nativemcl.dll
0x7b350000 - 0x7b3aa000 D:\MATLAB\R2009a\bin\win32\libmx.dll
0x7b280000 - 0x7b34a000 D:\MATLAB\R2009a\bin\win32\libut.dll
0x77ba0000 - 0x77bc9000 C:\Windows\system32\imagehlp.dll
0x7bba0000 - 0x7bbbf000 D:\MATLAB\R2009a\bin\win32\LIBEXPAT.dll
0x73240000 - 0x732db000 C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.1434_none_d08b6002442c891f\MSVCR80.dll
0x7b6b0000 - 0x7b791000 D:\MATLAB\R2009a\bin\win32\icuuc38.dll
0x7ad90000 - 0x7ad94000 D:\MATLAB\R2009a\bin\win32\icudt38.dll
0x7ada0000 - 0x7adac000 D:\MATLAB\R2009a\bin\win32\icuio38.dll
0x7afe0000 - 0x7b0c4000 D:\MATLAB\R2009a\bin\win32\icuin38.dll
0x72f00000 - 0x72f87000 C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.1434_none_d08b6002442c891f\MSVCP80.dll
0x782e0000 - 0x78317000 D:\MATLAB\R2009a\bin\win32\libmwfl.dll
0x04e30000 - 0x04e3e000 D:\MATLAB\R2009a\bin\win32\boost_date_time-vc80-mt-1_36.dll
0x04e50000 - 0x04e60000 D:\MATLAB\R2009a\bin\win32\boost_signals-vc80-mt-1_36.dll
0x04e70000 - 0x04e77000 D:\MATLAB\R2009a\bin\win32\boost_system-vc80-mt-1_36.dll
0x04e90000 - 0x04e9c000 D:\MATLAB\R2009a\bin\win32\boost_thread-vc80-mt-1_36.dll
0x787a0000 - 0x787b3000 D:\MATLAB\R2009a\bin\win32\zlib1.dll
0x04f50000 - 0x04fef000 D:\MATLAB\R2009a\bin\win32\mclmcr.dll
0x79a80000 - 0x79ad3000 D:\MATLAB\R2009a\bin\win32\mcr.dll
0x7adb0000 - 0x7adeb000 D:\MATLAB\R2009a\bin\win32\iqm.dll
0x7b3b0000 - 0x7b59a000 D:\MATLAB\R2009a\bin\win32\libmwservices.dll
0x7b5a0000 - 0x7b6af000 D:\MATLAB\R2009a\bin\win32\libmwmathutil.dll
0x79510000 - 0x79543000 D:\MATLAB\R2009a\bin\win32\mpath.dll
0x6fef0000 - 0x6ff1f000 D:\MATLAB\R2009a\bin\win32\mlutil.dll
0x05010000 - 0x05049000 D:\MATLAB\R2009a\bin\win32\tbb.dll
0x74fe0000 - 0x7517e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\COMCTL32.dll
0x763b0000 - 0x76408000 C:\Windows\system32\SHLWAPI.dll
0x77890000 - 0x77903000 C:\Windows\system32\comdlg32.dll
0x76830000 - 0x7733f000 C:\Windows\system32\SHELL32.dll
0x75fd0000 - 0x76045000 C:\Windows\system32\NETAPI32.dll
0x7a080000 - 0x7a558000 D:\MATLAB\R2009a\bin\win32\m_interpreter.dll
0x7ae00000 - 0x7ae0c000 D:\MATLAB\R2009a\bin\win32\libmex.dll
0x79960000 - 0x799b7000 D:\MATLAB\R2009a\bin\win32\m_dispatcher.dll
0x78670000 - 0x7868c000 D:\MATLAB\R2009a\bin\win32\datasvcs.dll
0x78df0000 - 0x78fb2000 D:\MATLAB\R2009a\bin\win32\xerces-c_2_7.dll
0x050a0000 - 0x0513d000 D:\MATLAB\R2009a\bin\win32\boost_regex-vc80-mt-1_36.dll
0x79870000 - 0x798c7000 D:\MATLAB\R2009a\bin\win32\profiler.dll
0x7ae60000 - 0x7ae7e000 D:\MATLAB\R2009a\bin\win32\libmwmathrng.dll
0x78720000 - 0x78732000 D:\MATLAB\R2009a\bin\win32\m_pcodeio.dll
0x794d0000 - 0x79507000 D:\MATLAB\R2009a\bin\win32\m_ir.dll
0x79b60000 - 0x7a077000 D:\MATLAB\R2009a\bin\win32\m_parser.dll
0x7adf0000 - 0x7adfe000 D:\MATLAB\R2009a\bin\win32\ir_xfmr.dll
0x78320000 - 0x78468000 D:\MATLAB\R2009a\bin\win32\mcos.dll
0x7aea0000 - 0x7aeaa000 D:\MATLAB\R2009a\bin\win32\mtok.dll
0x78700000 - 0x78716000 D:\MATLAB\R2009a\bin\win32\m_pcodegen.dll
0x78650000 - 0x7866b000 D:\MATLAB\R2009a\bin\win32\bridge.dll
0x7aae0000 - 0x7ab64000 D:\MATLAB\R2009a\bin\win32\udd.dll
0x7b7a0000 - 0x7b89b000 D:\MATLAB\R2009a\bin\win32\libmwgui.dll
0x78800000 - 0x789f1000 D:\MATLAB\R2009a\bin\win32\hg.dll
0x78690000 - 0x786b2000 D:\MATLAB\R2009a\bin\win32\libmat.dll
0x7b0d0000 - 0x7b275000 D:\MATLAB\R2009a\bin\win32\libhdf5.dll
0x793e0000 - 0x7941e000 D:\MATLAB\R2009a\bin\win32\jmi.dll
0x790f0000 - 0x7911c000 D:\MATLAB\R2009a\bin\win32\libmwhardcopy.dll
0x79490000 - 0x794c7000 D:\MATLAB\R2009a\bin\win32\libuij.dll
0x78d50000 - 0x78de5000 D:\MATLAB\R2009a\bin\win32\libmwmathlinalg.dll
0x78a60000 - 0x78d42000 D:\MATLAB\R2009a\bin\win32\libmwmathelem.dll
0x78a00000 - 0x78a52000 D:\MATLAB\R2009a\bin\win32\libmwmathcore.dll
0x798d0000 - 0x79917000 D:\MATLAB\R2009a\bin\win32\libmwcholmod.dll
0x7ae10000 - 0x7ae1a000 D:\MATLAB\R2009a\bin\win32\libmwamd.dll
0x7ae40000 - 0x7ae49000 D:\MATLAB\R2009a\bin\win32\libmwcolamd.dll
0x7ae30000 - 0x7ae3d000 D:\MATLAB\R2009a\bin\win32\libmwblas.dll
0x7ae20000 - 0x7ae2c000 D:\MATLAB\R2009a\bin\win32\libmwbinder.dll
0x786c0000 - 0x786f8000 D:\MATLAB\R2009a\bin\win32\libmwlapack.dll
0x6feb0000 - 0x6fee5000 D:\MATLAB\R2009a\bin\win32\libmwrookfastbp.dll
0x79120000 - 0x7915c000 D:\MATLAB\R2009a\bin\win32\libmwma57.dll
0x7aef0000 - 0x7afd9000 D:\MATLAB\R2009a\bin\win32\libifcoremd.dll
0x79550000 - 0x79813000 D:\MATLAB\R2009a\bin\win32\libmmd.dll
0x7ae50000 - 0x7ae5c000 D:\MATLAB\R2009a\bin\win32\libmwcsparse.dll
0x79a20000 - 0x79a73000 D:\MATLAB\R2009a\bin\win32\libmwumfpack.dll
0x05340000 - 0x053e7000 D:\MATLAB\R2009a\bin\win32\hgdatatypes.dll
0x7ab70000 - 0x7ad89000 D:\MATLAB\R2009a\bin\win32\uiw.dll
0x7aee0000 - 0x7aee9000 D:\MATLAB\R2009a\bin\win32\uinone.dll
0x73020000 - 0x7312f000 C:\Windows\WinSxS\x86_microsoft.vc80.mfc_1fc8b3b9a1e18e3b_8.0.50727.762_none_0c178a139ee2a7ed\MFC80.DLL
0x72d10000 - 0x72d52000 C:\Windows\system32\WINSPOOL.DRV
0x79ae0000 - 0x79b55000 D:\MATLAB\R2009a\bin\win32\udd_mi.dll
0x78740000 - 0x78753000 D:\MATLAB\R2009a\bin\win32\mwoles05.DLL
0x79820000 - 0x79864000 D:\MATLAB\R2009a\bin\win32\comcli.dll
0x72620000 - 0x7263b000 C:\Windows\WinSxS\x86_microsoft.vc80.atl_1fc8b3b9a1e18e3b_8.0.50727.762_none_11ecb0ab9b2caf3c\ATL80.DLL
0x7ae90000 - 0x7ae9b000 D:\MATLAB\R2009a\bin\win32\mlautoregister.dll
0x05460000 - 0x0547a000 D:\MATLAB\R2009a\bin\win32\ctfarchiver.dll
0x05490000 - 0x054bc000 D:\MATLAB\R2009a\bin\win32\dservices.dll
0x054d0000 - 0x054dd000 D:\MATLAB\R2009a\bin\win32\ctfrt.dll
0x054f0000 - 0x05551000 D:\MATLAB\R2009a\bin\win32\ctfrtcrypto.dll
0x748f0000 - 0x748fe000 C:\Windows\WinSxS\x86_microsoft.vc80.mfcloc_1fc8b3b9a1e18e3b_8.0.50727.762_none_43efccf17831d131\MFC80ENU.DLL
0x6d0b0000 - 0x6d1fa000 C:\Program Files\Java\jdk1.6.0_13\jre\bin\awt.dll
0x72d00000 - 0x72d0c000 C:\Windows\system32\DWMAPI.DLL

VM Arguments:
jvm_args: -Xss512k -XX:PermSize=32m -Xms64m -XX:NewRatio=3 -XX:MaxPermSize=64m -Xmx128m -XX:MaxDirectMemorySize=1200000000 -Dsun.java2d.noddraw=true -Dsun.awt.nopixfmt=true -Xshareff -Xrs -Djava.library.path=D:\MATLAB\R2009a\bin\win32 vfprintf abort
java_command: <unknown>
Launcher Type: generic

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_13
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Java\jdk1.6.0_13;C:\Program Files\Java\jdk1.6.0_13\bin;D:\java_training\ant\bin;C:\Program Files\Common Files\DivX Shared\;D:\MATLAB\R2009a\bin;D:\MATLAB\R2009a\bin\win32
USERNAME=shakti
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 104 Stepping 2, AuthenticAMD



--------------- S Y S T E M ---------------

OS: Windows Vista Build 6001 Service Pack 1

CPU:total 2 (2 cores per cpu, 1 threads per core) family 15 model 104 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext

Memory: 4k page, physical 1832316k(635256k free), swap 3922176k(2335768k free)

vm_info: Java HotSpot(TM) Client VM (11.3-b02) for windows-x86 JRE (1.6.0_13-b03), built on Mar 9 2009 01:15:24 by "java_re" with MS VC++ 7.1

time: Fri Jun 12 04:11:13 2009
elapsed time: 0 seconds

 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!