Problema Grave não consigo resolver

11 respostas
rodolfogs8

Galera tenho uma aplicação que le uma determinada dll e acessa um servidor via esse dll, algo mais ou menos assim so que olha que estranho depois de alguns minutos ou horas depende e relativo o tempo, ele ABORTA simplesmente ABORTA e gera um log nao consigo descobrir qual e essa execção alguem pode me ajudar? tem alguma ideia do que seja? A minha tela some e gerado o log......Help.

vou colocar o log abaixo mas acho que nao adianta muito ne???

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  Internal Error (0xeedfade), pid=2476, tid=1252
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode, sharing)
# Problematic frame:
# C  [kernel32.dll+0x1b09e]
#
# 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 (0x00ccf800):  JavaThread "main" [_thread_in_native, id=1252]

siginfo: ExceptionCode=0xeedfade, ExceptionInformation=0x04425103 0x044e042c 0x04425103 0x04425103 0x00007363 0x0011f938 0x0011f8f8 

Registers:
EAX=0x0011f874, EBX=0x04425103, ECX=0x00000007, EDX=0x00000000
ESP=0x0011f874, EBP=0x0011f8c4, ESI=0x04425103, EDI=0x00007363
EIP=0x7703b09e, EFLAGS=0x00000216

Top of Stack: (sp=0x0011f874)
0x0011f874:   0eedfade 00000001 00000000 7703b09e
0x0011f884:   00000007 04425103 044e042c 04425103
0x0011f894:   04425103 00007363 0011f938 0011f8f8
0x0011f8a4:   0011f8d8 00007363 0001cd94 0001cd94
0x0011f8b4:   0011f8d8 04422293 0448a5cc 0442229b
0x0011f8c4:   0011f938 04425103 0eedfade 00000001
0x0011f8d4:   00000007 0011f8dc 04425103 044e042c
0x0011f8e4:   04425103 04425103 00007363 0011f938 

Instructions: (pc=0x7703b09e)
0x7703b08e:   c9 02 00 83 c4 0c 8d 45 b0 50 ff 15 dc 15 02 77
0x7703b09e:   c9 c2 10 00 89 7d 10 e9 35 3d 01 00 90 90 90 90 


Stack: [0x000d0000,0x00120000),  sp=0x0011f874,  free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [kernel32.dll+0x1b09e]
C  [JCustomOpc.dll+0x5103]
C  [JCustomOpc.dll+0x51da]
J  javafish.clients.opc.JCustomOpc.newInstance(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
J  javafish.clients.opc.JCustomOpc.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
J  javafish.clients.opc.JOpc.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
J  javafish.clients.opc.tela.Testando.getTags()Ljava/util/ArrayList;
J  javafish.clients.opc.tela.Testando.main([Ljava/lang/String;)V
v  ~StubRoutines::call_stub

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  javafish.clients.opc.JCustomOpc.newInstance(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
J  javafish.clients.opc.JCustomOpc.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
J  javafish.clients.opc.JOpc.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
J  javafish.clients.opc.tela.Testando.getTags()Ljava/util/ArrayList;
J  javafish.clients.opc.tela.Testando.main([Ljava/lang/String;)V
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x03785400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2920]
  0x00c97800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3692]
  0x00c97000 JavaThread "AWT-Shutdown" [_thread_blocked, id=4060]
  0x00c96400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2336]
  0x00c00400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3216]
  0x00bfa000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4024]
  0x00bf9800 JavaThread "Attach Listener" daemon [_thread_blocked, id=704]
  0x00bf9400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3116]
  0x00bf4c00 JavaThread "Finalizer" daemon [_thread_blocked, id=3380]
  0x00be8800 JavaThread "Reference Handler" daemon [_thread_blocked, id=1924]
=>0x00ccf800 JavaThread "main" [_thread_in_native, id=1252]

Other Threads:
  0x00bdf800 VMThread [id=3532]
  0x00c01400 WatcherThread [id=3272]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 960K, used 169K [0x24020000, 0x24120000, 0x24500000)
  eden space 896K,  18% used [0x24020000, 0x24049b88, 0x24100000)
  from space 64K,   4% used [0x24100000, 0x24100a60, 0x24110000)
  to   space 64K,   0% used [0x24110000, 0x24110000, 0x24120000)
 tenured generation   total 4096K, used 599K [0x24500000, 0x24900000, 0x28020000)
   the space 4096K,  14% used [0x24500000, 0x24595f68, 0x24596000, 0x24900000)
 compacting perm gen  total 12288K, used 279K [0x28020000, 0x28c20000, 0x2c020000)
   the space 12288K,   2% used [0x28020000, 0x28065dc8, 0x28065e00, 0x28c20000)
    ro space 8192K,  62% used [0x2c020000, 0x2c51f728, 0x2c51f800, 0x2c820000)
    rw space 12288K,  52% used [0x2c820000, 0x2ce61eb8, 0x2ce62000, 0x2d420000)

