Java使用Jacob调用大漠插件绑定窗体报错

小赖丶 发布于 07/28 13:40
阅读 303
收藏 0

【华为云1024程序员节·向云而生】预约直播 抽14件华为电子产品礼包!>>>

代码报错在调用BindWindows这行,麻烦大佬们帮忙看看!

idea控制台打印内容

7.1904
state1
1
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x17249517, pid=3052, tid=0x000021b8
#
# JRE version: Java(TM) SE Runtime Environment (8.0_202-b08) (build 1.8.0_202-b08)
# Java VM: Java HotSpot(TM) Client VM (25.202-b08 mixed mode windows-x86 )
# Problematic frame:
# C  0x17249517
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\cczhang\IdeaProjects\YYS\hs_err_pid3052.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Disconnected from the target VM, address: '127.0.0.1:50698', transport: 'socket'

Process finished with exit code 1
 

下面是拉出来的日志:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x167c4fd7, pid=3544, tid=0x00001b8c
#
# JRE version: Java(TM) SE Runtime Environment (8.0_202-b08) (build 1.8.0_202-b08)
# Java VM: Java HotSpot(TM) Client VM (25.202-b08 mixed mode windows-x86 )
# Problematic frame:
# C  0x167c4fd7
#
# 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.java.com/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 (0x008ae400):  JavaThread "main" [_thread_in_native, id=7052, stack(0x007f0000,0x00840000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x00000000, EBX=0x15a25ba0, ECX=0x00000000, EDX=0x00000000
ESP=0x0083f0f8, EBP=0x0083f150, ESI=0x0097a3b8, EDI=0x1608bb74
EIP=0x167c4fd7, EFLAGS=0x00010216

Top of Stack: (sp=0x0083f0f8)
0x0083f0f8:   fb8ab868 00000006 00000004 008ae540
0x0083f108:   0083f170 14ad9788 008ae540 00995098
0x0083f118:   0083f160 72d0eae3 00995098 008ae400
0x0083f128:   14ad9788 027741c9 00000000 2d080147
0x0083f138:   027644c0 18d20003 00000001 0083fb48
0x0083f148:   15add5b0 00000000 0083f180 7685829f
0x0083f158:   15f30988 0009039a 0099dcfc 0099dcac
0x0083f168:   0099dbe4 00000001 0083f1e4 0083f4c0 

Instructions: (pc=0x167c4fd7)
0x167c4fb7:   00 55 fd b1 3b 00 00 00 00 00 00 00 00 00 00 00
0x167c4fc7:   00 00 00 00 00 a1 ac f5 b3 15 8b 0d f4 f5 b3 15
0x167c4fd7:   8b 14 81 03 15 e0 8d b1 15 a1 f4 f5 b3 15 8d 8c
0x167c4fe7:   02 10 04 b3 15 89 4d e8 e8 41 a0 09 00 4d fd b1 


Register to memory mapping:

EAX=0x00000000 is an unknown value
EBX=0x15a25ba0 is an unknown value
ECX=0x00000000 is an unknown value
EDX=0x00000000 is an unknown value
ESP=0x0083f0f8 is pointing into the stack for thread: 0x008ae400
EBP=0x0083f150 is pointing into the stack for thread: 0x008ae400
ESI=0x0097a3b8 is an unknown value
EDI=0x1608bb74 is an unknown value


