vondonster 2009-06-25 11:43
浏览 294
已采纳

jni的问题 自己的dll 调用了PI SDK 的dll,在运行测试时出错

自己的dll调用了PI SDK的dll,在自己的dll里不加PISDK的内容时。能够正确执行。但加上就出错。
我现在已经做个工作,将应用到的几个dll都和自己的dll一起拷贝到了。jdk的bin目下了。全都拷贝到system32下也不能解决。
是路径有问题吗?还是其他问题。

我的开发工具是vc8,myeclipes6,jdk1.6,pisdk3

以下是错误:
#

An unexpected error has been detected by Java Runtime Environment:

#

Internal Error (0xe06d7363), pid=3860, tid=3836

#

Java VM: Java HotSpot(TM) Client VM (11.2-b01 mixed mode, sharing windows-x86)

Problematic frame:

C [kernel32.dll+0x12afb]

#

An error report file with more information is saved as:

E:\workspace\Server\hs_err_pid3860.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.

#
#

An unexpected error has been detected by HotSpot Virtual Machine:

#

Internal Error (0xe06d7363), pid=3984, tid=1244

#

Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)

Problematic frame:

C [kernel32.dll+0x12afb]

#

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

Current thread (0x00824c90): JavaThread "main" [_thread_in_native, id=1244]

siginfo: ExceptionCode=0xe06d7363, ExceptionInformation=0x19930520 0x0006f9d4 0x100033e0

Registers:
EAX=0x0006f93c, EBX=0x008377c4, ECX=0x00000000, EDX=0x0006f9d4
ESP=0x0006f938, EBP=0x0006f98c, ESI=0x0006f9c4, EDI=0x0006fa14
EIP=0x7c812afb, EFLAGS=0x00000206

Top of Stack: (sp=0x0006f938)
0x0006f938: 00824d50 e06d7363 00000001 00000000
0x0006f948: 7c812afb 00000003 19930520 0006f9d4
0x0006f958: 100033e0 0006f984 769b0575 10003134
0x0006f968: 00000000 00000017 00000000 00000001
0x0006f978: 00000000 0006f9cc 00000000 0006f9a8
0x0006f988: 769b0544 0006f9c4 7857dbf9 e06d7363
0x0006f998: 00000001 00000003 0006f9b8 e06d7363
0x0006f9a8: 00000001 00000000 00000000 00000003

Instructions: (pc=0x7c812afb)
0x7c812aeb: 8d 7d c4 f3 a5 5f 8d 45 b0 50 ff 15 10 15 80 7c
0x7c812afb: 5e c9 c2 10 00 85 ff 0f 8e 36 93 ff ff 8b 55 fc

Stack: [0x00030000,0x00070000), sp=0x0006f938, free space=254k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [kernel32.dll+0x12afb]
C [MSVCR90.dll+0x5dbf9]
C [piplugin.dll+0x1b00]
C [piplugin.dll+0x1a41]
C [piplugin.dll+0x15e6]
j com.bdxyit.pi.Piplugin.getPIValueList()Ljava/util/List;+0
j com.bdxyit.pi.Piplugin.main([Ljava/lang/String;)V+211
v ~StubRoutines::call_stub
V [jvm.dll+0x871a8]
V [jvm.dll+0xdf462]
V [jvm.dll+0x87079]
V [jvm.dll+0x8e0d5]
C [javaw.exe+0x14c5]
C [javaw.exe+0x3151]
C [kernel32.dll+0x17077]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.bdxyit.pi.Piplugin.getPIValueList()Ljava/util/List;+0
j com.bdxyit.pi.Piplugin.main([Ljava/lang/String;)V+211
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x00832300 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2728]
0x00831730 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1944]
0x00830500 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3028]
0x0082fd90 JavaThread "Finalizer" daemon [_thread_blocked, id=1620]
0x0082ea80 JavaThread "Reference Handler" daemon [_thread_blocked, id=3124]
=>0x00824c90 JavaThread "main" [_thread_in_native, id=1244]