Dynamic libraries:
0x00400000 - 0x00423000 	C:\Program Files\Java\jre1.6.0_02\bin\javaw.exe
0x774b0000 - 0x775ce000 	C:\Windows\system32\ntdll.dll
0x77020000 - 0x770f8000 	C:\Windows\system32\kernel32.dll
0x76be0000 - 0x76c9f000 	C:\Windows\system32\ADVAPI32.dll
0x77100000 - 0x771c3000 	C:\Windows\system32\RPCRT4.dll
0x75ff0000 - 0x7608e000 	C:\Windows\system32\USER32.dll
0x77640000 - 0x7768b000 	C:\Windows\system32\GDI32.dll
0x77620000 - 0x7763e000 	C:\Windows\system32\IMM32.DLL
0x75de0000 - 0x75ea7000 	C:\Windows\system32\MSCTF.dll
0x75f40000 - 0x75fea000 	C:\Windows\system32\msvcrt.dll
0x77690000 - 0x77699000 	C:\Windows\system32\LPK.DLL
0x76b60000 - 0x76bdd000 	C:\Windows\system32\USP10.dll
0x10000000 - 0x10011000 	C:\Windows\system32\AMINIT.dll
0x7c340000 - 0x7c396000 	C:\Program Files\Java\jre1.6.0_02\bin\msvcr71.dll
0x6d7c0000 - 0x6da09000 	C:\Program Files\Java\jre1.6.0_02\bin\client\jvm.dll
0x743f0000 - 0x74423000 	C:\Windows\system32\WINMM.dll
0x76da0000 - 0x76ee4000 	C:\Windows\system32\ole32.dll
0x76d10000 - 0x76d9c000 	C:\Windows\system32\OLEAUT32.dll
0x743b0000 - 0x743e8000 	C:\Windows\system32\OLEACC.dll
0x75b70000 - 0x75b9c000 	C:\Windows\system32\apphelp.dll
0x6d310000 - 0x6d318000 	C:\Program Files\Java\jre1.6.0_02\bin\hpi.dll
0x75cd0000 - 0x75cd7000 	C:\Windows\system32\PSAPI.DLL
0x6d770000 - 0x6d77c000 	C:\Program Files\Java\jre1.6.0_02\bin\verify.dll
0x6d3b0000 - 0x6d3cf000 	C:\Program Files\Java\jre1.6.0_02\bin\java.dll
0x6d7b0000 - 0x6d7bf000 	C:\Program Files\Java\jre1.6.0_02\bin\zip.dll
0x6d000000 - 0x6d1c3000 	C:\Program Files\Java\jre1.6.0_02\bin\awt.dll
0x731e0000 - 0x73221000 	C:\Windows\system32\WINSPOOL.DRV
0x74cd0000 - 0x74d0f000 	C:\Windows\system32\uxtheme.dll
0x6d2b0000 - 0x6d303000 	C:\Program Files\Java\jre1.6.0_02\bin\fontmanager.dll
0x00d40000 - 0x00d5b000 	C:\Program Files\Stardock\ObjectDock\DockShellHook.dll
0x76090000 - 0x76b5e000 	C:\Windows\system32\shell32.dll
0x75d80000 - 0x75dd5000 	C:\Windows\system32\SHLWAPI.dll
0x74b10000 - 0x74ca4000 	C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100\comctl32.dll
0x6d570000 - 0x6d583000 	C:\Program Files\Java\jre1.6.0_02\bin\net.dll
0x76ca0000 - 0x76ccd000 	C:\Windows\system32\WS2_32.dll
0x76d00000 - 0x76d06000 	C:\Windows\system32\NSI.dll
0x753d0000 - 0x7540b000 	C:\Windows\system32\mswsock.dll
0x75430000 - 0x75436000 	C:\Windows\System32\wship6.dll
0x6d590000 - 0x6d599000 	C:\Program Files\Java\jre1.6.0_02\bin\nio.dll
0x04420000 - 0x0449c000 	C:\Users\ti_rodolfo\Desktop\lib\JCustomOpc.dll
0x75440000 - 0x75448000 	C:\Windows\system32\version.dll
0x73d60000 - 0x73de6000 	C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6000.16386_none_87e0cb09378714f1\comctl32.dll
0x75eb0000 - 0x75f34000 	C:\Windows\system32\CLBCatQ.DLL
0x75160000 - 0x75198000 	C:\Windows\system32\rsaenh.dll
0x55600000 - 0x55635000 	C:\Program Files\Microsoft Firewall Client 2004\FwcWsp.dll
0x750a0000 - 0x750a6000 	C:\Windows\System32\wshtcpip.dll
0x745e0000 - 0x745ef000 	C:\Windows\system32\NLAapi.dll
0x75610000 - 0x75629000 	C:\Windows\system32\IPHLPAPI.DLL
0x755d0000 - 0x75605000 	C:\Windows\system32\dhcpcsvc.DLL
0x75840000 - 0x7586b000 	C:\Windows\system32\DNSAPI.dll
0x75c00000 - 0x75c14000 	C:\Windows\system32\Secur32.dll
0x755c0000 - 0x755c7000 	C:\Windows\system32\WINNSI.DLL
0x755a0000 - 0x755c0000 	C:\Windows\system32\dhcpcsvc6.DLL
0x73ad0000 - 0x73ad8000 	C:\Windows\System32\winrnr.dll
0x775d0000 - 0x77619000 	C:\Windows\system32\WLDAP32.dll
0x739c0000 - 0x739cf000 	C:\Windows\system32\napinsp.dll
0x73980000 - 0x73992000 	C:\Windows\system32\pnrpnsp.dll
0x73c70000 - 0x73c76000 	C:\Windows\system32\rasadhlp.dll
0x03740000 - 0x0375a000 	C:\Windows\system32\opcproxy.dll