Stack: [0x007f0000,0x00840000],  sp=0x0083f0f8,  free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x167c4fd7
C  [OLEAUT32.dll+0x3829f]
C  [OLEAUT32.dll+0x1a861]
C  [dm.dll+0x7148]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.jacob.com.Dispatch.invokev(Lcom/jacob/com/Dispatch;Ljava/lang/String;III[Lcom/jacob/com/Variant;[I)Lcom/jacob/com/Variant;+0
j  com.jacob.com.Dispatch.invokev(Lcom/jacob/com/Dispatch;Ljava/lang/String;I[Lcom/jacob/com/Variant;[I)Lcom/jacob/com/Variant;+14
j  com.jacob.com.Dispatch.callN(Lcom/jacob/com/Dispatch;Ljava/lang/String;[Ljava/lang/Object;)Lcom/jacob/com/Variant;+15
j  com.jacob.com.Dispatch.call(Lcom/jacob/com/Dispatch;Ljava/lang/String;[Ljava/lang/Object;)Lcom/jacob/com/Variant;+7
j  com.cczhang.zx.App.main([Ljava/lang/String;)V+84
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x15519000 JavaThread "Service Thread" daemon [_thread_blocked, id=4160, stack(0x158a0000,0x158f0000)]
  0x154bec00 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=8584, stack(0x15810000,0x15860000)]
  0x14d68c00 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=9180, stack(0x15380000,0x153d0000)]
  0x14d62400 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=8816, stack(0x152f0000,0x15340000)]
  0x14d60800 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=8000, stack(0x15260000,0x152b0000)]
  0x14d2a000 JavaThread "Attach Listener" daemon [_thread_blocked, id=7068, stack(0x151d0000,0x15220000)]
  0x14d29000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=8784, stack(0x15140000,0x15190000)]
  0x14d0a800 JavaThread "Finalizer" daemon [_thread_blocked, id=8772, stack(0x15050000,0x150a0000)]
  0x14d08400 JavaThread "Reference Handler" daemon [_thread_blocked, id=6404, stack(0x14fc0000,0x15010000)]
=>0x008ae400 JavaThread "main" [_thread_in_native, id=7052, stack(0x007f0000,0x00840000)]

Other Threads:
  0x14cf1800 VMThread [stack: 0x14f30000,0x14f80000] [id=6280]
  0x15521c00 WatcherThread [stack: 0x15930000,0x15980000] [id=8576]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
 def new generation   total 4928K, used 4115K [0x04800000, 0x04d50000, 0x09d50000)
  eden space 4416K,  93% used [0x04800000, 0x04c04e20, 0x04c50000)
  from space 512K,   0% used [0x04c50000, 0x04c50000, 0x04cd0000)
  to   space 512K,   0% used [0x04cd0000, 0x04cd0000, 0x04d50000)
 tenured generation   total 10944K, used 0K [0x09d50000, 0x0a800000, 0x14800000)
   the space 10944K,   0% used [0x09d50000, 0x09d50000, 0x09d50200, 0x0a800000)
 Metaspace       used 2295K, capacity 2402K, committed 2496K, reserved 4480K

Card table byte_map: [0x14800000,0x14890000] byte_map_base: 0x147dc000

Polling page: 0x007a0000

CodeCache: size=32768Kb used=815Kb max_used=815Kb free=31953Kb
 bounds [0x02760000, 0x02830000, 0x04760000]
 total_blobs=215 nmethods=60 adapters=94
 compilation: enabled

Compilation events (10 events):
Event: 0.773 Thread 0x154bec00   56   !         sun.misc.URLClassPath$JarLoader::ensureOpen (36 bytes)
Event: 0.773 Thread 0x154bec00 nmethod 56 0x02828608 code [0x02828720, 0x0282887c]
Event: 0.773 Thread 0x154bec00   57   !         java.util.zip.ZipFile::getEntry (101 bytes)
Event: 0.774 Thread 0x154bec00 nmethod 57 0x02828988 code [0x02828af0, 0x02828f28]
Event: 0.774 Thread 0x154bec00   58             java.lang.String::indexOf (7 bytes)
Event: 0.774 Thread 0x154bec00 nmethod 58 0x02829208 code [0x02829300, 0x028293ac]
Event: 0.784 Thread 0x154bec00   59             sun.nio.cs.ext.DoubleByte$Encoder::encode (161 bytes)
Event: 0.785 Thread 0x154bec00 nmethod 59 0x02829408 code [0x02829530, 0x028298d0]
Event: 2.626 Thread 0x154bec00   60             java.lang.String::getChars (62 bytes)
Event: 2.626 Thread 0x154bec00 nmethod 60 0x02829e88 code [0x02829fe0, 0x0282a230]

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (6 events):
Event: 0.138 Thread 0x008ae400 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x04806ea8) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u202\12323\hotspot\src\shar
Event: 0.138 Thread 0x008ae400 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x04807178) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u202\12323\hotspot\src\share\vm\prims\jni.cpp
Event: 0.760 Thread 0x008ae400 Exception <a 'java/security/PrivilegedActionException'> (0x04b090e0) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u202\12323\hotspot\src\share\vm\prims\jvm.cpp, line 1502]
Event: 0.760 Thread 0x008ae400 Exception <a 'java/security/PrivilegedActionException'> (0x04b092e0) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u202\12323\hotspot\src\share\vm\prims\jvm.cpp, line 1502]
Event: 0.764 Thread 0x008ae400 Exception <a 'java/security/PrivilegedActionException'> (0x04b23598) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u202\12323\hotspot\src\share\vm\prims\jvm.cpp, line 1502]
Event: 0.764 Thread 0x008ae400 Exception <a 'java/security/PrivilegedActionException'> (0x04b23798) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u202\12323\hotspot\src\share\vm\prims\jvm.cpp, line 1502]

