Found a below error in javaaccesbridge screen capturing.
This error occur randomly.
Please let me know cause of this error? Please suggest me how to fix it?
--------------- T H R E A D ---------------
Current thread (0x05d31800): JavaThread "Thread-6" daemon
[_thread_in_Java, id=16140, stack(0x04d60000,0x04db0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x08ed9e50
Registers: EAX=0x08ed9e50, EBX=0x028502ff, ECX=0x04daf708,
EDX=0x00000001 ESP=0x04daf624, EBP=0x04daf684, ESI=0x04daf710,
EDI=0x34780498 EIP=0x0218b335, EFLAGS=0x00010206
Top of Stack: (sp=0x04daf624) 0x04daf624: 05d31800 0218b877
00000002 05d31800 0x04daf634: 05c59ec8 05d31800 04daf7d4 05d31800
0x04daf644: 05c87b18 34780498 2ae9b7f8 04dafbc0 0x04daf654:
02859fa5 04dafbf4 04daf7d4 05d31800 0x04daf664: 02404148 023b3ed8
023b3f04 023b42cc 0x04daf674: 04dafc98 04daf7dc 0000000a 023b3ef8
0x04daf684: 04daf6c8 0221d551 04daf7d4 01daf6f0 0x04daf694:
04daf708 02881dc0 05c59ec8 05d31800
Instructions: (pc=0x0218b335) 0x0218b315: 85 c0 7e 29 56 8d 9b 00
00 00 00 8b 41 34 80 3c 0x0218b325: 02 00 74 10 8b 41 30 8d 34 90
8b 06 85 c0 74 02 0x0218b335: 8b 00 89 06 8b 41 38 42 3b d0 7c df
5e 8b 41 30 0x0218b345: c3 cc cc cc cc cc cc cc cc cc cc 55 8b ec
8b 45
Register to memory mapping:
EAX=0x08ed9e50 is an unknown value EBX=StubRoutines::call_stub
[0x028502ff, 0x028503b1[ (178 bytes)ECX=0x04daf708 is pointing into
the stack for thread: 0x05d31800 EDX=0x00000001 is an unknown value
ESP=0x04daf624 is pointing into the stack for thread: 0x05d31800
EBP=0x04daf684 is pointing into the stack for thread: 0x05d31800
ESI=0x04daf710 is pointing into the stack for thread: 0x05d31800
EDI=0x34780498 is an oop {method}
klass: {other class}
Stack: [0x04d60000,0x04db0000], sp=0x04daf624, free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
C=native code) V [jvm.dll+0xfb335] V [jvm.dll+0x18d551] V
[jvm.dll+0xfb90d] V [jvm.dll+0x96301] V [jvm.dll+0x97dbc] C
[Automation.JavaBridge-32.dll+0xc21b]
JNIEnv_::CallObjectMethod+0x1b C
[Automation.JavaBridge-32.dll+0x4cea]
AccessBridgeJavaEntryPoints::getAccessibleContextInfo+0x5a C
[Automation.JavaBridge-32.dll+0xd1d9]
JavaAccessBridge::processPackage+0x299 C
[Automation.JavaBridge-32.dll+0xe40f]
JavaAccessBridge::receiveMemoryPackage+0x5f C
[Automation.JavaBridge-32.dll+0xca12] AccessBridgeDialogProc+0xa2 C
[USER32.dll+0x8e71] CallNextHookEx+0xb1 C [USER32.dll+0x1f46c]
EnableMenuItem+0x3ac C [USER32.dll+0x1f2d7] EnableMenuItem+0x217 C
[USER32.dll+0x329f5] DrawTextExA+0xf5 C [USER32.dll+0x8e71]
CallNextHookEx+0xb1 C [USER32.dll+0x90d1] CallNextHookEx+0x311 C
[USER32.dll+0x932c] CallNextHookEx+0x56c C [USER32.dll+0x9529]
CallNextHookEx+0x769 C [ntdll.dll+0x40596]
KiUserCallbackDispatcher+0x36 C
[Automation.JavaBridge-32.dll+0xccdf]
JavaAccessBridge::javaRun+0x1af j
Automation.JavaAccessBridge.run()V+0 j java.lang.Thread.run()V+11 v
~StubRoutines::call_stub V [jvm.dll+0xfb88b] V [jvm.dll+0x18d551]
V [jvm.dll+0xfba31] V [jvm.dll+0xfba8b] V [jvm.dll+0xb5e89] V
[jvm.dll+0x119b74] V [jvm.dll+0x14217c] C [msvcr71.dll+0x9565]
endthreadex+0xa0 C [KERNEL32.DLL+0x17c04] BaseThreadInitThunk+0x24
C [ntdll.dll+0x5ab8f] RtlInitializeExceptionChain+0x8f C
[ntdll.dll+0x5ab5a] RtlInitializeExceptionChain+0x5a
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
=>0x05d31800 JavaThread "Thread-6" daemon [_thread_in_Java, id=16140, stack(0x04d60000,0x04db0000)] 0x05d33400 JavaThread
"EventQueueMonitor-ComponentEvtDispatch" daemon [_thread_blocked,
id=15116, stack(0x02550000,0x025a0000)] 0x00498800 JavaThread
"DestroyJavaVM" [_thread_blocked, id=18240,
stack(0x025e0000,0x02630000)] 0x05bb6800 JavaThread "TimerQueue"
daemon [_thread_blocked, id=14712, stack(0x05e50000,0x05ea0000)]
0x05ba0800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=1228,
stack(0x05dc0000,0x05e10000)] 0x0241cc00 JavaThread "AWT-Windows"
daemon [_thread_in_native, id=1940, stack(0x056c0000,0x05710000)]
0x0241c400 JavaThread "AWT-Shutdown" [_thread_blocked, id=17868,
stack(0x05630000,0x05680000)] 0x0241bc00 JavaThread "Java2D
Disposer" daemon [_thread_blocked, id=15196,
stack(0x055a0000,0x055f0000)] 0x023ab800 JavaThread "Low Memory
Detector" daemon [_thread_blocked, id=11740,
stack(0x04f30000,0x04f80000)] 0x023aa400 JavaThread "C1
CompilerThread0" daemon [_thread_blocked, id=11376,
stack(0x04ea0000,0x04ef0000)] 0x023a9400 JavaThread "Attach
Listener" daemon [_thread_blocked, id=16920,
stack(0x04e10000,0x04e60000)] 0x023a7400 JavaThread "Signal
Dispatcher" daemon [_thread_blocked, id=5076,
stack(0x04ca0000,0x04cf0000)] 0x0239cc00 JavaThread "Finalizer"
daemon [_thread_blocked, id=10284, stack(0x04c10000,0x04c60000)]
0x0239b800 JavaThread "Reference Handler" daemon [_thread_blocked,
id=412, stack(0x04b00000,0x04b50000)]
Other Threads: 0x0235ec00 VMThread [stack: 0x04a70000,0x04ac0000]
[id=19372] 0x023c2400 WatcherThread [stack: 0x04fc0000,0x05010000]
[id=9724]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap def new generation total 14400K, used 7654K [0x24570000,
0x25500000, 0x29ac0000) eden space 12864K, 57% used [0x24570000,
0x24caf7b0, 0x25200000) from space 1536K, 15% used [0x25200000,
0x2523a140, 0x25380000) to space 1536K, 0% used [0x25380000,
0x25380000, 0x25500000) tenured generation total 31788K, used
20658K [0x29ac0000, 0x2b9cb000, 0x34570000) the space 31788K,
64% used [0x29ac0000, 0x2aeecaa0, 0x2aeecc00, 0x2b9cb000)
compacting perm gen total 12288K, used 2578K [0x34570000,
0x35170000, 0x38570000) the space 12288K, 20% used [0x34570000,
0x347f4a48, 0x347f4c00, 0x35170000)
ro space 10240K, 51% used [0x38570000, 0x38aa3000, 0x38aa3000, 0x38f70000)
rw space 12288K, 55% used [0x38f70000, 0x3960e4f8, 0x3960e600, 0x39b70000)
Code Cache [0x02850000, 0x02a18000, 0x04850000) total_blobs=1133
nmethods=918 adapters=150 free_code_cache=31719552
largest_free_block=320
Dynamic libraries: 0x00400000 - 0x00425000 C:\Program Files
(x86)\Java\jre6\bin\java.exe 0x77190000 - 0x772ff000
C:\Windows\SYSTEM32\ntdll.dll 0x766c0000 - 0x76800000
C:\Windows\SYSTEM32\KERNEL32.DLL 0x74f90000 - 0x75067000
C:\Windows\SYSTEM32\KERNELBASE.dll 0x577a0000 - 0x57840000
C:\Windows\system32\apphelp.dll 0x780c0000 - 0x78325000
C:\Windows\AppPatch\AcGenral.DLL 0x75330000 - 0x753f3000
C:\Windows\SYSTEM32\msvcrt.dll 0x76e30000 - 0x76e71000
C:\Windows\SYSTEM32\sechost.dll 0x74980000 - 0x7499e000
C:\Windows\SYSTEM32\SspiCli.dll 0x76e80000 - 0x76ec5000
C:\Windows\SYSTEM32\SHLWAPI.dll 0x6ee30000 - 0x6ef1d000
C:\Windows\SYSTEM32\UxTheme.dll 0x76f60000 - 0x770b3000
C:\Windows\SYSTEM32\USER32.dll 0x75070000 - 0x7517f000
C:\Windows\SYSTEM32\GDI32.dll 0x6ef80000 - 0x6efa3000
C:\Windows\SYSTEM32\WINMM.dll 0x669e0000 - 0x669f3000
C:\Windows\SYSTEM32\samcli.dll 0x768a0000 - 0x769c9000
C:\Windows\SYSTEM32\ole32.dll 0x75180000 - 0x75217000
C:\Windows\SYSTEM32\OLEAUT32.dll 0x62830000 - 0x62847000
C:\Windows\SYSTEM32\MSACM32.dll 0x74790000 - 0x74798000
C:\Windows\SYSTEM32\VERSION.dll 0x75400000 - 0x766bb000
C:\Windows\SYSTEM32\SHELL32.dll 0x6e710000 - 0x6e72b000
C:\Windows\SYSTEM32\USERENV.dll 0x6ee10000 - 0x6ee2a000
C:\Windows\SYSTEM32\dwmapi.dll 0x6e5c0000 - 0x6e70b000
C:\Windows\SYSTEM32\urlmon.dll 0x75220000 - 0x7529c000
C:\Windows\SYSTEM32\ADVAPI32.dll 0x6f200000 - 0x6f265000
C:\Windows\SYSTEM32\WINSPOOL.DRV 0x6b7b0000 - 0x6b7c6000
C:\Windows\SYSTEM32\MPR.dll 0x769d0000 - 0x76a8a000
C:\Windows\SYSTEM32\RPCRT4.dll 0x74970000 - 0x7497a000
C:\Windows\SYSTEM32\CRYPTBASE.dll 0x76a90000 - 0x76c0d000
C:\Windows\SYSTEM32\combase.dll 0x6ef50000 - 0x6ef73000
C:\Windows\SYSTEM32\WINMMBASE.dll 0x70440000 - 0x7044f000
C:\Windows\SYSTEM32\profapi.dll 0x6e2c0000 - 0x6e4f4000
C:\Windows\SYSTEM32\iertutil.dll 0x6e740000 - 0x6e99c000
C:\Windows\SYSTEM32\WININET.dll 0x74910000 - 0x74964000
C:\Windows\SYSTEM32\bcryptPrimitives.dll 0x752f0000 - 0x7532c000
C:\Windows\SYSTEM32\cfgmgr32.dll 0x6ef20000 - 0x6ef41000
C:\Windows\SYSTEM32\DEVOBJ.dll 0x70c90000 - 0x70d1b000
C:\Windows\SYSTEM32\SHCORE.DLL 0x752a0000 - 0x752c7000
C:\Windows\system32\IMM32.DLL 0x74c50000 - 0x74d62000
C:\Windows\SYSTEM32\MSCTF.dll 0x74830000 - 0x748aa000
C:\Windows\SYSTEM32\SYSFER.DLL 0x6d340000 - 0x6d5ce000
C:\ProgramData\Symantec\Symantec Endpoint
Protection\14.0.1904.0000.105\Data\Definitions\IPSDefs\20170316.021\IPSEng32.dll 0x004d0000 - 0x00526000 C:\Program Files
(x86)\Java\jre6\bin\msvcr71.dll 0x02090000 - 0x02340000 C:\Program
Files (x86)\Java\jre6\bin\client\jvm.dll 0x00530000 - 0x00553000
C:\Program Files (x86)\Java\jre6\bin\splashscreen.dll 0x024e0000 -
0x024ec000 C:\Program Files (x86)\Java\jre6\bin\verify.dll
0x02740000 - 0x0275f000 C:\Program Files
(x86)\Java\jre6\bin\java.dll 0x02840000 - 0x0284f000 C:\Program
Files (x86)\Java\jre6\bin\zip.dll 0x747a0000 - 0x747a9000
C:\Windows\SYSTEM32\kernel.appcore.dll 0x05010000 - 0x0515c000
C:\Program Files (x86)\Java\jre6\bin\awt.dll 0x66b40000 -
0x66d46000
C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.17415_none_a9ed7f470139b3c1\COMCTL32.dll
0x05b20000 - 0x05b76000 C:\Program Files
(x86)\Java\jre6\bin\fontmanager.dll 0x05f30000 - 0x05f43000
C:\Program Files (x86)\Java\jre6\bin\net.dll 0x74d80000 -
0x74dcf000 C:\Windows\SYSTEM32\WS2_32.dll 0x74de0000 - 0x74de7000
C:\Windows\SYSTEM32\NSI.dll 0x6f380000 - 0x6f3cb000
C:\Windows\system32\mswsock.dll 0x04d10000 - 0x04d19000 C:\Program
Files (x86)\Java\jre6\bin\nio.dll 0x70300000 - 0x70319000
C:\Windows\SYSTEM32\CRYPTSP.dll 0x702d0000 - 0x70300000
C:\Windows\system32\rsaenh.dll 0x70c70000 - 0x70c8e000
C:\Windows\SYSTEM32\bcrypt.dll 0x76ed0000 - 0x76f5d000
C:\Windows\SYSTEM32\clbcatq.dll 0x02450000 - 0x02475000 C:\Program
Files (x86)\Java\jre6\bin\jpeg.dll 0x02480000 - 0x0249a000
C:\Program Files (x86)\Java\jre6\bin\instrument.dll 0x024b0000 -
0x024b9000 C:\Program Files (x86)\Java\jre6\bin\management.dll
0x0f330000 - 0x0f3a2000 C:\Program Files (x86)\Automation Anywhere
Enterprise 10.3\Client\Java\Automation.JavaBridge-32.dll 0x02500000
0x02506000 C:\Program Files (x86)\Java\jre6\bin\jawt.dll 0x05740000 - 0x05763000 C:\Program Files
(x86)\Java\jre6\bin\dcpr.dll 0x74dd0000 - 0x74dd6000
C:\Windows\system32\PSAPI.DLL
VM Arguments: java_command: D:\E
Drive\SAS\SwingSet2\SwingSet2\SwingSet2.jar Launcher Type:
SUN_STANDARD
Environment Variables: PATH=C:\Program Files (x86)\Intel\iCLS
Client\;C:\Program Files\Intel\iCLS
Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\Intel\WiFi\bin\;C:\Program Files\Common
Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Intel(R)
Management Engine Components\DAL;C:\Program Files\Intel\Intel(R)
Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program
Files (x86)\Skype\Phone\;USERPROFILE.dnx\bin;C:\Program
Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL
Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\130\Tools\Binn\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program
Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program
Files\Microsoft SQL Server\Client
SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\120\Tools\Binn\ManagementStudio\;C:\Program Files
(x86)\Microsoft SQL Server\120\DTS\Binn\ USERNAME=Mahen
OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61
Stepping 4, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 8 , 64 bit Build 9200
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 61
stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1,
sse4.2, popcnt, ht
Memory: 4k page, physical 16478568k(8574852k free), swap
18968936k(8387300k free)
vm_info: Java HotSpot(TM) Client VM (20.45-b01) for windows-x86 JRE
(1.6.0_45-b06), built on Mar 26 2013 13:40:03 by "java_re" with MS
VC++ 7.1 (VS2003)
time: Fri Mar 17 19:18:57 2017 elapsed time: 261 seconds
There appears to be a bug in AccessBridgeDialogProc that affects 64-bit versions that persists through Java 8 but seems to be fixed in Java 9.
Related
I'm trying to convert doc(docx) files into htmls with newest jacob, jdk1.6, my laptop is windows 7 X64 professional with office 2007 installed.
Here's my Java codes:
public static void main(String[] args) {
// TODO Auto-generated method stub
// #Autowired
String docfile = "d:\\CSMIS阿里云资源.docx";
String htmlfile = "d:\\a.html";
ActiveXComponent app = new ActiveXComponent("Word.Application");
System.out.println("*******converting...*****");
try {
app.setProperty("Visible", new Variant(false));
Dispatch docs = app.getProperty("Documents").toDispatch();
Dispatch doc = Dispatch.invoke(docs, "Open", Dispatch.Method,
new Object[]{docfile,new Variant(false),new Variant(true)},
new int[1]).toDispatch();
Dispatch.invoke(doc, "SaveAs", Dispatch.Method,
new Object[]{htmlfile,new Variant(8)}, new int[1]);
Dispatch.call(doc, "Close", new Variant(false));
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
} finally {
app.invoke("Quit", new Variant[]{});
}
System.out.println("*********convert ended****");
}
errors is below:
An unexpected error has been detected by Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77c5df85, pid=7616, tid=6200
Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode windows-x86)
Problematic frame:
C [ntdll.dll+0x2df85]
If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
--------------- T H R E A D ---------------
Current thread (0x0270f000): JavaThread "main" [_thread_in_native, id=6200, stack(0x02460000,0x024b0000)]
siginfo: ExceptionCode=0xc0000005, writing address 0x0cc30000
Registers:
EAX=0x00000000, EBX=0x024af1b4, ECX=0x00000001, EDX=0x00000000
ESP=0x024af038, EBP=0x024af06c, ESI=0x765cb20c, EDI=0x0cc30000
EIP=0x77c5df85, EFLAGS=0x00010202
Top of Stack: (sp=0x024af038)
0x024af038: 024af0b4 7577521a 0cc30000 00000000
0x024af048: 00000004 00000001 765c6840 00683c14
0x024af058: 00000000 765c6892 00000000 00000007
0x024af068: 476cf088 024af484 757f00d4 024af1b0
0x024af078: 6825a95f 00000000 024af7a8 00000000
0x024af088: 00000000 76927190 0065d870 76836e8c
0x024af098: 00000006 024af0b0 00000000 769271a8
0x024af0a8: 76927190 0278fdb9 00000000 024af088
Instructions: (pc=0x77c5df85)
0x77c5df75: c8 c1 e0 10 03 c1 8b ca 83 e2 03 c1 e9 02 74 06
0x77c5df85: f3 ab 85 d2 74 0a 88 07 83 c7 01 83 ea 01 75 f6
Stack: [0x02460000,0x024b0000], sp=0x024af038, free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ntdll.dll+0x2df85]
C [RPCRT4.dll+0xb00d4]
C [OLEAUT32.dll+0x342c7]
C [OLEAUT32.dll+0x34294]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.jacob.com.Dispatch.invokev(Ljava/lang/Object;Ljava/lang/String;III[Lcom/jacob/com/Variant;[I)Lcom/jacob/com/Variant;+0
j com.jacob.activeX.ActiveXComponent.getProperty(Ljava/lang/String;)Lcom/jacob/com/Variant;+39
j com.casco.test.Test.main([Ljava/lang/String;)V+41
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0c9f1c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5744, stack(0x0d1f0000,0x0d240000)]
0x0c9ef800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=8212, stack(0x0d160000,0x0d1b0000)]
0x0c9e2400 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=6492, stack(0x0d0d0000,0x0d120000)]
0x0c9e2000 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=7140, stack(0x0cfd0000,0x0d020000)]
0x0260fc00 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=8880, stack(0x0cf40000,0x0cf90000)]
0x02602800 JavaThread "Attach Listener" daemon [_thread_blocked, id=8532, stack(0x0c990000,0x0c9e0000)]
0x025f7c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=8084, stack(0x0c900000,0x0c950000)]
0x025bb400 JavaThread "Finalizer" daemon [_thread_blocked, id=3372, stack(0x0c870000,0x0c8c0000)]
0x025ba000 JavaThread "Reference Handler" daemon [_thread_blocked, id=7424, stack(0x0c7e0000,0x0c830000)]
=>0x0270f000 JavaThread "main" [_thread_in_native, id=6200, stack(0x02460000,0x024b0000)]
Other Threads:
0x025b6c00 VMThread [stack: 0x0c750000,0x0c7a0000] [id=4720]
0x0c9f2c00 WatcherThread [stack: 0x0d280000,0x0d2d0000] [id=9096]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 351K [0x04710000, 0x04810000, 0x04bf0000)
eden space 896K, 32% used [0x04710000, 0x04757dd0, 0x047f0000)
from space 64K, 100% used [0x047f0000, 0x04800000, 0x04800000)
to space 64K, 0% used [0x04800000, 0x04800000, 0x04810000)
tenured generation total 4096K, used 652K [0x04bf0000, 0x04ff0000, 0x08710000)
the space 4096K, 15% used [0x04bf0000, 0x04c931a0, 0x04c93200, 0x04ff0000)
compacting perm gen total 12288K, used 3551K [0x08710000, 0x09310000, 0x0c710000)
the space 12288K, 28% used [0x08710000, 0x08a87d20, 0x08a87e00, 0x09310000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00424000 D:\Java\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin\javaw.exe
0x77c30000 - 0x77db0000 C:\windows\SysWOW64\ntdll.dll
0x76c30000 - 0x76d40000 C:\windows\syswow64\kernel32.dll
0x77150000 - 0x77197000 C:\windows\syswow64\KERNELBASE.dll
0x770b0000 - 0x77150000 C:\windows\syswow64\ADVAPI32.dll
0x76f00000 - 0x76fac000 C:\windows\syswow64\msvcrt.dll
0x75620000 - 0x75639000 C:\windows\SysWOW64\sechost.dll
0x75740000 - 0x75830000 C:\windows\syswow64\RPCRT4.dll
0x755c0000 - 0x75620000 C:\windows\syswow64\SspiCli.dll
0x755b0000 - 0x755bc000 C:\windows\syswow64\CRYPTBASE.dll
0x76650000 - 0x76750000 C:\windows\syswow64\USER32.dll
0x772b0000 - 0x77340000 C:\windows\syswow64\GDI32.dll
0x772a0000 - 0x772aa000 C:\windows\syswow64\LPK.dll
0x77010000 - 0x770ad000 C:\windows\syswow64\USP10.dll
0x76b30000 - 0x76b90000 C:\windows\system32\IMM32.DLL
0x75640000 - 0x7570c000 C:\windows\syswow64\MSCTF.dll
0x73f00000 - 0x73f2c000 C:\Windows\SysWOW64\nvinit.dll
0x0f000000 - 0x0f006000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\detoured.dll
0x6bd20000 - 0x6bd4b000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvd3d9wrap.dll
0x76d40000 - 0x76edd000 C:\windows\syswow64\SETUPAPI.dll
0x77800000 - 0x77827000 C:\windows\syswow64\CFGMGR32.dll
0x765c0000 - 0x7664f000 C:\windows\syswow64\OLEAUT32.dll
0x767e0000 - 0x7693c000 C:\windows\syswow64\ole32.dll
0x76ff0000 - 0x77002000 C:\windows\syswow64\DEVOBJ.dll
0x6db80000 - 0x6db9f000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvdxgiwrap.dll
0x73ec0000 - 0x73eff000 C:\PROGRA~2\Citrix\ICACLI~1\RSHook.dll
0x73e70000 - 0x73eb1000 C:\Program Files (x86)\Citrix\ICA Client\ShellHook.dll
0x773b0000 - 0x77407000 C:\windows\syswow64\SHLWAPI.dll
0x75970000 - 0x765bb000 C:\windows\syswow64\SHELL32.dll
0x68000000 - 0x68038000 C:\windows\system32\QIPCAP.DLL
0x7c340000 - 0x7c396000 D:\Java\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\msvcr71.dll
0x6d8b0000 - 0x6db06000 D:\Java\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
0x714f0000 - 0x71522000 C:\windows\system32\WINMM.dll
0x71bb0000 - 0x71bfc000 C:\windows\system32\apphelp.dll
0x6d340000 - 0x6d348000 D:\Java\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\hpi.dll
0x77560000 - 0x77565000 C:\windows\syswow64\PSAPI.DLL
0x6d430000 - 0x6d459000 D:\Java\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\jdwp.dll
0x6d750000 - 0x6d756000 D:\Java\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\npt.dll
0x6d860000 - 0x6d86c000 D:\Java\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\verify.dll
0x6d3e0000 - 0x6d3ff000 D:\Java\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\java.dll
0x6d8a0000 - 0x6d8af000 D:\Java\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\zip.dll
0x6d2b0000 - 0x6d2b7000 D:\Java\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\dt_socket.dll
0x77570000 - 0x775a5000 C:\windows\syswow64\WS2_32.dll
0x76ef0000 - 0x76ef6000 C:\windows\syswow64\NSI.dll
0x70350000 - 0x70360000 C:\windows\system32\NLAapi.dll
0x6aa80000 - 0x6aa90000 C:\windows\system32\napinsp.dll
0x6aa60000 - 0x6aa72000 C:\windows\system32\pnrpnsp.dll
0x73010000 - 0x7304c000 C:\windows\System32\mswsock.dll
0x71130000 - 0x71174000 C:\windows\system32\DNSAPI.dll
0x6aa50000 - 0x6aa58000 C:\windows\System32\winrnr.dll
0x6e8a0000 - 0x6e8ad000 C:\windows\system32\wshbth.dll
0x73af0000 - 0x73b0c000 C:\windows\system32\IPHLPAPI.DLL
0x73ae0000 - 0x73ae7000 C:\windows\system32\WINNSI.DLL
0x707c0000 - 0x707f8000 C:\windows\System32\fwpuclnt.dll
0x71120000 - 0x71126000 C:\windows\system32\rasadhlp.dll
0x727b0000 - 0x727b5000 C:\windows\System32\wshtcpip.dll
0x10000000 - 0x10018000 D:\Java\jdk1.6.0_07\bin\jacob.dll
0x76ba0000 - 0x76c23000 C:\windows\syswow64\CLBCatQ.DLL
0x73cf0000 - 0x73d07000 C:\windows\system32\CRYPTSP.dll
0x73cb0000 - 0x73ceb000 C:\windows\system32\rsaenh.dll
0x73d10000 - 0x73d1e000 C:\windows\system32\RpcRtRemote.dll
VM Arguments:
jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:8239 -Dfile.encoding=UTF-8 -Xbootclasspath/p:D:\Java\Myeclipse\Common\plugins\com.genuitec.eclipse.j2eedt.core_8.5.0.me201003231033\data\libraryset\EE_5\javaee.jar;D:\Java\Myeclipse\Common\plugins\com.genuitec.eclipse.j2eedt.core_8.5.0.me201003231033\data\libraryset\EE_5\jsf-impl.jar;D:\Java\Myeclipse\Common\plugins\com.genuitec.eclipse.j2eedt.core_8.5.0.me201003231033\data\libraryset\EE_5\jsf-api.jar;D:\Java\Myeclipse\Common\plugins\com.genuitec.eclipse.j2eedt.core_8.5.0.me201003231033\data\libraryset\EE_5\jstl-1.2.jar
java_command: com.casco.test.Test
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=D:\Java\jdk1.6.0_07
PATH=D:\Java\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin;D:/Java/Myeclipse/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client;D:/Java/Myeclipse/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin;D:\csoft\app\60874\product\11.2.0\dbhome_1\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Lenovo\Fingerprint Manager Pro\;C:\Program Files\Condusiv Technologies\ExpressCache\;C:\Program Files (x86)\Common Files\Lenovo;C:\SWTOOLS\ReadyApps;D:\csoft\TortoiseSVN\bin;D:\Java\jdk1.6.0_07\bin;c:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\
USERNAME=60874
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows NT 6.1 Build 7601 Service Pack 1
CPU:total 4 (8 cores per cpu, 2 threads per core) family 6 model 5 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, ht
Memory: 4k page, physical 4194303k(2356048k free), swap 4194303k(4194303k 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: Tue Jun 09 10:31:41 2015
elapsed time: 1 seconds
If you want to convert doc/docx files to HTML, you could try using the following:
public static void wordToHtml(String docfile, String htmlfile)
{
// word
ActiveXComponent app = new ActiveXComponent("Word.Application");
try
{ //word
app.setProperty("Visible", new Variant(false));
Dispatch docs = app.getProperty("Documents").toDispatch();
//word
Dispatch doc = Dispatch.invoke(
docs,
"Open",
Dispatch.Method,
new Object[] { docfile, new Variant(false),
new Variant(true) }, new int[1]).toDispatch();
//html
Dispatch.invoke(doc, "SaveAs", Dispatch.Method, new Object[] {
htmlfile, new Variant(8) }, new int[1]);
Variant f = new Variant(false);
Dispatch.call(doc, "Close", f);
}
catch (Exception e)
{
e.printStackTrace();
}
finally
{
app.invoke("Quit", new Variant[] {});
}
}
Have been using it for some time and never had any problem.
Source: http://html.programdevelop.com/628031/
I am working with the last version of JeasyOpc on a server OPC RSLINX passing information of each tag to a database. Everything works fine, but it falls on the day of running, this depends of the workload. I know i need to handle well the memories, i have tried to optimize, but i need the advice of someone more experienced in java or Jeasyopc. pd. I changee the jre for the 1.7 . this is the log file. Thanks .
#
# An unexpected error has been detected by Java Runtime Environment:
#enter code here
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x03d337d9, pid=4456, tid=5864
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode windows-x86)
# Problematic frame:
# C [JCustomOpc.dll+0x637d9]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x03573400): JavaThread "Thread-4" [_thread_in_native, id=5864, stack(0x03e50000,0x03ea0000)]
siginfo: ExceptionCode=0xc0000005, writing address 0xc503d337
Registers:
EAX=0x03d55f04, EBX=0xc503d337, ECX=0x03d55f37, EDX=0x03d3a501
ESP=0x03e9f828, EBP=0x03e9f858, ESI=0x0355d9cc, EDI=0x00000007
EIP=0x03d337d9, EFLAGS=0x00010206
Top of Stack: (sp=0x03e9f828)
0x03e9f828: 03cd31cf 03d36eb5 03573400 14eb7f58
0x03e9f838: 00000001 034cb23c 00000001 00000001
0x03e9f848: 0355d9c0 03d55f84 03d55f94 0355d9d8
0x03e9f858: 03e9f878 00b38492 035734f4 03e9f868
0x03e9f868: 14eb7f58 14eb7f58 14eb7f58 00000001
0x03e9f878: 03e9f968 00b45808 00000014 00000000
0x03e9f888: 03e9f8c8 7c91e900 7c9201c0 ffffffff
0x03e9f898: 7c9201bb 7c3416b3 003f0000 00000000
Instructions: (pc=0x03d337d9)
0x03d337c9: e0 e9 cd 21 fa ff b1 37 d3 03 bb 37 d3 03 c5 37
0x03d337d9: d3 03 89 37 d3 03 93 37 d3 03 9d 37 d3 03 a7 37
Stack: [0x03e50000,0x03ea0000], sp=0x03e9f828, free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [JCustomOpc.dll+0x637d9]
J javafish.clients.opc.JOpc.getDownloadGroupNative()Ljavafish/clients/opc/component/OpcGroup;
J javafish.clients.opc.JEasyOpc.run()V
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J javafish.clients.opc.JOpc.getDownloadGroupNative()Ljavafish/clients/opc/component/OpcGroup;
J javafish.clients.opc.JEasyOpc.run()V
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
=>0x03573400 JavaThread "Thread-4" [_thread_in_native, id=5864, stack(0x03e50000,0x03ea0000)]
0x03555400 JavaThread "Thread-3" [_thread_blocked, id=5384, stack(0x03c80000,0x03cd0000)]
0x03552400 JavaThread "Thread-2" [_thread_blocked, id=4144, stack(0x03c30000,0x03c80000)]
0x003f6400 JavaThread "DestroyJavaVM" [_thread_blocked, id=5848, stack(0x008d0000,0x00920000)]
0x034d7400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=528, stack(0x03a30000,0x03a80000)]
0x034cd400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=5408, stack(0x03970000,0x039c0000)]
0x034bd800 JavaThread "AWT-Shutdown" [_thread_blocked, id=2228, stack(0x03920000,0x03970000)]
0x0348d400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=6108, stack(0x038d0000,0x03920000)]
0x02e7f400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5700, stack(0x030d0000,0x03120000)]
0x02e79c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5816, stack(0x03080000,0x030d0000)]
0x02e78c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=1652, stack(0x03030000,0x03080000)]
0x02e77c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5108, stack(0x02fe0000,0x03030000)]
0x02e66800 JavaThread "Finalizer" daemon [_thread_blocked, id=3508, stack(0x02f90000,0x02fe0000)]
0x02e65400 JavaThread "Reference Handler" daemon [_thread_blocked, id=4232, stack(0x02f40000,0x02f90000)]
Other Threads:
0x02e60c00 VMThread [stack: 0x02ef0000,0x02f40000] [id=4324]
0x02e91400 WatcherThread [stack: 0x03120000,0x03170000] [id=4920]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 360K [0x10020000, 0x10120000, 0x14d00000)
eden space 896K, 38% used [0x10020000, 0x10075f18, 0x10100000)
from space 64K, 26% used [0x10110000, 0x10114328, 0x10120000)
to space 64K, 0% used [0x10100000, 0x10100000, 0x10110000)
tenured generation total 4096K, used 2372K [0x14d00000, 0x15100000, 0x4e820000)
the space 4096K, 57% used [0x14d00000, 0x14f511a8, 0x14f51200, 0x15100000)
compacting perm gen total 12288K, used 11366K [0x4e820000, 0x4f420000, 0x52820000)
the space 12288K, 92% used [0x4e820000, 0x4f339b30, 0x4f339c00, 0x4f420000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00423000 C:\Archivos de programa\Java\jre1.6.0_07\bin\javaw.exe
0x7c910000 - 0x7c9c5000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c903000 C:\WINDOWS\system32\kernel32.dll
0x77da0000 - 0x77e4c000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e50000 - 0x77ee2000 C:\WINDOWS\system32\RPCRT4.dll
0x77fc0000 - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll
0x7e390000 - 0x7e421000 C:\WINDOWS\system32\USER32.dll
0x77ef0000 - 0x77f39000 C:\WINDOWS\system32\GDI32.dll
0x76340000 - 0x7635d000 C:\WINDOWS\system32\IMM32.DLL
0x10000000 - 0x10017000 C:\WINDOWS\system32\APSHook.dll
0x7c340000 - 0x7c396000 C:\Archivos de programa\Java\jre1.6.0_07\bin\msvcr71.dll
0x6d7c0000 - 0x6da10000 C:\Archivos de programa\Java\jre1.6.0_07\bin\client\jvm.dll
0x76b00000 - 0x76b2e000 C:\WINDOWS\system32\WINMM.dll
0x6d270000 - 0x6d278000 C:\Archivos de programa\Java\jre1.6.0_07\bin\hpi.dll
0x76bb0000 - 0x76bbb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d770000 - 0x6d77c000 C:\Archivos de programa\Java\jre1.6.0_07\bin\verify.dll
0x6d310000 - 0x6d32f000 C:\Archivos de programa\Java\jre1.6.0_07\bin\java.dll
0x6d7b0000 - 0x6d7bf000 C:\Archivos de programa\Java\jre1.6.0_07\bin\zip.dll
0x6d570000 - 0x6d583000 C:\Archivos de programa\Java\jre1.6.0_07\bin\net.dll
0x71a30000 - 0x71a47000 C:\WINDOWS\system32\WS2_32.dll
0x77be0000 - 0x77c38000 C:\WINDOWS\system32\msvcrt.dll
0x71a20000 - 0x71a28000 C:\WINDOWS\system32\WS2HELP.dll
0x719d0000 - 0x71a10000 C:\WINDOWS\system32\mswsock.dll
0x66740000 - 0x66799000 C:\WINDOWS\system32\hnetcfg.dll
0x71a10000 - 0x71a18000 C:\WINDOWS\System32\wshtcpip.dll
0x76ee0000 - 0x76f07000 C:\WINDOWS\system32\DNSAPI.dll
0x76d20000 - 0x76d39000 C:\WINDOWS\system32\iphlpapi.dll
0x76f70000 - 0x76f78000 C:\WINDOWS\System32\winrnr.dll
0x76f20000 - 0x76f4d000 C:\WINDOWS\system32\WLDAP32.dll
0x76f80000 - 0x76f86000 C:\WINDOWS\system32\rasadhlp.dll
0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll
0x76630000 - 0x766e5000 C:\WINDOWS\system32\USERENV.dll
0x597f0000 - 0x59845000 C:\WINDOWS\system32\netapi32.dll
0x6d750000 - 0x6d758000 C:\Archivos de programa\Java\jre1.6.0_07\bin\sunmscapi.dll
0x77a50000 - 0x77ae6000 C:\WINDOWS\system32\CRYPT32.dll
0x77af0000 - 0x77b02000 C:\WINDOWS\system32\MSASN1.dll
0x6d000000 - 0x6d12e000 C:\Archivos de programa\Java\jre1.6.0_07\bin\awt.dll
0x72f80000 - 0x72fa6000 C:\WINDOWS\system32\WINSPOOL.DRV
0x774b0000 - 0x775ed000 C:\WINDOWS\system32\ole32.dll
0x5b150000 - 0x5b188000 C:\WINDOWS\system32\uxtheme.dll
0x736e0000 - 0x7372b000 C:\WINDOWS\system32\ddraw.dll
0x73b40000 - 0x73b46000 C:\WINDOWS\system32\DCIMAN32.dll
0x6d210000 - 0x6d263000 C:\Archivos de programa\Java\jre1.6.0_07\bin\fontmanager.dll
0x746b0000 - 0x746fc000 C:\WINDOWS\system32\MSCTF.dll
0x75160000 - 0x7518e000 C:\WINDOWS\system32\msctfime.ime
0x7e6a0000 - 0x7eec1000 C:\WINDOWS\system32\shell32.dll
0x77f40000 - 0x77fb6000 C:\WINDOWS\system32\SHLWAPI.dll
0x773a0000 - 0x774a3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
0x58c30000 - 0x58cca000 C:\WINDOWS\system32\comctl32.dll
0x6d590000 - 0x6d599000 C:\Archivos de programa\Java\jre1.6.0_07\bin\nio.dll
0x03cd0000 - 0x03d4c000 C:\Documents and Settings\ingenieria\Escritorio\JEasyOpc\lib\JCustomOpc.dll
0x770f0000 - 0x7717b000 C:\WINDOWS\system32\oleaut32.dll
0x77bd0000 - 0x77bd8000 C:\WINDOWS\system32\version.dll
0x590d0000 - 0x590d7000 C:\WINDOWS\system32\Wship6.dll
0x76f90000 - 0x7700f000 C:\WINDOWS\system32\CLBCATQ.DLL
0x77010000 - 0x770e0000 C:\WINDOWS\system32\COMRes.dll
0x03ea0000 - 0x04176000 C:\WINDOWS\system32\xpsp2res.dll
0x03ac0000 - 0x03acc000 C:\Archivos de programa\Rockwell Software\RSLinx\RSOPCCON.DLL
0x0c390000 - 0x0c7d1000 C:\WINDOWS\system32\msi.dll
0x79000000 - 0x79045000 C:\WINDOWS\system32\MSCOREE.DLL
0x60610000 - 0x60616000 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\fusion.dll
0x78130000 - 0x781cb000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700\MSVCR80.dll
0x79e70000 - 0x7a3d4000 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
0x0c860000 - 0x0c87a000 C:\WINDOWS\system32\opcproxy.dll
VM Arguments:
jvm_args: -Xmx1000m -Dfile.encoding=Cp1252
java_command: Controlador.motor
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:/Archivos de programa/Java/jre1.6.0_07/bin/client;C:/Archivos de programa/Java/jre1.6.0_07/bin;C:/Archivos de programa/Java/jre1.6.0_07/lib/i386;C:\Archivos de programa\Rockwell Software\RSCommon;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\Intel\DMIX;c:\Archivos de programa\Microsoft SQL Server\90\Tools\binn\;C:\Archivos de programa\ActivIdentity\ActivClient\;C:\Archivos de programa\Hewlett-Packard\IAM\bin;C:\Archivos de programa\Siemens\FactoryLink\Common;C:\Archivos de programa\Siemens\Factorylink\Server\BIN;C:\Archivos de programa\Rockwell Automation\Common\Components;C:\Documents and Settings\ingenieria\Escritorio\eclipse;
USERNAME=ingenieria
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 3
CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 7 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2097151k(2018032k free), swap 4194303k(3802640k free)
vm_info: Java HotSpot(TM) Client VM (10.0-b23) for windows-x86 JRE (1.6.0_07-b06), built on Jun 10 2008 01:14:11 by "java_re" with MS VC++ 7.1
time: Thu Apr 17 00:11:58 2014
elapsed time: 22087 seconds
So, I've gone to open eclipse like I normally do (clicking the icon in my taskbar) after about a month of not working, and... nothing. There is a bit of hard drive activity but no processes actually stay alive, if they start at all.
After investigating further I found that the splash screen would come up if I ran the executable as Administrator (I'm running Windows 7 by the way), but before the progress bar appeared it crashed generating a file named hs_err_pid2620.txt containing the following:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000779b0895, pid=2620, tid=996
#
# JRE version: 7.0_03-b05
# Java VM: Java HotSpot(TM) 64-Bit Server VM (22.1-b02 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [ntdll.dll+0x50895]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x0000000002fef000): JavaThread "main" [_thread_in_Java, id=996, stack(0x0000000000030000,0x0000000000130000)]
siginfo: ExceptionCode=0xc0000005, reading address 0xffffffffffffffff
Registers:
RAX=0x000000000012dc68, RBX=0x0000000000000002, RCX=0x000000000012dd38, RDX=0x000000000012dca8
RSP=0x000000000012dc58, RBP=0x000007fee9f266e0, RSI=0x0000000000000020, RDI=0x0000000000000000
R8 =0x0000000000125000, R9 =0x0000000000000003, R10=0x0000000000000000, R11=0x0000000000003b95
R12=0x0000000000000000, R13=0x0000000000000050, R14=0x0000000000000003, R15=0x0000000002fef000
RIP=0x00000000779b0895, EFLAGS=0x0000000000010202
Top of Stack: (sp=0x000000000012dc58)
0x000000000012dc58: 0000000000000202 000000007796b239
0x000000000012dc68: 000007fffffde000 0000000000000051
0x000000000012dc78: 00000000081e5888 000000000012de00
0x000000000012dc88: 0000000000000000 000000000012de70
0x000000000012dc98: 000000006b06e908 000000000000000a
0x000000000012dca8: 0000000000130000 0000000000125000
0x000000000012dcb8: 0000000007a31630 000000000012e4d0
0x000000000012dcc8: 000000000302743a 00000000030273d0
0x000000000012dcd8: 0000000000000000 0000000000000000
0x000000000012dce8: 000000000012e4d0 000000000012e5b0
0x000000000012dcf8: 0000000002ff6038 000000006b1815ab
0x000000000012dd08: 0000000000000000 000000000012e610
0x000000000012dd18: 000056db5fdc4851 000000000012e500
0x000000000012dd28: 0000000002feca70 000000006b181aab
0x000000000012dd38: 000000000012de98 00000000f83af1d8
0x000000000012dd48: 000000000012e500 00000000d825d98b
Instructions: (pc=0x00000000779b0895)
0x00000000779b0875: d0 00 00 00 4c 89 a1 d8 00 00 00 4c 89 a9 e0 00
0x00000000779b0885: 00 00 4c 89 b1 e8 00 00 00 4c 89 b9 f0 00 00 00
0x00000000779b0895: 0f ae 81 00 01 00 00 0f 29 81 a0 01 00 00 0f 29
0x00000000779b08a5: 89 b0 01 00 00 0f 29 91 c0 01 00 00 0f 29 99 d0
Register to memory mapping:
RAX=0x000000000012dc68 is pointing into the stack for thread: 0x0000000002fef000
RBX=0x0000000000000002 is an unknown value
RCX=0x000000000012dd38 is pointing into the stack for thread: 0x0000000002fef000
RDX=0x000000000012dca8 is pointing into the stack for thread: 0x0000000002fef000
RSP=0x000000000012dc58 is pointing into the stack for thread: 0x0000000002fef000
RBP=0x000007fee9f266e0 is an unknown value
RSI=0x0000000000000020 is an unknown value
RDI=0x0000000000000000 is an unknown value
R8 =0x0000000000125000 is pointing into the stack for thread: 0x0000000002fef000
R9 =0x0000000000000003 is an unknown value
R10=0x0000000000000000 is an unknown value
R11=0x0000000000003b95 is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x0000000000000050 is an unknown value
R14=0x0000000000000003 is an unknown value
R15=0x0000000002fef000 is a thread
Stack: [0x0000000000030000,0x0000000000130000], sp=0x000000000012dc58, free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ntdll.dll+0x50895] RtlCaptureContext+0x85
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v blob 0x00000000030274ff
j java.util.jar.Attributes.putValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+13
j java.util.jar.Attributes.read(Ljava/util/jar/Manifest$FastInputStream;[B)V+301
j java.util.jar.Manifest.read(Ljava/io/InputStream;)V+291
j sun.security.util.SignatureFileVerifier.processImpl(Ljava/util/Hashtable;Ljava/util/List;)V+20
j sun.security.util.SignatureFileVerifier.process(Ljava/util/Hashtable;Ljava/util/List;)V+9
j java.util.jar.JarVerifier.processEntry(Lsun/security/util/ManifestEntryVerifier;)V+387
j java.util.jar.JarVerifier.update(I[BIILsun/security/util/ManifestEntryVerifier;)V+39
j java.util.jar.JarFile.initializeVerifier()V+107
j java.util.jar.JarFile.getInputStream(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;+25
j sun.misc.URLClassPath$JarLoader$2.getInputStream()Ljava/io/InputStream;+11
j sun.misc.Resource.cachedInputStream()Ljava/io/InputStream;+9
j sun.misc.Resource.getByteBuffer()Ljava/nio/ByteBuffer;+1
j java.net.URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;+132
j java.net.URLClassLoader.access$100(Ljava/net/URLClassLoader;Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;+3
j java.net.URLClassLoader$1.run()Ljava/lang/Class;+43
j java.net.URLClassLoader$1.run()Ljava/lang/Object;+1
v ~StubRoutines::call_stub
j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j java.net.URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;+13
j java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+70
j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3
j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+101
j org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+126
j org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00000000068c2000 JavaThread "Service Thread" daemon [_thread_blocked, id=2096, stack(0x0000000007440000,0x0000000007540000)]
0x00000000068b8800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=3160, stack(0x0000000007340000,0x0000000007440000)]
0x00000000068b2800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=2100, stack(0x0000000007240000,0x0000000007340000)]
0x00000000068b2000 JavaThread "Attach Listener" daemon [_thread_blocked, id=2136, stack(0x0000000007140000,0x0000000007240000)]
0x00000000068a6800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2144, stack(0x0000000007040000,0x0000000007140000)]
0x00000000067c9000 JavaThread "Finalizer" daemon [_thread_blocked, id=2856, stack(0x0000000006f40000,0x0000000007040000)]
0x00000000067bc000 JavaThread "Reference Handler" daemon [_thread_blocked, id=2740, stack(0x0000000006e40000,0x0000000006f40000)]
=>0x0000000002fef000 JavaThread "main" [_thread_in_Java, id=996, stack(0x0000000000030000,0x0000000000130000)]
Other Threads:
0x00000000067ae800 VMThread [stack: 0x0000000006d40000,0x0000000006e40000] [id=3400]
0x00000000068d2800 WatcherThread [stack: 0x0000000007540000,0x0000000007640000] [id=2624]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 11968K, used 3878K [0x00000000f8000000, 0x00000000f8d50000, 0x0000000100000000)
eden space 10304K, 37% used [0x00000000f8000000,0x00000000f83c99e0,0x00000000f8a10000)
from space 1664K, 0% used [0x00000000f8bb0000,0x00000000f8bb0000,0x00000000f8d50000)
to space 1664K, 0% used [0x00000000f8a10000,0x00000000f8a10000,0x00000000f8bb0000)
PSOldGen total 27328K, used 0K [0x00000000e8000000, 0x00000000e9ab0000, 0x00000000f8000000)
object space 27328K, 0% used [0x00000000e8000000,0x00000000e8000000,0x00000000e9ab0000)
PSPermGen total 21248K, used 4738K [0x00000000d8000000, 0x00000000d94c0000, 0x00000000e8000000)
object space 21248K, 22% used [0x00000000d8000000,0x00000000d84a0be0,0x00000000d94c0000)
Code Cache [0x0000000002ff0000, 0x0000000003260000, 0x0000000005ff0000)
total_blobs=245 nmethods=26 adapters=172 free_code_cache=48707Kb largest_free_block=49843712
Dynamic libraries:
0x0000000000400000 - 0x000000000044f000 C:\Users\Andy\Desktop\eclipse-java-juno-win32-x86_64\eclipse\eclipse.exe
0x0000000077960000 - 0x0000000077b09000 C:\windows\SYSTEM32\ntdll.dll
0x0000000077840000 - 0x000000007795f000 C:\windows\system32\kernel32.dll
0x000007fefded0000 - 0x000007fefdf3c000 C:\windows\system32\KERNELBASE.dll
0x00000000775e0000 - 0x00000000776da000 C:\windows\system32\USER32.dll
0x000007fefea70000 - 0x000007fefead7000 C:\windows\system32\GDI32.dll
0x000007fefe220000 - 0x000007fefe22e000 C:\windows\system32\LPK.dll
0x000007fefe460000 - 0x000007fefe529000 C:\windows\system32\USP10.dll
0x000007feffbd0000 - 0x000007feffc6f000 C:\windows\system32\msvcrt.dll
0x000007fefc620000 - 0x000007fefc814000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefe340000 - 0x000007fefe3b1000 C:\windows\system32\SHLWAPI.dll
0x000007fefdc90000 - 0x000007fefdce7000 C:\windows\system32\apphelp.dll
0x000007fee9f80000 - 0x000007fee9fda000 C:\windows\AppPatch\AppPatch64\AcLayers.DLL
0x000007fefb9c0000 - 0x000007fefba31000 C:\windows\system32\WINSPOOL.DRV
0x000007fef9090000 - 0x000007fef90a8000 C:\windows\system32\MPR.dll
0x000007fefe6b0000 - 0x000007fefe7dd000 C:\windows\system32\RPCRT4.dll
0x000007fee9b10000 - 0x000007fee9f77000 C:\windows\AppPatch\AppPatch64\AcXtrnal.DLL
0x000007fee9fe0000 - 0x000007feea031000 C:\windows\AppPatch\AppPatch64\AcGenral.DLL
0x000007fefdc60000 - 0x000007fefdc85000 C:\windows\system32\SspiCli.dll
0x000007fefe7e0000 - 0x000007fefe9e3000 C:\windows\system32\ole32.dll
0x000007fefede0000 - 0x000007feffb68000 C:\windows\system32\SHELL32.dll
0x00000000726d0000 - 0x00000000726d3000 C:\windows\system32\sfc.dll
0x000007fef7af0000 - 0x000007fef7b00000 C:\windows\system32\sfc_os.DLL
0x000007fefd0c0000 - 0x000007fefd0de000 C:\windows\system32\USERENV.dll
0x000007fefddc0000 - 0x000007fefddcf000 C:\windows\system32\profapi.dll
0x000007fefbd90000 - 0x000007fefbda8000 C:\windows\system32\dwmapi.dll
0x000007fefeb00000 - 0x000007fefebdb000 C:\windows\system32\ADVAPI32.dll
0x000007fefeae0000 - 0x000007fefeaff000 C:\windows\SYSTEM32\sechost.dll
0x000007fefe1e0000 - 0x000007fefe20e000 C:\windows\system32\IMM32.DLL
0x000007fefe230000 - 0x000007fefe339000 C:\windows\system32\MSCTF.dll
0x00000000222f0000 - 0x00000000223f5000 C:\Program Files\CheckPoint\ZAForceField\Plugins\ISWSHEX.dll
0x0000000073c20000 - 0x0000000073ce9000 C:\windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_88e41e092fab0294\MSVCR80.dll
0x000007fefde70000 - 0x000007fefdeaa000 C:\windows\system32\WINTRUST.dll
0x000007fefdf40000 - 0x000007fefe0aa000 C:\windows\system32\CRYPT32.dll
0x000007fefde60000 - 0x000007fefde6f000 C:\windows\system32\MSASN1.dll
0x0000000073b10000 - 0x0000000073c19000 C:\windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_88e41e092fab0294\MSVCP80.dll
0x000007fefc5a0000 - 0x000007fefc5cd000 C:\windows\system32\ntmarta.dll
0x000007feffb70000 - 0x000007feffbc2000 C:\windows\system32\WLDAP32.dll
0x0000000072000000 - 0x0000000072012000 C:\Users\Andy\Desktop\eclipse-java-juno-win32-x86_64\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813\eclipse_1503.dll
0x000007fefcd60000 - 0x000007fefcd6c000 C:\windows\system32\VERSION.dll
0x000007fefc380000 - 0x000007fefc3d6000 C:\windows\system32\uxtheme.dll
0x000007fefdcf0000 - 0x000007fefdcff000 C:\windows\system32\CRYPTBASE.dll
0x000007fefe3c0000 - 0x000007fefe459000 C:\windows\system32\CLBCatQ.DLL
0x000007fefe530000 - 0x000007fefe607000 C:\windows\system32\OLEAUT32.dll
0x0000000010000000 - 0x000000001000a000 C:\Program Files (x86)\Lenovo\Energy Management\BatteryTestDLL.dll
0x000000006afc0000 - 0x000000006b69a000 C:\Program Files\Java\jdk1.7.0_03\jre\bin\server\jvm.dll
0x000007fef1390000 - 0x000007fef1399000 C:\windows\system32\WSOCK32.dll
0x000007fefe190000 - 0x000007fefe1dd000 C:\windows\system32\WS2_32.dll
0x000007fefe210000 - 0x000007fefe218000 C:\windows\system32\NSI.dll
0x000007fefaf60000 - 0x000007fefaf9b000 C:\windows\system32\WINMM.dll
0x0000000077b20000 - 0x0000000077b27000 C:\windows\system32\PSAPI.DLL
0x000000006bca0000 - 0x000000006bd71000 C:\windows\system32\MSVCR100.dll
0x0000000071790000 - 0x000000007179f000 C:\Program Files\Java\jdk1.7.0_03\jre\bin\verify.dll
0x000000006bc70000 - 0x000000006bc98000 C:\Program Files\Java\jdk1.7.0_03\jre\bin\java.dll
0x000000006cc60000 - 0x000000006cc75000 C:\Program Files\Java\jdk1.7.0_03\jre\bin\zip.dll
0x000007fefd690000 - 0x000007fefd6a7000 C:\windows\system32\CRYPTSP.dll
0x000007fefd390000 - 0x000007fefd3d7000 C:\windows\system32\rsaenh.dll
0x000000006bc50000 - 0x000000006bc69000 C:\Program Files\Java\jdk1.7.0_03\jre\bin\net.dll
0x000007fefd630000 - 0x000007fefd685000 C:\windows\system32\mswsock.dll
0x000007fefd620000 - 0x000007fefd627000 C:\windows\System32\wship6.dll
0x000007fefb030000 - 0x000007fefb045000 C:\windows\system32\NLAapi.dll
0x000007fef2750000 - 0x000007fef2765000 C:\windows\system32\napinsp.dll
0x000007fef2770000 - 0x000007fef2789000 C:\windows\system32\pnrpnsp.dll
0x000007fefd4b0000 - 0x000007fefd50b000 C:\windows\system32\DNSAPI.dll
0x000007fef2730000 - 0x000007fef273b000 C:\windows\System32\winrnr.dll
0x000007fef2740000 - 0x000007fef2750000 C:\windows\system32\wshbth.dll
0x0000000072220000 - 0x0000000072246000 C:\Program Files\Bonjour\mdnsNSP.dll
0x000007fefa8e0000 - 0x000007fefa907000 C:\windows\system32\Iphlpapi.DLL
0x000007fefa8c0000 - 0x000007fefa8cb000 C:\windows\system32\WINNSI.DLL
0x000007fef4750000 - 0x000007fef477f000 C:\Program Files\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
0x000007fefcfa0000 - 0x000007fefcfa7000 C:\windows\System32\wshtcpip.dll
0x000007fef4a50000 - 0x000007fef4a58000 C:\windows\system32\rasadhlp.dll
0x000007fefa4c0000 - 0x000007fefa513000 C:\windows\System32\fwpuclnt.dll
0x000000006bc30000 - 0x000000006bc41000 C:\Program Files\Java\jdk1.7.0_03\jre\bin\nio.dll
VM Arguments:
jvm_args: -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xms40m -Xmx384m -XX:MaxPermSize=256m
java_command: <unknown>
Launcher Type: generic
Environment Variables:
CLASSPATH=.;
PATH=C:/Program Files/Java/jdk1.7.0_03/bin/../jre/bin/server;C:/Program Files/Java/jdk1.7.0_03/bin/../jre/bin;C:/Program Files/Java/jdk1.7.0_03/bin/../jre/lib/amd64;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Java\jdk1.7.0_03\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;C:\Users\Andy\Desktop\eclipse-java-juno-win32-x86_64\eclipse;
USERNAME=Andy
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 , 64 bit Build 6000
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
Memory: 4k page, physical 6233968k(4708700k free), swap 12466084k(10719968k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (22.1-b02) for windows-amd64 JRE (1.7.0_03-b05), built on Feb 3 2012 20:43:56 by "java_re" with unknown MS VC++:1600
time: Sat Jun 30 17:13:23 2012
elapsed time: 0 seconds
I have tried everything that I can think of to resolve the issue. I've downloaded the latest version of Eclipse, installed the latest version of both Java and the JDK, and even temporarily disabled UAC as per Java's recommendation but none of that has solved the situation.
As far as I can think, I have not modified anything (certainly not to do with Eclipse) since Eclipse was working fine. However I do have a little bit of a suspicion that my hard drive may not be as healthy as it should be; still, I have not seen anything else
effected. Therefore, any help or advice would be greatly appreciated.
Thanks in advance
Well, a JVM crash is nasty, and suggests something is seriously wrong. And looking at the stack trace in the dump, it appears that the code is trying to verify the signature on a JAR file that it is trying to open. I suspect that you've got a corrupted JAR file, and that would tend to confirm your suspicion that this is related to your hard drive being "unhealthy".
I just want to share my experience-
I was also getting the same error on running runnable jar file on my PC. I was getting stuck and tried whole night and got nothing useful.
Later I tried same jar file on My Laptop and it is working fine no error nothing.
Hence analyzed more on this and found some sectors of my HDD are corrupted.
Unfortunately, Stephen C's suspicion was correct; it was nothing to do with Eclipse at all.
I guessed that the crashes were down to ntdll.dll which concerned me a bit because it is located in the Windows directory. After an extended SMART test in a couple of programs produced an 'read failure', I investigated further to find 28 of my sectors were damaged. At this point reality struck and I realised that my HDD was on its last legs, so I ordered an SSD (because I have a disability that means I can be heavy handed, amongst other reasons). And I'm glad I did.
In some ways, it's a good job I went to use Eclipse when I did. I could literally see the drive failing - I managed to back up most of my files, some were on bad sectors and even Unstoppable Copier couldn't help; but cloning was a pointless and time consuming exercise. Acronis managed to clone the drive, but it obviously didn't get the vital files - Windows wouldn't load and I ended up reinstalling and loosing my recovery partition - but you can't have anything.
Anyway, all you really needed to know is Eclipse is now working and the problem was caused by damaged sectors on my HDD. Very annoying.
I wanted to insert multiple records in MS Access file from java Servlet. The batchupdate runs perfectly for first 10 records but the next batch update gives the following error:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6966ef76, pid=5688, tid=5368
#
# JRE version: 6.0_33-b03
# Java VM: Java HotSpot(TM) Client VM (20.8-b03 mixed mode windows-x86 )
# Problematic frame:
# C [odbcjt32.dll+0x1ef76]
#
# An error report file with more information is saved as:
# D:\SOFT\Eclipse IDE for Java EE\hs_err_pid5688.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Here is my sample code I am using:
statement = dbConnection.prepareStatement(insertQuery);
for(int i = 0; i < DataCache.seriesTable.getRows().size(); i++) {
ArrayList<String> row = DataCache.seriesTable.getRow(i);
for(int j = 0; j < row.size(); j++) {
statement.setString(j+1, row.get(j));
}
statement.addBatch();
if ((i + 1) % 5 == 0) {
statement.executeBatch(); // Execute every 5 items.
}
}
int[] n = statement.executeBatch();
Any idea how to get rid of this issue?
Here are the contents of "D:\SOFT\Eclipse IDE for Java EE\hs_err_pid5688.log" file.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6966ef76, pid=5688, tid=5368
#
# JRE version: 6.0_33-b03
# Java VM: Java HotSpot(TM) Client VM (20.8-b03 mixed mode windows-x86 )
# Problematic frame:
# C [odbcjt32.dll+0x1ef76]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x184c9400): JavaThread "http-8080-2" daemon [_thread_in_native, id=5368, stack(0x18b60000,0x18bb0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x0000000e, ECX=0x0000000a, EDX=0x00000005
ESP=0x18baf258, EBP=0x18baf274, ESI=0x18940340, EDI=0x189402d8
EIP=0x6966ef76, EFLAGS=0x00010246
Top of Stack: (sp=0x18baf258)
0x18baf258: 00000000 18940340 189402d8 00000000
0x18baf268: 00000000 00000001 00000001 18baf2a8
0x18baf278: 6966f95b 00000000 0000000e 00000001
0x18baf288: 00000001 000000ff 00000000 184ea710
0x18baf298: 00000000 00000000 0029d830 0029b240
0x18baf2a8: 18baf2e8 700be766 189402d8 0000000e
0x18baf2b8: 00000001 00000001 00000001 000000ff
0x18baf2c8: 00000000 184ea710 00000000 00000000
Instructions: (pc=0x6966ef76)
0x6966ef56: 52 e8 34 ea ff ff 85 c0 0f 84 56 ff ff ff 66 83
0x6966ef66: 7d 08 00 8b 40 20 75 14 83 f8 ff 75 08 8b 45 24
0x6966ef76: 83 38 ff 75 07 c7 45 f0 01 00 00 00 0f bf 4d 14
0x6966ef86: 6a 00 6a 00 51 6a 02 53 56 8d 87 30 03 00 00 50
Register to memory mapping:
EAX=0x00000000 is an unknown value
EBX=0x0000000e is an unknown value
ECX=0x0000000a is an unknown value
EDX=0x00000005 is an unknown value
ESP=0x18baf258 is pointing into the stack for thread: 0x184c9400
EBP=0x18baf274 is pointing into the stack for thread: 0x184c9400
ESI=0x18940340 is an unknown value
EDI=0x189402d8 is an unknown value
Stack: [0x18b60000,0x18bb0000], sp=0x18baf258, free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [odbcjt32.dll+0x1ef76] SQLNumParams+0x946
C [odbcjt32.dll+0x1f95b] SQLBindParameter+0x9b
C [ODBC32.dll+0x2e766] SQLBindParameter+0x1df
C [ODBC32.dll+0x2e5fd] SQLBindParameter+0x76
C [JdbcOdbc.dll+0x2c24] Java_sun_jdbc_odbc_JdbcOdbc_bindInParameterString+0x106
j sun.jdbc.odbc.JdbcOdbc.bindInParameterString(JII[BII[B[B[J)V+0
j sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterString(JIIII[B[B[J)V+110
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(IIILjava/lang/String;)V+135
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(ILjava/lang/String;)V+39
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.setObject(ILjava/lang/Object;II)V+376
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.setObject(ILjava/lang/Object;I)V+5
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.emulateExecuteBatch()[I+268
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeBatchUpdate()[I+564
j sun.jdbc.odbc.JdbcOdbcStatement.executeBatch()[I+1
j com.SDAM.servlets.Upload_Data_File.saveSeriesData()V+100
j com.SDAM.servlets.Upload_Data_File.extractSeriesData(Ljava/sql/Connection;)V+149
j com.SDAM.servlets.Upload_Data_File.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+278
j com.SDAM.servlets.Upload_Data_File.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3
j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139
j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+376
j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+804
j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+365
j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42
j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+158
j org.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)V+514
j org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82
j org.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
V [jvm.dll+0xfadcb]
V [jvm.dll+0x18c3e1]
V [jvm.dll+0xfaf71]
V [jvm.dll+0xfafcb]
V [jvm.dll+0xb5569]
V [jvm.dll+0x1190a4]
V [jvm.dll+0x14108c]
C [msvcr71.dll+0x9565] endthreadex+0xa0
C [kernel32.dll+0x51174] BaseThreadInitThunk+0x12
C [ntdll.dll+0x5b3f5] RtlInitializeExceptionChain+0x63
C [ntdll.dll+0x5b3c8] RtlInitializeExceptionChain+0x36
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.jdbc.odbc.JdbcOdbc.bindInParameterString(JII[BII[B[B[J)V+0
j sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterString(JIIII[B[B[J)V+110
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(IIILjava/lang/String;)V+135
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(ILjava/lang/String;)V+39
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.setObject(ILjava/lang/Object;II)V+376
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.setObject(ILjava/lang/Object;I)V+5
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.emulateExecuteBatch()[I+268
j sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeBatchUpdate()[I+564
j sun.jdbc.odbc.JdbcOdbcStatement.executeBatch()[I+1
j com.SDAM.servlets.Upload_Data_File.saveSeriesData()V+100
j com.SDAM.servlets.Upload_Data_File.extractSeriesData(Ljava/sql/Connection;)V+149
j com.SDAM.servlets.Upload_Data_File.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+278
j com.SDAM.servlets.Upload_Data_File.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3
j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139
j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+376
j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+804
j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+365
j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42
j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+158
j org.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)V+514
j org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82
j org.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x184aa400 JavaThread "http-8080-7" daemon [_thread_blocked, id=3684, stack(0x18df0000,0x18e40000)]
0x184a9c00 JavaThread "http-8080-6" daemon [_thread_blocked, id=2220, stack(0x18da0000,0x18df0000)]
0x184a9400 JavaThread "http-8080-5" daemon [_thread_blocked, id=5920, stack(0x18d50000,0x18da0000)]
0x184a9000 JavaThread "http-8080-4" daemon [_thread_blocked, id=5112, stack(0x18c00000,0x18c50000)]
0x184ed400 JavaThread "http-8080-3" daemon [_thread_blocked, id=4956, stack(0x18bb0000,0x18c00000)]
=>0x184c9400 JavaThread "http-8080-2" daemon [_thread_in_native, id=5368, stack(0x18b60000,0x18bb0000)]
0x184c3c00 JavaThread "http-8080-1" daemon [_thread_blocked, id=5892, stack(0x18b10000,0x18b60000)]
0x1851c800 JavaThread "TP-Monitor" daemon [_thread_blocked, id=3596, stack(0x18ac0000,0x18b10000)]
0x1851c400 JavaThread "TP-Processor4" daemon [_thread_in_native, id=4256, stack(0x18a70000,0x18ac0000)]
0x1851bc00 JavaThread "TP-Processor3" daemon [_thread_blocked, id=5900, stack(0x18a20000,0x18a70000)]
0x18520800 JavaThread "TP-Processor2" daemon [_thread_blocked, id=5576, stack(0x188d0000,0x18920000)]
0x184af000 JavaThread "TP-Processor1" daemon [_thread_blocked, id=700, stack(0x18880000,0x188d0000)]
0x184b7800 JavaThread "http-8080-Acceptor-0" daemon [_thread_in_native, id=2364, stack(0x18830000,0x18880000)]
0x184afc00 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=3148, stack(0x180e0000,0x18130000)]
0x18400c00 JavaThread "GC Daemon" daemon [_thread_blocked, id=708, stack(0x18090000,0x180e0000)]
0x0194c400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1964, stack(0x17f30000,0x17f80000)]
0x01952800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=5404, stack(0x17e80000,0x17ed0000)]
0x0193a400 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=5256, stack(0x17e30000,0x17e80000)]
0x01939400 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=5760, stack(0x17dc0000,0x17e10000)]
0x01937400 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=3956, stack(0x17d70000,0x17dc0000)]
0x0192b000 JavaThread "Attach Listener" daemon [_thread_blocked, id=5712, stack(0x17c60000,0x17cb0000)]
0x0192a000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5516, stack(0x17c10000,0x17c60000)]
0x018fa400 JavaThread "Finalizer" daemon [_thread_blocked, id=5284, stack(0x17bc0000,0x17c10000)]
0x018f8c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=3564, stack(0x17b70000,0x17bc0000)]
0x003e9400 JavaThread "main" [_thread_in_native, id=448, stack(0x00370000,0x003c0000)]
Other Threads:
0x018f5800 VMThread [stack: 0x17b20000,0x17b70000] [id=3760]
0x0194e000 WatcherThread [stack: 0x18040000,0x18090000] [id=1532]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4992K, used 4236K [0x039e0000, 0x03f40000, 0x08f30000)
eden space 4480K, 83% used [0x039e0000, 0x03d87c10, 0x03e40000)
from space 512K, 96% used [0x03e40000, 0x03ebb4f0, 0x03ec0000)
to space 512K, 0% used [0x03ec0000, 0x03ec0000, 0x03f40000)
tenured generation total 10944K, used 6149K [0x08f30000, 0x099e0000, 0x139e0000)
the space 10944K, 56% used [0x08f30000, 0x09531738, 0x09531800, 0x099e0000)
compacting perm gen total 12288K, used 10772K [0x139e0000, 0x145e0000, 0x179e0000)
the space 12288K, 87% used [0x139e0000, 0x144653b0, 0x14465400, 0x145e0000)
No shared spaces configured.
Code Cache [0x01960000, 0x01af8000, 0x03960000)
total_blobs=697 nmethods=539 adapters=102 free_code_cache=31904832 largest_free_block=192
Dynamic libraries:
0x00400000 - 0x00425000 C:\Program Files\Java\jre6\bin\javaw.exe
0x77660000 - 0x7779c000 C:\Windows\SYSTEM32\ntdll.dll
0x77310000 - 0x773e4000 C:\Windows\system32\kernel32.dll
0x75a20000 - 0x75a6a000 C:\Windows\system32\KERNELBASE.dll
0x777f0000 - 0x77890000 C:\Windows\system32\ADVAPI32.dll
0x77440000 - 0x774ec000 C:\Windows\system32\msvcrt.dll
0x76f80000 - 0x76f99000 C:\Windows\SYSTEM32\sechost.dll
0x75c20000 - 0x75cc1000 C:\Windows\system32\RPCRT4.dll
0x75e00000 - 0x75ec9000 C:\Windows\system32\USER32.dll
0x773f0000 - 0x7743e000 C:\Windows\system32\GDI32.dll
0x774f0000 - 0x774fa000 C:\Windows\system32\LPK.dll
0x75b80000 - 0x75c1d000 C:\Windows\system32\USP10.dll
0x76d10000 - 0x76d2f000 C:\Windows\system32\IMM32.DLL
0x76e20000 - 0x76eec000 C:\Windows\system32\MSCTF.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll
0x6d7f0000 - 0x6da9f000 C:\Program Files\Java\jre6\bin\client\jvm.dll
0x73c40000 - 0x73c72000 C:\Windows\system32\WINMM.dll
0x756c0000 - 0x7570b000 C:\Windows\system32\apphelp.dll
0x6d7a0000 - 0x6d7ac000 C:\Program Files\Java\jre6\bin\verify.dll
0x6d320000 - 0x6d33f000 C:\Program Files\Java\jre6\bin\java.dll
0x6d370000 - 0x6d399000 C:\Program Files\Java\jre6\bin\jdwp.dll
0x6d690000 - 0x6d696000 C:\Program Files\Java\jre6\bin\npt.dll
0x6d7e0000 - 0x6d7ef000 C:\Program Files\Java\jre6\bin\zip.dll
0x6d200000 - 0x6d207000 C:\Program Files\Java\jre6\bin\dt_socket.dll
0x777a0000 - 0x777d5000 C:\Windows\system32\WS2_32.dll
0x75df0000 - 0x75df6000 C:\Windows\system32\NSI.dll
0x73f20000 - 0x73f30000 C:\Windows\system32\NLAapi.dll
0x75200000 - 0x7523c000 C:\Windows\System32\mswsock.dll
0x750c0000 - 0x75104000 C:\Windows\system32\DNSAPI.dll
0x71be0000 - 0x71be8000 C:\Windows\System32\winrnr.dll
0x71bd0000 - 0x71be0000 C:\Windows\system32\napinsp.dll
0x71bb0000 - 0x71bc2000 C:\Windows\system32\pnrpnsp.dll
0x003c0000 - 0x003d9000 C:\Program Files\Bonjour\mdnsNSP.dll
0x73700000 - 0x7371c000 C:\Windows\system32\Iphlpapi.DLL
0x736f0000 - 0x736f7000 C:\Windows\system32\WINNSI.DLL
0x73590000 - 0x735c8000 C:\Windows\System32\fwpuclnt.dll
0x71ba0000 - 0x71ba6000 C:\Windows\system32\rasadhlp.dll
0x74d40000 - 0x74d45000 C:\Windows\System32\wshtcpip.dll
0x6d550000 - 0x6d559000 C:\Program Files\Java\jre6\bin\management.dll
0x6d780000 - 0x6d788000 C:\Program Files\Java\jre6\bin\sunmscapi.dll
0x75900000 - 0x75a1c000 C:\Windows\system32\CRYPT32.dll
0x75870000 - 0x7587c000 C:\Windows\system32\MSASN1.dll
0x6d600000 - 0x6d613000 C:\Program Files\Java\jre6\bin\net.dll
0x751f0000 - 0x751f6000 C:\Windows\System32\wship6.dll
0x75240000 - 0x75256000 C:\Windows\system32\CRYPTSP.dll
0x74fe0000 - 0x7501b000 C:\Windows\system32\rsaenh.dll
0x74e10000 - 0x74e27000 C:\Windows\system32\USERENV.dll
0x75760000 - 0x7576b000 C:\Windows\system32\profapi.dll
0x75740000 - 0x7574c000 C:\Windows\system32\CRYPTBASE.dll
0x6d360000 - 0x6d36d000 C:\Program Files\Java\jre6\bin\JdbcOdbc.dll
0x70090000 - 0x7011a000 C:\Windows\system32\ODBC32.dll
0x72840000 - 0x72878000 C:\Windows\system32\odbcint.dll
0x753e0000 - 0x753f7000 C:\Windows\system32\bcrypt.dll
0x74f20000 - 0x74f5d000 C:\Windows\system32\bcryptprimitives.dll
0x6ffa0000 - 0x6ffe5000 C:\PROGRA~1\COMMON~1\MICROS~1\OFFICE14\ACEODBC.DLL
0x733c0000 - 0x73463000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_509463cabcb6ef2a\MSVCR90.dll
0x75b00000 - 0x75b7b000 C:\Windows\system32\COMDLG32.dll
0x77280000 - 0x772d7000 C:\Windows\system32\SHLWAPI.dll
0x745b0000 - 0x7474e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc\COMCTL32.dll
0x75ed0000 - 0x76b19000 C:\Windows\system32\SHELL32.dll
0x77500000 - 0x7765c000 C:\Windows\system32\ole32.dll
0x5cca0000 - 0x5de7e000 C:\Program Files\Common Files\Microsoft Shared\office14\mso.dll
0x19070000 - 0x192b0000 C:\Windows\system32\msi.dll
0x61e60000 - 0x6226f000 C:\Program Files\Common Files\Microsoft Shared\office14\Cultures\office.odf
0x73990000 - 0x7399f000 C:\Program Files\Common Files\Microsoft Shared\OFFICE14\1033\ACEODBCI.DLL
0x747d0000 - 0x747db000 C:\Program Files\Common Files\Microsoft Shared\OFFICE14\ACEERR.DLL
0x61ab0000 - 0x61cca000 C:\Program Files\Common Files\Microsoft Shared\OFFICE14\ACECORE.DLL
0x73330000 - 0x733be000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_509463cabcb6ef2a\MSVCP90.dll
0x76ef0000 - 0x76f7f000 C:\Windows\system32\OLEAUT32.dll
0x624c0000 - 0x62592000 C:\Program Files\Common Files\Microsoft Shared\OFFICE14\1033\ACEWSTR.DLL
0x709f0000 - 0x70a0e000 C:\Windows\system32\odbccp32.dll
0x74cb0000 - 0x74cb9000 C:\Windows\system32\VERSION.dll
0x756a0000 - 0x756ba000 C:\Windows\system32\SspiCli.dll
0x74470000 - 0x744b0000 C:\Windows\system32\uxtheme.dll
0x58770000 - 0x5cc9a000 C:\Program Files\Common Files\Microsoft Shared\office14\MSORES.DLL
0x72b60000 - 0x72b76000 C:\Windows\system32\DavClnt.DLL
0x747e0000 - 0x747e8000 C:\Windows\system32\DAVHLPR.dll
0x60120000 - 0x60382000 C:\Program Files\Common Files\Microsoft Shared\office14\1033\MSOINTL.DLL
0x741c0000 - 0x741d3000 C:\Windows\system32\dwmapi.dll
0x696a0000 - 0x69743000 C:\PROGRA~1\COMMON~1\MICROS~1\OFFICE14\ACEEXCL.DLL
0x70470000 - 0x704a2000 C:\Program Files\Common Files\Microsoft Shared\OFFICE14\1033\ACEINTL.DLL
0x76d90000 - 0x76e13000 C:\Windows\system32\CLBCatQ.DLL
0x71d90000 - 0x71ee7000 C:\Windows\System32\msxml6.dll
0x69650000 - 0x6969e000 C:\Windows\system32\odbcjt32.dll
0x5fc30000 - 0x5fdb5000 C:\Windows\system32\msjet40.dll
0x693c0000 - 0x69458000 C:\Windows\system32\mswstr10.dll
0x71450000 - 0x71456000 C:\Windows\system32\odbcji32.dll
0x709d0000 - 0x709e1000 C:\Windows\system32\msjter40.dll
0x70940000 - 0x70946000 C:\Windows\system32\MSJINT40.DLL
0x692e0000 - 0x69328000 C:\Windows\system32\msjtes40.dll
0x1ded0000 - 0x1dedb000 C:\Windows\system32\VBAJET32.DLL
0x230d0000 - 0x23132000 C:\Windows\system32\expsrv.dll
0x777e0000 - 0x777e5000 C:\Windows\system32\PSAPI.DLL
VM Arguments:
jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:52879 -Dcatalina.base=D:\SOFT\Eclipse IDE for Java EE\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 -Dcatalina.home=C:\apache-tomcat-6.0.32 -Dwtp.deploy=D:\SOFT\Eclipse IDE for Java EE\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps -Djava.endorsed.dirs=C:\apache-tomcat-6.0.32\endorsed -Dfile.encoding=Cp1252
java_command: org.apache.catalina.startup.Bootstrap start
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_25
CLASSPATH=C:\apache-tomcat-6.0.32\lib\servlet-api.jar;C:\apache-tomcat-6.0.32\lib\jsp-api.jar;.;
PATH=C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Ruby192\bin;C:\Program Files\Java\jdk1.6.0_25\bin;E:\ApacheAnt\bin;D:\SOFT\Eclipse IDE for Java EE;
USERNAME=khawar.raza
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 7, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 Build 7600
CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 23 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1
Memory: 4k page, physical 3088716k(1133348k free), swap 6175668k(3980664k free)
vm_info: Java HotSpot(TM) Client VM (20.8-b03) for windows-x86 JRE (1.6.0_33-b03), built on May 9 2012 09:39:57 by "java_re" with MS VC++ 7.1 (VS2003)
time: Thu Jun 21 12:32:43 2012
elapsed time: 54 seconds
try closing when done:
statement.close();
Edit sorry, for some reason, I misunderstood your question. From the error message:
# The crash happened outside the Java Virtual Machine in native code.
I googled for the error, but this is as far as I was able to get:
http://www.java-forums.org/eclipse/312-exception_access_violation-0xc0000005.html
Some posts report that it could be a bug in JVM and you need to upgrade. Others suggest a corrupted DLL.
The first thing I would do, is test it on another machine, and move from there.
Not a lot of help, I know !
I have find the solution. Actually I was using MS Access as DBMS which is very slow and I think this was the real issue. The insertion speed of Java was incompatible with MS Access. MS Access overwhelmed with huge amount of data as I am inserting more than 200000 records at a time and due to this overwhelming, MS Access could not handle such huge amount of data and ACCESS VIOLATION was being raised. I replaced MS Access with MySQl and now its looking fine.
Thanks to all.
I had the same error, saving data from a scraping program. It was completely random but seemed to happen with increasing frequency.
After a day of trying various things, I finally tried going into Access and doing a Compact and Repair Database. That seems to have done the trick. So that may be a solution for someone else also.
I am trying to run the following C++ method from Java using JNA, but I get an EXCEPTION_ACCESS_VIOLATION.
typedef struct sp_session sp_session; ///< Representation of a session
/**
* The connection state of the specified session.
*
* #param[in] session Your session object
*
* #return The connection state - see the sp_connectionstate enum for possible values
*/
SP_LIBEXPORT(sp_connectionstate) sp_session_connectionstate(sp_session *session);
Here is my Java code:
main class
public class Test{
static{
System.loadLibrary("libspotify");
}
public static void main(String[] args){
JLibspotify lib = (JLibspotify)Native.loadLibrary("libspotify", JLibspotify.class);
sp_session mySession = new sp_session();
lib.sessionConnectionstate(mySession); // CRASH_HERE
}
}
library
public interface JLibspotify extends StdCallLibrary{
int sessionConnectionstate(sp_session session);
}
sp_session object I declared this as a PointerType as I don't have any information on it
public class sp_session extends PointerType{
public sp_session(Pointer address) {
super(address);
}
public sp_session() {
super();
}
}
And here is my crash report:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1008dbf5, pid=4984, tid=6000
#
# JRE version: 7.0-b129
# Java VM: Java HotSpot(TM) Client VM (21.0-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [libspotify.dll+0x8dbf5]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x00a49400): JavaThread "main" [_thread_in_native, id=6000, stack(0x00ba0000,0x00bf0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x334e8098, ECX=0x00000001, EDX=0x00000004
ESP=0x00bef7bc, EBP=0x00bef7c8, ESI=0x334e8098, EDI=0x00a49400
EIP=0x1008dbf5, EFLAGS=0x00010212
Top of Stack: (sp=0x00bef7bc)
0x00bef7bc: 00000001 0470dac7 00000000 00bef828
0x00bef7cc: 047091b9 04708eb0 00bef810 00000004
0x00bef7dc: 00000001 00befaa0 1008dbf0 650dcd94
0x00bef7ec: 00a49400 00a49400 334e8098 650dce6a
0x00bef7fc: 00a49400 00000400 0000000a 00bef828
0x00bef80c: 00000002 00befa30 00befaa0 00bef850
0x00bef81c: 00bef874 00000000 00000004 00befa78
0x00bef82c: 04702161 00befa30 1008dbf0 00befaa0
Instructions: (pc=0x1008dbf5)
0x1008dbd5: 0b 8b 01 8b 50 0c ff d2 5e 5b 59 c2 04 00 cc cc
0x1008dbe5: cc cc cc cc cc cc cc cc cc cc cc 51 8b 44 24 08
0x1008dbf5: 8b 08 8b 11 8b 42 10 c7 04 24 00 00 00 00 ff d0
0x1008dc05: 59 c2 04 00 cc cc cc cc cc cc cc 51 53 55 8b 6c
Register to memory mapping:
EAX=0x00000000 is an unknown value
EBX=0x334e8098 is an oop
{method}
- klass: {other class}
ECX=0x00000001 is an unknown value
EDX=0x00000004 is an unknown value
ESP=0x00bef7bc is pointing into the stack for thread: 0x00a49400
EBP=0x00bef7c8 is pointing into the stack for thread: 0x00a49400
ESI=0x334e8098 is an oop
{method}
- klass: {other class}
EDI=0x00a49400 is a thread
Stack: [0x00ba0000,0x00bf0000], sp=0x00bef7bc, free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libspotify.dll+0x8dbf5] sp_session_connectionstate+0x5
C [jna8472051172185323617.tmp+0x91b9] JNI_OnUnload+0xda6
C [jna8472051172185323617.tmp+0x2161]
C [jna8472051172185323617.tmp+0x2849] Java_com_sun_jna_Function_invokeInt+0x35
j com.sun.jna.Function.invokeInt(I[Ljava/lang/Object;)I+0
j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+309
j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194
j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344
j $Proxy0.sessionConnectionstate(Lcom/nbarraille/jspotify/model/sp_session;)I+16
j com.nbarraille.jspotify.main.Test.main([Ljava/lang/String;)V+110
v ~StubRoutines::call_stub
V [jvm.dll+0x115f6d]
V [jvm.dll+0x1b788e]
V [jvm.dll+0x115fed]
V [jvm.dll+0xa2507]
V [jvm.dll+0xac867]
C [javaw.exe+0x209e]
C [javaw.exe+0xa23b]
C [javaw.exe+0xa2c5]
C [kernel32.dll+0x51194] BaseThreadInitThunk+0x12
C [ntdll.dll+0x5b429] RtlInitializeExceptionChain+0x63
C [ntdll.dll+0x5b3fc] RtlInitializeExceptionChain+0x36
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sun.jna.Function.invokeInt(I[Ljava/lang/Object;)I+0
j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+309
j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194
j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344
j $Proxy0.sessionConnectionstate(Lcom/nbarraille/jspotify/model/sp_session;)I+16
j com.nbarraille.jspotify.main.Test.main([Ljava/lang/String;)V+110
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x009ffc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=680, stack(0x01120000,0x01170000)]
0x009fac00 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=5032, stack(0x00f00000,0x00f50000)]
0x009f9800 JavaThread "Attach Listener" daemon [_thread_blocked, id=6360, stack(0x01090000,0x010e0000)]
0x009f6400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=652, stack(0x01010000,0x01060000)]
0x009ed000 JavaThread "Finalizer" daemon [_thread_blocked, id=1148, stack(0x00d30000,0x00d80000)]
0x009e7800 JavaThread "Reference Handler" daemon [_thread_blocked, id=6172, stack(0x00f50000,0x00fa0000)]
=>0x00a49400 JavaThread "main" [_thread_in_native, id=6000, stack(0x00ba0000,0x00bf0000)]
Other Threads:
0x009e6400 VMThread [stack: 0x00d90000,0x00de0000] [id=4112]
0x00a13000 WatcherThread [stack: 0x03e70000,0x03ec0000] [id=4168]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4928K, used 1525K [0x23450000, 0x239a0000, 0x289a0000)
eden space 4416K, 34% used [0x23450000, 0x235cd6c8, 0x238a0000)
from space 512K, 0% used [0x238a0000, 0x238a0000, 0x23920000)
to space 512K, 0% used [0x23920000, 0x23920000, 0x239a0000)
tenured generation total 10944K, used 0K [0x289a0000, 0x29450000, 0x33450000)
the space 10944K, 0% used [0x289a0000, 0x289a0000, 0x289a0200, 0x29450000)
compacting perm gen total 12288K, used 638K [0x33450000, 0x34050000, 0x37450000)
the space 12288K, 5% used [0x33450000, 0x334efb70, 0x334efc00, 0x34050000)
ro space 10240K, 43% used [0x37450000, 0x3789ce40, 0x3789d000, 0x37e50000)
rw space 12288K, 53% used [0x37e50000, 0x384c2710, 0x384c2800, 0x38a50000)
Code Cache [0x01e50000, 0x01ed8000, 0x03e50000)
total_blobs=187 nmethods=39 adapters=85 free_code_cache=33013568 largest_free_block=0
Dynamic libraries:
0x01220000 - 0x01250000 C:\Program Files\Java\jdk1.7.0\bin\javaw.exe
0x76dc0000 - 0x76efd000 C:\Windows\SYSTEM32\ntdll.dll
0x76c10000 - 0x76ce4000 C:\Windows\system32\kernel32.dll
0x75110000 - 0x7515a000 C:\Windows\system32\KERNELBASE.dll
0x60000000 - 0x60041000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00078_002\midas32.dll
0x61000000 - 0x61028000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00078_002\plugin_base.m32
0x67000000 - 0x67048000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00078_002\plugin_nt.m32
0x64000000 - 0x64021000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00078_002\plugin_registry.m32
0x62000000 - 0x6202d000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00078_002\plugin_extra.m32
0x65000000 - 0x6501a000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00078_002\plugin_net.m32
0x63000000 - 0x630a6000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00078_002\plugin_fragments.m32
0x75d20000 - 0x75dc0000 C:\Windows\system32\ADVAPI32.dll
0x75dc0000 - 0x75e6c000 C:\Windows\system32\msvcrt.dll
0x76f20000 - 0x76f39000 C:\Windows\SYSTEM32\sechost.dll
0x754b0000 - 0x75551000 C:\Windows\system32\RPCRT4.dll
0x76cf0000 - 0x76db9000 C:\Windows\system32\USER32.dll
0x752a0000 - 0x752ee000 C:\Windows\system32\GDI32.dll
0x757f0000 - 0x757fa000 C:\Windows\system32\LPK.dll
0x76f40000 - 0x76fdd000 C:\Windows\system32\USP10.dll
0x73d70000 - 0x73f0e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16661_none_420fe3fa2b8113bd\COMCTL32.dll
0x75cc0000 - 0x75d17000 C:\Windows\system32\SHLWAPI.dll
0x75490000 - 0x754af000 C:\Windows\system32\IMM32.DLL
0x75800000 - 0x758cc000 C:\Windows\system32\MSCTF.dll
0x69700000 - 0x697be000 C:\Program Files\Java\jdk1.7.0\jre\bin\msvcr100.dll
0x65030000 - 0x65339000 C:\Program Files\Java\jdk1.7.0\jre\bin\client\jvm.dll
0x736c0000 - 0x736f2000 C:\Windows\system32\WINMM.dll
0x72860000 - 0x7286c000 C:\Program Files\Java\jdk1.7.0\jre\bin\verify.dll
0x70fc0000 - 0x70fe0000 C:\Program Files\Java\jdk1.7.0\jre\bin\java.dll
0x76f00000 - 0x76f05000 C:\Windows\system32\PSAPI.DLL
0x6f6b0000 - 0x6f6c3000 C:\Program Files\Java\jdk1.7.0\jre\bin\zip.dll
0x10000000 - 0x10259000 C:\Windows\System32\libspotify.dll
0x75f80000 - 0x75fb5000 C:\Windows\system32\WS2_32.dll
0x76f10000 - 0x76f16000 C:\Windows\system32\NSI.dll
0x74ff0000 - 0x7510c000 C:\Windows\system32\CRYPT32.dll
0x74f80000 - 0x74f8c000 C:\Windows\system32\MSASN1.dll
0x74410000 - 0x74468000 C:\Windows\system32\WINHTTP.dll
0x743c0000 - 0x7440f000 C:\Windows\system32\webio.dll
0x74990000 - 0x749a6000 C:\Windows\system32\CRYPTSP.dll
0x74730000 - 0x7476b000 C:\Windows\system32\rsaenh.dll
0x74570000 - 0x74587000 C:\Windows\system32\USERENV.dll
0x74f10000 - 0x74f1b000 C:\Windows\system32\profapi.dll
0x74e90000 - 0x74e9c000 C:\Windows\system32\CRYPTBASE.dll
0x6fbd0000 - 0x6fbe6000 C:\Program Files\Java\jdk1.7.0\jre\bin\net.dll
0x74950000 - 0x7498c000 C:\Windows\system32\mswsock.dll
0x74940000 - 0x74946000 C:\Windows\System32\wship6.dll
0x72d60000 - 0x72d70000 C:\Windows\system32\NLAapi.dll
0x74810000 - 0x74854000 C:\Windows\system32\DNSAPI.dll
0x70520000 - 0x70528000 C:\Windows\System32\winrnr.dll
0x70510000 - 0x70520000 C:\Windows\system32\napinsp.dll
0x704f0000 - 0x70502000 C:\Windows\system32\pnrpnsp.dll
0x74470000 - 0x74475000 C:\Windows\System32\wshtcpip.dll
0x74480000 - 0x7449c000 C:\Windows\system32\IPHLPAPI.DLL
0x741f0000 - 0x741f7000 C:\Windows\system32\WINNSI.DLL
0x701d0000 - 0x701d6000 C:\Windows\system32\rasadhlp.dll
0x72810000 - 0x72848000 C:\Windows\System32\fwpuclnt.dll
0x72d70000 - 0x72d7f000 C:\Program Files\Java\jdk1.7.0\jre\bin\nio.dll
0x04700000 - 0x04752000 C:\Users\nbarraille\AppData\Local\Temp\jna8472051172185323617.tmp
VM Arguments:
jvm_args: -Djava.library.path=C:\Windows\System32 -Dfile.encoding=Cp1252
java_command: com.nbarraille.jspotify.main.Test
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:/Program Files/Java/jdk1.7.0/bin/../jre/bin/client;C:/Program Files/Java/jdk1.7.0/bin/../jre/bin;C:/Program Files/Java/jdk1.7.0/bin/../jre/lib/i386;C:\Windows\System32
USERNAME=nbarraille
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 Build 7600
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1
Memory: 4k page, physical 3624108k(899440k free), swap 7246452k(3244776k free)
vm_info: Java HotSpot(TM) Client VM (21.0-b01) for windows-x86 JRE (1.7.0-ea-b129), built on Feb 10 2011 07:43:39 by "java_re" with unknown MS VC++:1600
time: Tue Mar 01 22:57:31 2011
elapsed time: 0 seconds
I've read that EXCEPTION_ACCESS_VIOLATION with ExceptionCode 0xc00000005 are often due to the usage of a pointer that holds an invalid memory address. Do you think it is the case here? Did I not initialize my session instance properly? How can I solve this?
Thank you!
Yes, according to the stack trace, the sp_session_connectionstate function is dereferencing a NULL pointer.
It might be possible that the sp_session being passed is NULL. If the C code isn't yours, this is most likely the case.
Unfortunately, I'm not very familiar with JNI, so I can't tell whether or not you're passing the pointer from Java to C correctly. Someone else probably knows better.