Other Threads:
0x0082ddf0 VMThread [id=3960]
0x00835600 WatcherThread [id=3684]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 576K, used 459K [0x02be0000, 0x02c80000, 0x030c0000)
eden space 512K, 89% used [0x02be0000, 0x02c52cd0, 0x02c60000)
from space 64K, 0% used [0x02c60000, 0x02c60000, 0x02c70000)
to space 64K, 0% used [0x02c70000, 0x02c70000, 0x02c80000)
tenured generation total 1408K, used 0K [0x030c0000, 0x03220000, 0x06be0000)
the space 1408K, 0% used [0x030c0000, 0x030c0000, 0x030c0200, 0x03220000)
compacting perm gen total 8192K, used 1981K [0x06be0000, 0x073e0000, 0x0abe0000)
the space 8192K, 24% used [0x06be0000, 0x06dcf5b8, 0x06dcf600, 0x073e0000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x0040d000 D:\taptools\MyEclipse6\jre\bin\javaw.exe
0x7c920000 - 0x7c9b6000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c91e000 C:\WINDOWS\system32\kernel32.dll
0x77da0000 - 0x77e49000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e50000 - 0x77ee2000 C:\WINDOWS\system32\RPCRT4.dll
0x77fc0000 - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll
0x77d10000 - 0x77da0000 C:\WINDOWS\system32\USER32.dll
0x77ef0000 - 0x77f39000 C:\WINDOWS\system32\GDI32.dll
0x77be0000 - 0x77c38000 C:\WINDOWS\system32\MSVCRT.dll
0x76300000 - 0x7631d000 C:\WINDOWS\system32\IMM32.DLL
0x62c20000 - 0x62c29000 C:\WINDOWS\system32\LPK.DLL
0x73fa0000 - 0x7400b000 C:\WINDOWS\system32\USP10.dll
0x6d640000 - 0x6d7dd000 D:\taptools\MyEclipse6\jre\bin\client\jvm.dll
0x76b10000 - 0x76b3a000 C:\WINDOWS\system32\WINMM.dll
0x6d290000 - 0x6d298000 D:\taptools\MyEclipse6\jre\bin\hpi.dll
0x76bc0000 - 0x76bcb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d610000 - 0x6d61c000 D:\taptools\MyEclipse6\jre\bin\verify.dll
0x6d310000 - 0x6d32d000 D:\taptools\MyEclipse6\jre\bin\java.dll
0x6d630000 - 0x6d63f000 D:\taptools\MyEclipse6\jre\bin\zip.dll
0x10000000 - 0x10007000 C:\Program Files\Java\jdk1.6.0_12\bin\piplugin.dll
0x76990000 - 0x76acd000 C:\WINDOWS\system32\ole32.dll
0x770f0000 - 0x7717b000 C:\WINDOWS\system32\OLEAUT32.dll
0x78520000 - 0x785c3000 C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\MSVCR90.dll

VM Arguments:
jvm_args: -Xbootclasspath/a:D:\taptools\MyEclipse6\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.0.1.zmyeclipse601200710\data\libraryset\EE_5\javaee.jar;D:\taptools\MyEclipse6\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.0.1.zmyeclipse601200710\data\libraryset\EE_5\jsf-impl.jar;D:\taptools\MyEclipse6\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.0.1.zmyeclipse601200710\data\libraryset\EE_5\jsf-api.jar;D:\taptools\MyEclipse6\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.0.1.zmyeclipse601200710\data\libraryset\EE_5\jstl-1.2.jar
java_command: com.bdxyit.pi.Piplugin
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_12
CLASSPATH=.D:\IBM\SQLLIB\java\db2java.zip;D:\IBM\SQLLIB\java\db2jcc.jar;D:\IBM\SQLLIB\java\sqlj.zip;D:\IBM\SQLLIB\java\db2jcc_license_cu.jar;D:\IBM\SQLLIB\bin;D:\IBM\SQLLIB\java\common.jar;C:\Program Files\Java\jdk1.6.0_12\lib
PATH=C:\Program Files\Java\jdk1.6.0_12\bin;D:\oracle\product\10.2.0\db_1\bin;D:\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\Subversion\bin;C:\Program Files\Sybase\SQL Anywhere 8\win32;C:\Program Files\Sybase\Shared\win32;C:\Program Files\Sybase\Shared\Sybase Central 4.1;C:\Program Files\Sybase\PowerDynamo\win32;C:\Program Files\Sybase\Shared\PowerBuilder;C:\Program Files\Sybase\InfoMaker 9.0\Tutorial;C:\Program Files\Sybase\Shared\Web Targets;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;D:\IBM\SQLLIB\BIN;D:\IBM\SQLLIB\FUNCTION;D:\IBM\SQLLIB\SAMPLES\REPL;C:\Sun\SDK\bin;C:\Program Files\PIPC
USERNAME=Administrator
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel

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

OS: Windows XP Build 2600 Service Pack 3

CPU:total 2 (cores per cpu 2, threads per core 1) family 6 model 7 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2

Memory: 4k page, physical 2094996k(928400k free), swap 3510488k(2283752k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0

  • 写回答

3条回答 默认 最新

  • 泽伯 2009-06-26 17:25
    关注

    将你写的JNI代码贴出来,看看。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 有两个非常“自以为是”烦人的问题急期待大家解决!
  • ¥30 STM32 INMP441无法读取数据
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动
  • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
  • ¥500 把面具戴到人脸上,请大家贡献智慧
  • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。
  • ¥15 各位 帮我看看如何写代码,打出来的图形要和如下图呈现的一样,急
  • ¥30 c#打开word开启修订并实时显示批注
  • ¥15 如何解决ldsc的这条报错/index error