Events (10 events):
Event: 2.626 loading class com/cczhang/dm/xnx3/bean/ActiveBean
Event: 2.626 loading class com/cczhang/dm/xnx3/bean/ActiveBean done
Event: 2.627 loading class com/jacob/com/VariantUtilities
Event: 2.627 loading class com/jacob/com/VariantUtilities done
Event: 2.628 loading class java/math/BigDecimal
Event: 2.629 loading class java/math/BigDecimal done
Event: 2.629 loading class java/math/BigInteger
Event: 2.629 loading class java/math/BigInteger done
Event: 2.630 loading class java/math/BigDecimal$1
Event: 2.630 loading class java/math/BigDecimal$1 done


Dynamic libraries:
0x007b0000 - 0x007e3000     C:\Program Files (x86)\Java\jdk1.8.0_202\bin\java.exe
0x77450000 - 0x775ea000     C:\WINDOWS\SYSTEM32\ntdll.dll
0x76990000 - 0x76a70000     C:\WINDOWS\System32\KERNEL32.DLL
0x75f40000 - 0x7613e000     C:\WINDOWS\System32\KERNELBASE.dll
0x70b90000 - 0x70c2f000     C:\WINDOWS\SYSTEM32\apphelp.dll
0x75680000 - 0x756f9000     C:\WINDOWS\System32\ADVAPI32.dll
0x75760000 - 0x7581f000     C:\WINDOWS\System32\msvcrt.dll
0x76d10000 - 0x76d86000     C:\WINDOWS\System32\sechost.dll
0x768d0000 - 0x7698b000     C:\WINDOWS\System32\RPCRT4.dll
0x74c20000 - 0x74c40000     C:\WINDOWS\System32\SspiCli.dll
0x74c10000 - 0x74c1a000     C:\WINDOWS\System32\CRYPTBASE.dll
0x75a70000 - 0x75acf000     C:\WINDOWS\System32\bcryptPrimitives.dll
0x75350000 - 0x754e7000     C:\WINDOWS\System32\USER32.dll
0x76bb0000 - 0x76bc7000     C:\WINDOWS\System32\win32u.dll
0x75c90000 - 0x75cb1000     C:\WINDOWS\System32\GDI32.dll
0x75b30000 - 0x75c8b000     C:\WINDOWS\System32\gdi32full.dll
0x75820000 - 0x7589c000     C:\WINDOWS\System32\msvcp_win.dll
0x74c40000 - 0x74d5f000     C:\WINDOWS\System32\ucrtbase.dll
0x71110000 - 0x7131f000     C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.959_none_2e74f29627888bc1\COMCTL32.dll
0x75cc0000 - 0x75f35000     C:\WINDOWS\System32\combase.dll
0x75b00000 - 0x75b25000     C:\WINDOWS\System32\IMM32.DLL
0x731d0000 - 0x7328f000     C:\Program Files (x86)\Java\jdk1.8.0_202\jre\bin\msvcr100.dll
0x72df0000 - 0x731c5000     C:\Program Files (x86)\Java\jdk1.8.0_202\jre\bin\client\jvm.dll
0x76ba0000 - 0x76ba6000     C:\WINDOWS\System32\PSAPI.DLL
0x6aab0000 - 0x6aab8000     C:\WINDOWS\SYSTEM32\WSOCK32.dll
0x75700000 - 0x7575e000     C:\WINDOWS\System32\WS2_32.dll
0x747a0000 - 0x747c4000     C:\WINDOWS\SYSTEM32\WINMM.dll
0x74c00000 - 0x74c08000     C:\WINDOWS\SYSTEM32\VERSION.dll
0x74770000 - 0x74793000     C:\WINDOWS\SYSTEM32\WINMMBASE.dll
0x76f00000 - 0x76f3b000     C:\WINDOWS\System32\cfgmgr32.dll
0x73460000 - 0x7346c000     C:\Program Files (x86)\Java\jdk1.8.0_202\jre\bin\verify.dll
0x72dc0000 - 0x72de1000     C:\Program Files (x86)\Java\jdk1.8.0_202\jre\bin\java.dll
0x72d90000 - 0x72dbb000     C:\Program Files (x86)\Java\jdk1.8.0_202\jre\bin\jdwp.dll
0x72d80000 - 0x72d87000     C:\Program Files (x86)\Java\jdk1.8.0_202\jre\bin\npt.dll
0x72d60000 - 0x72d80000     C:\Program Files (x86)\Java\jdk1.8.0_202\jre\bin\instrument.dll
0x72d40000 - 0x72d54000     C:\Program Files (x86)\Java\jdk1.8.0_202\jre\bin\zip.dll
0x762a0000 - 0x76819000     C:\WINDOWS\System32\SHELL32.dll
0x759d0000 - 0x75a54000     C:\WINDOWS\System32\shcore.dll
0x74d60000 - 0x75326000     C:\WINDOWS\System32\windows.storage.dll
0x75ad0000 - 0x75aeb000     C:\WINDOWS\System32\profapi.dll
0x773f0000 - 0x77433000     C:\WINDOWS\System32\powrprof.dll
0x758c0000 - 0x758cd000     C:\WINDOWS\System32\UMPDC.dll
0x76a70000 - 0x76ab4000     C:\WINDOWS\System32\shlwapi.dll
0x768c0000 - 0x768cf000     C:\WINDOWS\System32\kernel.appcore.dll
0x76ac0000 - 0x76ad3000     C:\WINDOWS\System32\cryptsp.dll
0x72d30000 - 0x72d38000     C:\Program Files (x86)\Java\jdk1.8.0_202\jre\bin\dt_socket.dll
0x734e0000 - 0x73532000     C:\WINDOWS\system32\mswsock.dll
0x72d00000 - 0x72d2f000     C:\Program Files (x86)\Java\jdk1.8.0_202\bin\jacob-1.19-x86.dll
0x76140000 - 0x76237000     C:\WINDOWS\System32\ole32.dll
0x76820000 - 0x768b2000     C:\WINDOWS\System32\OLEAUT32.dll
0x754f0000 - 0x75570000     C:\WINDOWS\System32\clbcatq.dll
0x15980000 - 0x15e93000     C:\Windows\System32\dm.dll
0x76c60000 - 0x76d10000     C:\WINDOWS\System32\comdlg32.dll
0x70c30000 - 0x7108b000     C:\Windows\System32\WININET.dll
0x70120000 - 0x7018b000     C:\Windows\System32\WINSPOOL.DRV
0x758a0000 - 0x758b9000     C:\WINDOWS\System32\bcrypt.dll
0x74660000 - 0x74726000     C:\Windows\System32\PROPSYS.dll
0x749f0000 - 0x74a22000     C:\Windows\System32\IPHLPAPI.DLL
0x664b0000 - 0x66538000     C:\WINDOWS\SYSTEM32\sxs.dll
0x73bc0000 - 0x73d4f000     C:\WINDOWS\SYSTEM32\dbghelp.dll

