Olá.
Estou tentando realizar a criação do registro EAD para hologar nosso produto.
Estou tentando usar uma ddl da bematech que promete fazer td isso com apenas umas chamadas de metodos, até ai td bem,
ta td certinho td bunitinho e funcionando em relação a conversa entre java e Dll’s.
O problema esta quando eu chamo o metodo GenerateEAD, que esta na dll e tal, o que acontece eh que ele executa e me retorna o seguinte erro:
Segue o log.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x19f12975, pid=2084, tid=4580
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode windows-x86 )
# Problematic frame:
# C [LIBEAY32.dll+0x22975]
#
# 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 (0x18b18c00): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4580, stack(0x190b0000,0x19100000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000004
Registers:
EAX=0x00000000, EBX=0x00000000, ECX=0x00000000, EDX=0x00000000
ESP=0x190fdf5c, EBP=0x1a5cbdd8, ESI=0x1a5c1af0, EDI=0x1a5cbd78
EIP=0x19f12975, EFLAGS=0x00010212
Register to memory mapping:
EAX=0x00000000
0x00000000 is pointing to unknown location
EBX=0x00000000
0x00000000 is pointing to unknown location
ECX=0x00000000
0x00000000 is pointing to unknown location
EDX=0x00000000
0x00000000 is pointing to unknown location
ESP=0x190fdf5c
0x190fdf5c is pointing into the stack for thread: 0x18b18c00
"AWT-EventQueue-0" prio=6 tid=0x18b18c00 nid=0x11e4 runnable [0x190fe000]
java.lang.Thread.State: RUNNABLE
EBP=0x1a5cbdd8
0x1a5cbdd8 is pointing to unknown location
ESI=0x1a5c1af0
0x1a5c1af0 is pointing to unknown location
EDI=0x1a5cbd78
0x1a5cbd78 is pointing to unknown location
Top of Stack: (sp=0x190fdf5c)
0x190fdf5c: 1a3f99e8 193c218e 00000000 00000000
0x190fdf6c: 00000001 1a5cbcd8 1a3f99e8 1a5cbcd8
0x190fdf7c: 1a5cbdd8 1a5cbd78 1a3f99e8 1a5cbdd8
0x190fdf8c: 1a5cbd98 1a5cbd58 1a5cbd78 1a5cbcb8
0x190fdf9c: 1a5cbd58 1976acd0 190fe358 00000029
0x190fdfac: 19470bd8 19638c90 1a5cbd58 1a5cbd98
0x190fdfbc: 1a5cbcf8 1a5cbcb8 00000080 1a5cbcd8
0x190fdfcc: 1a5cbd18 00000000 00000000 30384343
Instructions: (pc=0x19f12975)
0x19f12965: 83 c4 04 5f 8b c6 5e 5b c3 cc cc 53 8b 5c 24 08
0x19f12975: 8b 43 04 56 57 6a 4a 8d 0c c5 02 00 00 00 68 04
Stack: [0x190b0000,0x19100000], sp=0x190fdf5c, free space=311k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [LIBEAY32.dll+0x22975]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j bemajava.Bematech.generateEAD(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lbemajava/BemaString;I)I+0
j br.com.ns2e.pdv.fiscal.impressoras.ImpressoraBematech.generateEAD(Lbr/com/ns2e/pdv/modelo/RegistroEAD;)V+49
j br.com.ns2e.pdv.fiscal.impressoras.ImpressoraBematech.obterMemoriaFiscalPorReducao(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V+75
j br.com.ns2e.pdv.visao.MenuFiscal.btnLMFCActionPerformed(Ljava/awt/event/ActionEvent;)V+523
j br.com.ns2e.pdv.visao.MenuFiscal.access$700(Lbr/com/ns2e/pdv/visao/MenuFiscal;Ljava/awt/event/ActionEvent;)V+2
j br.com.ns2e.pdv.visao.MenuFiscal$17.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+84
j javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+35
j javax.swing.DefaultButtonModel.setPressed(Z)V+117
j javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35
j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64
j javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
j java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+566
J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V
j java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+139
j java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50
J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
j java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
j java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+41
J java.awt.EventQueue$1.run()Ljava/lang/Object;
v ~StubRoutines::call_stub
J java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
J java.security.AccessControlContext$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;
j java.security.AccessControlContext$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+6
j java.awt.EventQueue$2.run()Ljava/lang/Void;+11
j java.awt.EventQueue$2.run()Ljava/lang/Object;+1
v ~StubRoutines::call_stub
J java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
J java.security.AccessControlContext$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;
j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+73
J java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z
j java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+30
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x18b69000 JavaThread "TimerQueue" daemon [_thread_blocked, id=4116, stack(0x196d0000,0x19720000)]
0x0080a000 JavaThread "DestroyJavaVM" [_thread_blocked, id=4292, stack(0x003b0000,0x00400000)]
=>0x18b18c00 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4580, stack(0x190b0000,0x19100000)]
0x18b18400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=5920, stack(0x19020000,0x19070000)]
0x18b18000 JavaThread "AWT-Shutdown" [_thread_blocked, id=5972, stack(0x18f20000,0x18f70000)]
0x18b15800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=5992, stack(0x18cb0000,0x18d00000)]
0x004fe400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4600, stack(0x18970000,0x189c0000)]
0x004f4c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2560, stack(0x188e0000,0x18930000)]
0x004f3c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=5228, stack(0x18850000,0x188a0000)]
0x004f0c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5116, stack(0x187c0000,0x18810000)]
0x004c3800 JavaThread "Finalizer" daemon [_thread_blocked, id=5160, stack(0x18730000,0x18780000)]
0x004bf000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5232, stack(0x186a0000,0x186f0000)]
Other Threads:
0x004ba400 VMThread [stack: 0x18610000,0x18660000] [id=5168]
0x00519c00 WatcherThread [stack: 0x18a00000,0x18a50000] [id=5628]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 8960K, used 3429K [0x044c0000, 0x04e70000, 0x09a10000)
eden space 8000K, 30% used [0x044c0000, 0x047294c8, 0x04c90000)
from space 960K, 100% used [0x04c90000, 0x04d80000, 0x04d80000)
to space 960K, 0% used [0x04d80000, 0x04d80000, 0x04e70000)
tenured generation total 19764K, used 18300K [0x09a10000, 0x0ad5d000, 0x144c0000)
the space 19764K, 92% used [0x09a10000, 0x0abef0c0, 0x0abef200, 0x0ad5d000)
compacting perm gen total 14592K, used 14440K [0x144c0000, 0x15300000, 0x184c0000)
the space 14592K, 98% used [0x144c0000, 0x152da190, 0x152da200, 0x15300000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00424000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\java.exe
0x772b0000 - 0x77430000 C:\Windows\SysWOW64\ntdll.dll
0x75ca0000 - 0x75db0000 C:\Windows\syswow64\kernel32.dll
0x76560000 - 0x765a6000 C:\Windows\syswow64\KERNELBASE.dll
0x765b0000 - 0x76650000 C:\Windows\syswow64\ADVAPI32.dll
0x75880000 - 0x7592c000 C:\Windows\syswow64\msvcrt.dll
0x76280000 - 0x76299000 C:\Windows\SysWOW64\sechost.dll
0x762b0000 - 0x763a0000 C:\Windows\syswow64\RPCRT4.dll
0x749a0000 - 0x74a00000 C:\Windows\syswow64\SspiCli.dll
0x74990000 - 0x7499c000 C:\Windows\syswow64\CRYPTBASE.dll
0x7c340000 - 0x7c396000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\msvcr71.dll
0x6d8a0000 - 0x6db46000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\client\jvm.dll
0x766b0000 - 0x767b0000 C:\Windows\syswow64\USER32.dll
0x759c0000 - 0x75a50000 C:\Windows\syswow64\GDI32.dll
0x762a0000 - 0x762aa000 C:\Windows\syswow64\LPK.dll
0x75a50000 - 0x75aed000 C:\Windows\syswow64\USP10.dll
0x70b20000 - 0x70b52000 C:\Windows\system32\WINMM.dll
0x76650000 - 0x766b0000 C:\Windows\system32\IMM32.DLL
0x76000000 - 0x760cc000 C:\Windows\syswow64\MSCTF.dll
0x73010000 - 0x7305c000 C:\Windows\system32\apphelp.dll
0x6d850000 - 0x6d85c000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\verify.dll
0x6d3d0000 - 0x6d3ef000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\java.dll
0x6d330000 - 0x6d338000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\hpi.dll
0x74a50000 - 0x74a55000 C:\Windows\syswow64\PSAPI.DLL
0x6d890000 - 0x6d89f000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\zip.dll
0x6d0b0000 - 0x6d1fa000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\awt.dll
0x73580000 - 0x735d1000 C:\Windows\system32\WINSPOOL.DRV
0x75db0000 - 0x75f0c000 C:\Windows\syswow64\ole32.dll
0x71590000 - 0x7172e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll
0x76220000 - 0x76277000 C:\Windows\syswow64\SHLWAPI.dll
0x74800000 - 0x74813000 C:\Windows\system32\DWMAPI.DLL
0x74780000 - 0x74800000 C:\Windows\system32\uxtheme.dll
0x6d2e0000 - 0x6d32f000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\fontmanager.dll
0x74c30000 - 0x7587a000 C:\Windows\syswow64\shell32.dll
0x6d6b0000 - 0x6d6c3000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\net.dll
0x760d0000 - 0x76105000 C:\Windows\syswow64\WS2_32.dll
0x75f10000 - 0x75f16000 C:\Windows\syswow64\NSI.dll
0x72d30000 - 0x72d6c000 C:\Windows\system32\mswsock.dll
0x72d10000 - 0x72d16000 C:\Windows\System32\wship6.dll
0x6d6d0000 - 0x6d6d9000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\nio.dll
0x6d4f0000 - 0x6d515000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\jpeg.dll
0x6d250000 - 0x6d273000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\dcpr.dll
0x767b0000 - 0x7683f000 C:\Windows\syswow64\OLEAUT32.DLL
0x711f0000 - 0x71200000 C:\Windows\system32\NLAapi.dll
0x711e0000 - 0x711f0000 C:\Windows\system32\napinsp.dll
0x711c0000 - 0x711d2000 C:\Windows\system32\pnrpnsp.dll
0x72ce0000 - 0x72d07000 C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
0x72c90000 - 0x72cd4000 C:\Windows\system32\DNSAPI.dll
0x711b0000 - 0x711b8000 C:\Windows\System32\winrnr.dll
0x72d20000 - 0x72d25000 C:\Windows\System32\wshtcpip.dll
0x72c70000 - 0x72c8c000 C:\Windows\system32\IPHLPAPI.DLL
0x72c60000 - 0x72c67000 C:\Windows\system32\WINNSI.DLL
0x72c50000 - 0x72c56000 C:\Windows\system32\rasadhlp.dll
0x72c10000 - 0x72c48000 C:\Windows\System32\fwpuclnt.dll
0x1a280000 - 0x1a3df000 C:\ns2e\sistemas\comercio\principal\fontes\pdv\visao\BemaFI32.dll
0x74a90000 - 0x74c2d000 C:\Windows\syswow64\SETUPAPI.dll
0x76840000 - 0x76867000 C:\Windows\syswow64\CFGMGR32.dll
0x74a00000 - 0x74a12000 C:\Windows\syswow64\DEVOBJ.dll
0x72200000 - 0x72209000 C:\Windows\system32\VERSION.dll
0x71f90000 - 0x71f9d000 C:\Windows\system32\wtsapi32.dll
0x19230000 - 0x19259000 C:\Windows\system32\WINSTA.dll
0x72dc0000 - 0x72dd6000 C:\Windows\system32\CRYPTSP.dll
0x72d80000 - 0x72dbb000 C:\Windows\system32\rsaenh.dll
0x72ab0000 - 0x72ac7000 C:\Windows\system32\USERENV.dll
0x72f40000 - 0x72f4b000 C:\Windows\system32\profapi.dll
0x193c0000 - 0x193e9000 C:\ns2e\sistemas\comercio\principal\fontes\pdv\visao\sign_bema.dll
0x19ef0000 - 0x19fea000 C:\Program Files (x86)\Java\jdk1.6.0_24\jre\bin\LIBEAY32.dll
0x73110000 - 0x73117000 C:\Windows\system32\WSOCK32.dll
0x73070000 - 0x7310b000 C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCR80.dll
VM Arguments:
jvm_args: -Xbootclasspath/p:C:\Program Files (x86)\Java\jdk1.6.0_24\jre\lib\javaws.jar -Dfile.encoding=UTF-8 -Djava.security.policy=applet.policy
java_command: br.com.ns2e.pdv.visao.Main
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_24
JRE_HOME=C:\Program Files (x86)\Java\jdk1.6.0_24\jre
CLASSPATH=C:\Users\Dell001\Documents\bematek\bemafi32\
PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Dell\Dell Data Protection\Access\Advanced\Wave\Gemalto\Access Client\v5\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Tesseract-OCR;C:\Program Files (x86)\Tesseract-OCR\training;
USERNAME=Dell001
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 Build 7601 Service Pack 1
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 4091544k(2056648k free), swap 8181240k(5985600k free)
vm_info: Java HotSpot(TM) Client VM (19.1-b02) for windows-x86 JRE (1.6.0_24-b07), built on Feb 2 2011 17:44:41 by "java_re" with MS VC++ 7.1 (VS2003)
time: Fri Jul 15 14:25:29 2011
elapsed time: 87 seconds
isso que ta acabando com a brincadeira.
Se alguem souber como resolver ou tiver algo em java para eu nao depender de dll’s de terceiros eu ficaria mt agradecido.