VM Arguments:
java_command: C:\Users\ti_rodolfo\Desktop\FechoSimples.jar
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:\orant\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\orant\jdk\bin;C:\Program Files\Java\jdk1.5.0_13\bin
USERNAME=TI_RODOLFO
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 6 Stepping 5, GenuineIntel



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

OS: Windows Vista Build 6000 

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

Memory: 4k page, physical 1013104k(228136k free), swap 2486860k(673672k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0_02-b06) for windows-x86, built on Jul 12 2007 01:16:14 by "java_re" with unknown MS VC++:1310

11 Respostas

T

Isso é alguma coisa que ocorreu dentro do código nativo (DLL).
Você só pode fazer uma das seguintes coisas:

  • Solicitar o suporte do fornecedor dessa DLL;
  • Remover a chamada JNI de seu programa Java e transferi-la para um programa Java separado, que não irá derrubar todo o seu sistema. (Eu sei que isso é pesado, mas esse é o preço que se paga por usar JNI).

(Olhei na Internet e achei um erro parecido com o seu.
http://forum.java.sun.com/thread.jspa?threadID=5188535&messageID=9755017 )

rodolfogs8

Cara adorei esta ideia mas como posso fazer isso, desculpa sou iniciante em java, ó vamos ver se esta correto:

Monto uma aplicação que se comunica com essa dll e monto outra aplicação que se comunica com a aplicação que se comunica com a dll??? kkk tem alguma dica??

Valeu cara…isso ja se tornou um tedio na minha vida nao consigo resolver de forma alguma, da uma força ai por favor?

tks

T

Ainda acho que é melhor ver se o fornecedor da DLL disponibiliza uma correção.

rodolfogs8

Entao mas eu fico meio assim de ser essa dll sabe pq, pq muita gente usa essa dll enao tem problema pode ser o meu codigo tbm, so que cara eu ja tentei de tudo e nadaaaaaaaa nao sei o que fazer…acho que o ideial seria isso mesmo montar dois sistemas um que se comunica com a dll e outro que se comunica com ele o que acha?

T

No log diz que você está usando o Windows Vista. Será que se você rodar seu programa em Windows XP ele roda direito?

rodolfogs8

Ja rodei em xp ele aborta tbm e muito estranho isso cara nao sei o que fazer mais, olha tudo em java que seria um erro e uma exception certo? entao eu tenho que conseguir tratar isso ne? o fodaaaa e que nao consigo achar essa fagulha que escapa…

O fornecedor da dll me falou que a dll foi projetada para plataforma java jdk 1.5 sera que isso tem algo relacionado?

o que acha?

T

Tente; tentar não deve ser o seu problema.

O

Alias, eram duas das tres dicas que eu já tinha dado na outra thread que voce criou a uns dois meses atras sobre este problema:
http://www.guj.com.br/posts/list/67439.java#354847

oyama:
Chutes de soluções:

  • Verificar o hardware da máquina, principalmente a memória (rode um “checador de memória”).
  • Verificar com o fornecedor do JOPC se o mesmo é compatível com Windows Vista e para que versão de JDK é homologada.
  • Recomendo não usar JDK 6 para esta sua aplicação.
rodolfogs8

Eu sei cara mas e que ja fiz uma porcao de coisas desse tipo e nao adianta tipo ja estou desesperado…kkkkk

O

Você está pagando alguma licença sobre este componente? Se sim, e o suporte?
Ter uma postura profissional neste caso é o mais indicado. Ficar desesperado não vai adiantar nada (principalmente que já faz dois meses que voce tem este problema). Como eu e o thingol dissemos, o problema é da DLL. Cobre o fornecedor por que não está rodando no seu ambiente. Qualquer tentativa nossa de dar uma solução vai ser chute…

rodolfogs8

Entrei em contato com o Fornecedor e veja o que ele respondeu.

Hello,

In first case, we have to exlude the hardware and third party software dependencies. The Opc library was designed and tested for Java 1.5 and the windows XP / 2000, in addition, there is some next problems with two cores CPUs in the multithreads mode.

FIRST, please try your application with Java 1.5, WinXP, one core CPU. If the application will be work correctly all time, the problem will be with new hardware and software. If it will be bad, the problem is in the library.

Fischer

Criado 22 de outubro de 2007
Ultima resposta 22 de out. de 2007
Respostas 11
Participantes 3