VM Arguments:
jvm_args: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50084,suspend=y,server=n -javaagent:C:\Users\cczhang\AppData\Local\JetBrains\IdeaIC2020.1\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 
java_command: com.cczhang.zx.App
java_class_path (initial): C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\charsets.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\deploy.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\access-bridge-32.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\cldrdata.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\dnsns.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\jaccess.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\jfxrt.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\localedata.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\nashorn.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\sunec.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\sunjce_provider.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\sunmscapi.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\sunpkcs11.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\ext\zipfs.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\javaws.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\jce.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\jfr.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\jfxswt.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\jsse.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\management-agent.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\plugin.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\resources.jar;C:\Program Files (x86)\Java\jdk1.8.0_202\jre\lib\rt.jar;C:\Users\cczhang\IdeaProjects\YYS\out\production\YYS;C:\Users\cczhang\IdeaProjects\YYS\lib\json.jar;C:\Users\cczhang\IdeaProjects\YYS\lib\mail.jar;C:\Users\cczhang\IdeaProjects\YYS\lib\jacob.jar;C:\Users\cczhang\IdeaProjects\YYS\lib\umpush.jar;C:\Users\cczhang\IdeaProjects\YYS\lib\fastdfs.jar;C:\Users\cczhang\IdeaProjects\YYS\lib\jl1.0.1.jar;C:\Users\cczhang\IdeaProjects\YYS\lib\jdom-1.1.jar;C:\Users\cczhang\IdeaProjects\YYS\lib\xnx3-dll.jar;C:\Users\cczhang\IdeaProjects\YYS\lib\lz4-1.3.0.jar;C:\Users\cczh
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:\Program Files (x86)\Java\jdk1.8.0_202\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\cczhang\AppData\Local\Programs\Python\Python38-32;C:\WINDOWS\System32\OpenSSH\;C:\Users\cczhang\.windows-build-tools\python27\;C:\Users\cczhang\AppData\Local\Microsoft\WindowsApps;C:\Users\cczhang\AppData\Roaming\npm;C:\Users\cczhang\AppData\Local\Microsoft\WindowsApps
USERNAME=cczhang
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 13, GenuineIntel

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

