日期:2014-05-20  浏览次数:21457 次

JAVA调用DLL错误,请高手寻找错误原因,给出解决办法
以下为错误日志

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x765ee26f, pid=4044, tid=780
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode)
# Problematic frame:
# C [CRYPT32.dll+0xe26f]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0x00306000): JavaThread "main" [_thread_in_native, id=780]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000044

Registers:
EAX=0x00000000, EBX=0x00000000, ECX=0x77db7f61, EDX=0x00000000
ESP=0x0094e800, EBP=0x0094e80c, ESI=0x00000000, EDI=0x00000044
EIP=0x765ee26f, EFLAGS=0x00010246

Top of Stack: (sp=0x0094e800)
0x0094e800: 00000000 7660178d 00000000 0094e818
0x0094e810: 765ee2ef 00000000 0094e830 766017af
0x0094e820: 00000000 00000000 765ec7f8 00000000
0x0094e830: 0c1f48d0 0c1d2c97 00000000 00000000
0x0094e840: 0c2107b3 0c1f48d0 00000000 0c1f48d0
0x0094e850: 00306000 02bb8088 6d7c8256 00000001
0x0094e860: 02bb8058 ffffffff 00000004 0094e908
0x0094e870: 00000001 6d960a91 0094e8a8 00a26114 

Instructions: (pc=0x765ee26f)
0x765ee25f: 90 90 8b ff 55 8b ec 53 56 8b 75 08 57 8d 7e 44
0x765ee26f: 8b 07 33 db 3b c3 0f 85 0a b8 00 00 83 3e 03 75 


Stack: [0x00900000,0x00950000), sp=0x0094e800, free space=314k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [CRYPT32.dll+0xe26f]
C [CRYPT32.dll+0xe2ef]
C [CRYPT32.dll+0x217af]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j cn.com.jit.assp.dsign.jni.DSignJNI.SetCert(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I+0
j com.cfcc.jaf.common.cautil.CAClientUtil.SetCertChooseType(I)V+78
j com.cf.kk.client.login.KKLoginModel.login()Z+70
j com.cf.kk.client.login.KKLoginDialog.buttonPressed(I)V+165
j org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Lorg/eclipse/swt/events/SelectionEvent;)V+17
j org.eclipse.swt.widgets.TypedListener.handleEvent(Lorg/eclipse/swt/widgets/Event;)V+198
J org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V
j org.eclipse.swt.widgets.Widget.sendEvent(Lorg/eclipse/swt/widgets/Event;)V+25
j org.eclipse.swt.widgets.Display.runDeferredEvents()Z+84
j org.eclipse.swt.widgets.Display.readAndDispatch()Z+55
j org.eclipse.jface.window.Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;)V+23
j org.eclipse.jface.window.Window.open()I+49
j com.cf.kk.client.Application.login(Lorg/eclipse/swt/widgets/Display;)Z+25
j com.cf.kk.client.Application.run(Ljava/lang/Object;)Ljava/lang/Object;+16
j org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+219
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+135
j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+60
v ~StubRoutines::call_stub
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161