OS: Windows 10.0 , 64 bit Build 18362 (10.0.18362.959)

CPU:total 2 (initial active 2) (2 cores per cpu, 1 threads per core) family 6 model 158 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, tsc, tscinvbit, bmi1, bmi2, adx

Memory: 4k page, physical 4193136k(1367048k free), swap 5634928k(2006508k free)

vm_info: Java HotSpot(TM) Client VM (25.202-b08) for windows-x86 JRE (1.8.0_202-b08), built on Dec 15 2018 20:01:43 by "java_re" with MS VC++ 10.0 (VS2010)

time: Tue Jul 28 11:34:38 2020
timezone: 中国标准时间
elapsed time: 2 seconds (0d 0h 0m 2s)

加载中
0
sxgkwei
sxgkwei

你确定有  BindWindows  这个方法命令吗?最好查一下 jacob 支持的方法列表,或者说,它调用的 ms 套件支持的方法列表。如果确定有,然后在去 ms 官网查一下这个命令时,需要的参数列表,看看你的入参对不对。

0
山居剩活
山居剩活
管理员权限启动。 之前用它做识别的时候也遇到绑定失败的,管理员权限启动运行一次就可以了。
0
小赖丶
小赖丶

已解决,注册码返回错误出现的异常

返回顶部
顶部