Ir para conteúdo
  • Cadastre-se

dev botao

  • Este tópico foi criado há 2865 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

Postado

Bom dia amigos, estou implementando o ACBrIBGE no jACBrFramework, eu executo o processo de busca do município por código  e etc mas quando vou pegar o item na lista dos municipio eu recebo um erro, vou mostrar como estou efetuando o processo ai talvez pelo modelo que é implementado em Delphi alguem possa verificar se estou pulando alguma parte em java :/

A lista de cidades fica preenchida exemplo com o código ela mostra que existe uma cidade na lista mas quando vou buscar o item pelo metodo IBGE_Cidades_GetItem da o erro.

 

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package jACBrFramework.ibge;

import com.sun.jna.ptr.IntByReference;
import jACBrFramework.ACBrClass;
import jACBrFramework.ACBrEventListener;
import jACBrFramework.ACBrException;
import jACBrFramework.interop.ACBrIBGEInterop;
import jACBrFramework.interop.ACBrIBGEInterop.CidadeRec;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;


public class ACBrIBGE extends ACBrClass {

    private ACBrIBGECidade[] cidades;


    public ACBrIBGE() throws ACBrException {

    }

    /**
     * Cria um novo objeto com base no charset recebido.
     *
     * @param pCharset charset utilizado na conversao para geracao do sintegra.
     */
    public ACBrIBGE(Charset pCharset) throws ACBrException {
        this();
        setCustomCharset(pCharset);
    }

    public void BuscarPorCodigo(int codigo) throws ACBrException {
        cidades = null;
        int ret = ACBrIBGEInterop.INSTANCE.IBGE_BuscarPorCodigo(getHandle(), codigo);
        checkResult(ret);
    }

    public void BuscarPorNome(String nome, String uf, Boolean exata) throws ACBrException {
        cidades = null;
        int ret = ACBrIBGEInterop.INSTANCE.IBGE_BuscarPorNome(getHandle(), nome, uf, exata);
        checkResult(ret);
    }

    private void CarregaCidades() throws ACBrException {
        int count = ACBrIBGEInterop.INSTANCE.IBGE_Cidades_GetCount(getHandle());
        checkResult(count);
        cidades = new ACBrIBGECidade[count];
        for (int i = 0; i < count; i++) {
            CidadeRec cidadeRec = new ACBrIBGEInterop.CidadeRec();
            int ret = ACBrIBGEInterop.INSTANCE.IBGE_Cidades_GetItem(getHandle(), cidadeRec,i);
            checkResult(ret);

            ACBrIBGECidade cidade = new ACBrIBGECidade();
            
            cidade.setMunicipio(fromUTF8(cidadeRec.Municipio));
            cidade.setCodMunicio(cidadeRec.CodMunicio);
            cidade.setUF(fromUTF8(cidadeRec.UF));
            cidade.setCodUF(cidadeRec.CodUF);
            cidade.setArea(cidadeRec.Area);
            cidades[i] = cidade;

        }
    }

    @Override
    protected void onInitialize() throws ACBrException {
        IntByReference handle = new IntByReference();
        int ret = ACBrIBGEInterop.INSTANCE.IBGE_Create(handle);
        checkResult(ret);
        setHandle(handle.getValue());
    }

    /**
     * Finaliza a comunicacao com a acbr.
     *
     * @throws ACBrException excecao acionada ao finalizar a comunicacao.
     */
    @Override
    protected void onFinalize() throws ACBrException {
        if (getHandle() != 0) {
            int ret = ACBrIBGEInterop.INSTANCE.IBGE_Destroy(getHandle());
            checkResult(ret);
            setHandle(0);
        }
    }

    public void addOnBuscaEfetuada(ACBrEventListener<BuscaEfetuadaEventObject> pListener) {
        if (!hasListeners("onBuscaEfetuada")) {
            ACBrIBGEInterop.INSTANCE.IBGE_SetOnBuscaEfetuada(getHandle(), new ACBrIBGEInterop.OnBuscaEfetuadaCallback() {
                @Override
                public void invoke() {
                    onBuscaEfetuada();
                }
            });
        }

        //addListener("onLePeso", pListener);
    }

    /**
     * Remove o listener associado.
     *
     * @param pListener
     */
    public void removeOnBuscaEfetuada(ACBrEventListener<BuscaEfetuadaEventObject> pListener) {
        removeListener("onBuscaEfetuada", pListener);
        if (!hasListeners("onBuscaEfetuada")) {
            ACBrIBGEInterop.INSTANCE.IBGE_SetOnBuscaEfetuada(getHandle(), null);
        }
    }

    /**
     * Leitura o codigo de barras.
     *
     * @return
     */
    public void onBuscaEfetuada() {
        BuscaEfetuadaEventObject e = new BuscaEfetuadaEventObject(this);
        notifyListeners("onBuscaEfetuada", e);
    }

    @Override
    public void checkResult(int pResult) throws ACBrException {
        switch (pResult) {
            case -1: {
                String lMessage;
                final int LEN = 1024;
                ByteBuffer buffer = ByteBuffer.allocate(LEN);
                int ret = ACBrIBGEInterop.INSTANCE.IBGE_GetUltimoErro(getHandle(), buffer, LEN);
                lMessage = fromUTF8(buffer, ret);
                throw new ACBrException(lMessage);
            }
            case -2: {
                throw new ACBrException("ACBr IBGE não inicializado.");
            }
        }
    }

    public ACBrIBGECidade[] getCidades() {
        if (cidades == null) {
            try {
                CarregaCidades();
            } catch (ACBrException ex) {
                ex.printStackTrace();
            }
        }
        return cidades;
    }

    public void setCidades(ACBrIBGECidade[] cidades) {
        this.cidades = cidades;
    }

}
      
      //Classe de evento sem implementação
      
      package jACBrFramework.ibge;

import java.util.EventObject;

/**
 * Evento acionado para leitura de dados.
 * 
 * @author Jose Mauro
 * @version Criado em: 26/05/2014 16:16:58, revisao: $Id: LeCodigoEventObject.java 6912 2014-05-26 20:07:28Z jmsandy $
 */
public class BuscaEfetuadaEventObject extends EventObject {
    
    // <editor-fold defaultstate="collapsed" desc="Constants">
    private static final long serialVersionUID = -982939358125089587L;
    // </editor-fold>
    // <editor-fold defaultstate="collapsed" desc="Attributes">
    // </editor-fold>
    //<editor-fold defaultstate="collapsed" desc="Constructor">
    public BuscaEfetuadaEventObject(Object pSource) {
        super(pSource);
    }
    // </editor-fold>
    // <editor-fold defaultstate="collapsed" desc="Getters - Setters">
    // </editor-fold>
 
}

erro que recebo

 

run:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1608cbc1, pid=4648, tid=0x00000544
#
# JRE version: Java(TM) SE Runtime Environment (8.0_101-b13) (build 1.8.0_101-b13)
# Java VM: Java HotSpot(TM) Client VM (25.101-b13 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [ACBrFramework32.dll+0x7cbc1]
#
# 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:\ACBrFramework\jACBrFramework\jACBrFramework\hs_err_pid4648.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.
#
Java Result: 1
BUILD SUCCESSFUL (total time: 4 seconds)

Willian Resplandes Matias

Skype: willian.matias.frialto

  • Consultores
Postado

Não tenho experiência no Java. Talvez um Rafael possa ajudar :).

Ainda assim, o arquivo citado (C:\ACBrFramework\jACBrFramework\jACBrFramework\hs_err_pid4648.log) não tem nenhuma informação util?

Talvez CallStack|StackTrace?

[]'s

Consultor SAC ACBr

Elton
Profissionalize o ACBr na sua empresa, conheça o ACBr Pro.

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Um engenheiro de Controle de Qualidade(QA) entra num bar. Pede uma cerveja. Pede zero cervejas.
Pede 99999999 cervejas. Pede -1 cervejas. Pede um jacaré. Pede asdfdhklçkh.
Postado

Tem essas informações :/

 

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1622cbc1, pid=796, tid=0x00001f58
#
# JRE version: Java(TM) SE Runtime Environment (8.0_101-b13) (build 1.8.0_101-b13)
# Java VM: Java HotSpot(TM) Client VM (25.101-b13 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [ACBrFramework32.dll+0x7cbc1]
#
# 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 (0x0025c400):  JavaThread "main" [_thread_in_native, id=8024, stack(0x01db0000,0x01e00000)]

siginfo: ExceptionCode=0xc0000005, writing address 0x00000034

Registers:
EAX=0x004deaf6, EBX=0x00000000, ECX=0x00000032, EDX=0x00000000
ESP=0x01dff0ac, EBP=0x01dff10c, ESI=0x00000001, EDI=0x01dff894
EIP=0x1622cbc1, EFLAGS=0x00210246

Top of Stack: (sp=0x01dff0ac)
0x01dff0ac:   00000000 01dff208 01dff104 002dd0c4
0x01dff0bc:   01dff160 01dff290 00000004 00000080
0x01dff0cc:   002d0080 00000000 00000001 00000000
0x01dff0dc:   01dff22c 00000000 00000001 01dff894
0x01dff0ec:   01dff10c 01dff0b0 1622cb6e 01dff0e0
0x01dff0fc:   00000000 00000001 00568af0 002ddc01
0x01dff10c:   01dff168 002ddc25 00580048 00000000
0x01dff11c:   00000000 00000000 00000000 00000000 

Instructions: (pc=0x1622cbc1)
0x1622cba1:   bb dc 07 00 89 45 f8 8b 50 18 8b 45 0c b9 32 00
0x1622cbb1:   00 00 e8 e8 f4 02 00 8b 55 0c 8b 45 f8 8b 40 10
0x1622cbc1:   89 42 34 8b 45 f8 8b 50 1c 8b 45 0c 83 c0 38 b9
0x1622cbd1:   02 00 00 00 e8 c6 f4 02 00 8b 45 f8 8b 4d 0c 8b 


Register to memory mapping:

EAX=0x004deaf6 is an unknown value
EBX=0x00000000 is an unknown value
ECX=0x00000032 is an unknown value
EDX=0x00000000 is an unknown value
ESP=0x01dff0ac is pointing into the stack for thread: 0x0025c400
EBP=0x01dff10c is pointing into the stack for thread: 0x0025c400
ESI=0x00000001 is an unknown value
EDI=0x01dff894 is pointing into the stack for thread: 0x0025c400


Stack: [0x01db0000,0x01e00000],  sp=0x01dff0ac,  free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [ACBrFramework32.dll+0x7cbc1]
C  [jna7309367887470345334.dll+0xdc25]
C  [jna7309367887470345334.dll+0xd546]
C  [jna7309367887470345334.dll+0x2e5e]
C  [jna7309367887470345334.dll+0x54ce]
j  com.sun.jna.Native.invokeInt(JI[Ljava/lang/Object;)I+0
j  com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;Z)Ljava/lang/Object;+333
j  com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+214
j  com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+341
j  com.sun.jna.Native$4.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+21
j  com.sun.proxy.$Proxy0.IBGE_Cidades_GetItem(ILjACBrFramework/interop/ACBrIBGEInterop$CidadeRec;I)I+30
j  jACBrFramework.ibge.ACBrIBGE.CarregaCidades()V+50
j  jACBrFramework.ibge.ACBrIBGE.getCidades()[LjACBrFramework/ibge/ACBrIBGECidade;+8
j  jACBrFramework.Test.ProgramTestIBGE.main([Ljava/lang/String;)V+15
v  ~StubRoutines::call_stub
V  [jvm.dll+0x15a2e5]
V  [jvm.dll+0x21ff6e]
V  [jvm.dll+0x15a37e]
V  [jvm.dll+0xdbf47]
V  [jvm.dll+0xe44df]
C  [java.exe+0x229e]
C  [java.exe+0xaeaf]
C  [java.exe+0xaf39]
C  [kernel32.dll+0x1336a]
C  [ntdll.dll+0x39902]
C  [ntdll.dll+0x398d5]
C  0x00000000

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.sun.jna.Native.invokeInt(JI[Ljava/lang/Object;)I+0
j  com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;Z)Ljava/lang/Object;+333
j  com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+214
j  com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+341
j  com.sun.jna.Native$4.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+21
j  com.sun.proxy.$Proxy0.IBGE_Cidades_GetItem(ILjACBrFramework/interop/ACBrIBGEInterop$CidadeRec;I)I+30
j  jACBrFramework.ibge.ACBrIBGE.CarregaCidades()V+50
j  jACBrFramework.ibge.ACBrIBGE.getCidades()[LjACBrFramework/ibge/ACBrIBGECidade;+8
j  jACBrFramework.Test.ProgramTestIBGE.main([Ljava/lang/String;)V+15
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x004af000 JavaThread "Service Thread" daemon [_thread_blocked, id=7568, stack(0x159b0000,0x15a00000)]
  0x0048f000 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=8036, stack(0x15780000,0x157d0000)]
  0x0048dc00 JavaThread "Attach Listener" daemon [_thread_blocked, id=6644, stack(0x15170000,0x151c0000)]
  0x0048ac00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6012, stack(0x15100000,0x15150000)]
  0x00481c00 JavaThread "Finalizer" daemon [_thread_blocked, id=11740, stack(0x150b0000,0x15100000)]
  0x00424c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=4044, stack(0x14570000,0x145c0000)]
=>0x0025c400 JavaThread "main" [_thread_in_native, id=8024, stack(0x01db0000,0x01e00000)]

Other Threads:
  0x00420800 VMThread [stack: 0x04230000,0x04280000] [id=5320]
  0x004c1800 WatcherThread [stack: 0x15b00000,0x15b50000] [id=11956]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
 def new generation   total 4928K, used 3600K [0x04400000, 0x04950000, 0x09950000)
  eden space 4416K,  81% used [0x04400000, 0x04784348, 0x04850000)
  from space 512K,   0% used [0x04850000, 0x04850000, 0x048d0000)
  to   space 512K,   0% used [0x048d0000, 0x048d0000, 0x04950000)
 tenured generation   total 10944K, used 0K [0x09950000, 0x0a400000, 0x14400000)
   the space 10944K,   0% used [0x09950000, 0x09950000, 0x09950200, 0x0a400000)
 Metaspace       used 671K, capacity 2713K, committed 2752K, reserved 4480K

Card table byte_map: [0x01e80000,0x01f10000] byte_map_base: 0x01e5e000

Polling page: 0x00130000

CodeCache: size=32768Kb used=835Kb max_used=835Kb free=31932Kb
 bounds [0x02220000, 0x022f8000, 0x04220000]
 total_blobs=296 nmethods=124 adapters=103
 compilation: enabled

Compilation events (10 events):
Event: 0.696 Thread 0x0048f000  120             java.io.ByteArrayOutputStream::ensureCapacity (16 bytes)
Event: 0.696 Thread 0x0048f000 nmethod 120 0x022efc88 code [0x022efd90, 0x022efe3c]
Event: 0.696 Thread 0x0048f000  121  s          java.io.ByteArrayOutputStream::write (32 bytes)
Event: 0.697 Thread 0x0048f000 nmethod 121 0x022efec8 code [0x022effd0, 0x022f01fc]
Event: 0.697 Thread 0x0048f000  122             java.lang.AbstractStringBuilder::expandCapacity (50 bytes)
Event: 0.698 Thread 0x0048f000 nmethod 122 0x022f0348 code [0x022f0460, 0x022f0698]
Event: 0.698 Thread 0x0048f000  123             java.lang.String::substring (79 bytes)
Event: 0.698 Thread 0x0048f000 nmethod 123 0x022f07c8 code [0x022f0910, 0x022f0b50]
Event: 0.698 Thread 0x0048f000  124             java.util.ArrayList::size (5 bytes)
Event: 0.698 Thread 0x0048f000 nmethod 124 0x022f0d48 code [0x022f0e40, 0x022f0ec0]

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (10 events):
Event: 0.020 Thread 0x0025c400 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x044079c8) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u101\7261\hotspot\src\share\ýIXO;”?
Event: 0.020 Thread 0x0025c400 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x04407c98) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u101\7261\hotspot\src\share\vm\prims\jni.cpp, ۧгM±?
Event: 0.068 Thread 0x0025c400 Exception <a 'java/security/PrivilegedActionException'> (0x04525ec8) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u101\7261\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.068 Thread 0x0025c400 Exception <a 'java/security/PrivilegedActionException'> (0x045262a8) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u101\7261\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.068 Thread 0x0025c400 Exception <a 'java/security/PrivilegedActionException'> (0x0452a740) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u101\7261\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.068 Thread 0x0025c400 Exception <a 'java/security/PrivilegedActionException'> (0x0452ab20) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u101\7261\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.071 Thread 0x0025c400 Exception <a 'java/io/FileNotFoundException'> (0x0452caf0) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u101\7261\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 0.093 Thread 0x0025c400 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x045e7548) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u101\7261\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]
Event: 0.094 Thread 0x0025c400 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x045f3a88) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u101\7261\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]
Event: 0.203 Thread 0x0025c400 Exception <a 'java/lang/NullPointerException'> (0x04704618) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u101\7261\hotspot\src\share\vm\interpreter\linkResolver.cpp, line 1178]

Events (10 events):
Event: 0.935 loading class com/sun/jna/Structure$ByReference
Event: 0.935 loading class com/sun/jna/Structure$ByReference done
Event: 0.936 loading class com/sun/jna/Structure$FFIType$size_t
Event: 0.936 loading class com/sun/jna/Structure$FFIType$size_t done
Event: 0.937 loading class sun/reflect/UnsafeShortFieldAccessorImpl
Event: 0.937 loading class sun/reflect/UnsafeShortFieldAccessorImpl done
Event: 0.938 loading class com/sun/jna/Union
Event: 0.938 loading class com/sun/jna/Union done
Event: 0.939 loading class com/sun/jna/Structure$2$StructureSet
Event: 0.939 loading class com/sun/jna/Structure$2$StructureSet done


Dynamic libraries:
0x00140000 - 0x00173000     C:\Program Files (x86)\Java\jdk1.8.0_101\bin\java.exe
0x77d50000 - 0x77ed0000     C:\Windows\SysWOW64\ntdll.dll
0x760e0000 - 0x761f0000     C:\Windows\syswow64\kernel32.dll
0x77670000 - 0x776b7000     C:\Windows\syswow64\KERNELBASE.dll
0x6bc70000 - 0x6bd67000     C:\Program Files\Bitdefender\Endpoint Security\Signatures\AVC\AVC3_00565_003\avcuf32.dll
0x775c0000 - 0x77661000     C:\Windows\syswow64\ADVAPI32.dll
0x77280000 - 0x7732c000     C:\Windows\syswow64\msvcrt.dll
0x76200000 - 0x76219000     C:\Windows\SysWOW64\sechost.dll
0x75b50000 - 0x75c40000     C:\Windows\syswow64\RPCRT4.dll
0x75640000 - 0x756a0000     C:\Windows\syswow64\SspiCli.dll
0x75630000 - 0x7563c000     C:\Windows\syswow64\CRYPTBASE.dll
0x77480000 - 0x77580000     C:\Windows\syswow64\USER32.dll
0x756a0000 - 0x75730000     C:\Windows\syswow64\GDI32.dll
0x757d0000 - 0x757da000     C:\Windows\syswow64\LPK.dll
0x76030000 - 0x760cd000     C:\Windows\syswow64\USP10.dll
0x73c30000 - 0x73dce000     C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_41e855142bd5705d\COMCTL32.dll
0x77220000 - 0x77277000     C:\Windows\syswow64\SHLWAPI.dll
0x75fd0000 - 0x76030000     C:\Windows\system32\IMM32.DLL
0x75f00000 - 0x75fcd000     C:\Windows\syswow64\MSCTF.dll
0x62e50000 - 0x62f0f000     C:\Program Files (x86)\Java\jdk1.8.0_101\jre\bin\msvcr100.dll
0x60f70000 - 0x6133c000     C:\Program Files (x86)\Java\jdk1.8.0_101\jre\bin\client\jvm.dll
0x71320000 - 0x71327000     C:\Windows\system32\WSOCK32.dll
0x758a0000 - 0x758d5000     C:\Windows\syswow64\WS2_32.dll
0x77590000 - 0x77596000     C:\Windows\syswow64\NSI.dll
0x733a0000 - 0x733d2000     C:\Windows\system32\WINMM.dll
0x73dd0000 - 0x73dd9000     C:\Windows\system32\VERSION.dll
0x775a0000 - 0x775a5000     C:\Windows\syswow64\PSAPI.DLL
0x65af0000 - 0x65afc000     C:\Program Files (x86)\Java\jdk1.8.0_101\jre\bin\verify.dll
0x62e20000 - 0x62e41000     C:\Program Files (x86)\Java\jdk1.8.0_101\jre\bin\java.dll
0x62e00000 - 0x62e13000     C:\Program Files (x86)\Java\jdk1.8.0_101\jre\bin\zip.dll
0x765b0000 - 0x771fc000     C:\Windows\syswow64\SHELL32.dll
0x758e0000 - 0x75a3d000     C:\Windows\syswow64\ole32.dll
0x760d0000 - 0x760db000     C:\Windows\syswow64\profapi.dll
0x62cb0000 - 0x62df5000     C:\Program Files (x86)\Java\jdk1.8.0_101\jre\bin\awt.dll
0x757f0000 - 0x75881000     C:\Windows\syswow64\OLEAUT32.dll
0x73bd0000 - 0x73be7000     C:\Windows\system32\CRYPTSP.dll
0x73b90000 - 0x73bcb000     C:\Windows\system32\rsaenh.dll
0x77200000 - 0x77217000     C:\Windows\syswow64\USERENV.dll
0x62c90000 - 0x62ca6000     C:\Program Files (x86)\Java\jdk1.8.0_101\jre\bin\net.dll
0x70960000 - 0x7099c000     C:\Windows\system32\mswsock.dll
0x711a0000 - 0x711a6000     C:\Windows\System32\wship6.dll
0x70e80000 - 0x70e9c000     C:\Windows\system32\IPHLPAPI.DLL
0x70e70000 - 0x70e77000     C:\Windows\system32\WINNSI.DLL
0x72020000 - 0x7202d000     C:\Windows\system32\dhcpcsvc6.DLL
0x72030000 - 0x72042000     C:\Windows\system32\dhcpcsvc.DLL
0x63f10000 - 0x63f1f000     C:\Program Files (x86)\Java\jdk1.8.0_101\jre\bin\nio.dll
0x002d0000 - 0x0030d000     C:\Users\willian.matias\AppData\Local\Temp\jna-willian.matias\jna7309367887470345334.dll
0x161b0000 - 0x166ea000     C:\Windows\system32\ACBrFramework32.dll
0x776f0000 - 0x7794c000     C:\Windows\syswow64\wininet.dll
0x76540000 - 0x76544000     C:\Windows\syswow64\api-ms-win-downlevel-user32-l1-1-0.dll
0x757c0000 - 0x757c4000     C:\Windows\syswow64\api-ms-win-downlevel-shlwapi-l1-1-0.dll
0x757e0000 - 0x757e4000     C:\Windows\syswow64\api-ms-win-downlevel-version-l1-1-0.dll
0x75890000 - 0x75893000     C:\Windows\syswow64\api-ms-win-downlevel-normaliz-l1-1-0.dll
0x77d20000 - 0x77d23000     C:\Windows\syswow64\normaliz.DLL
0x75c40000 - 0x75e74000     C:\Windows\syswow64\iertutil.dll
0x77580000 - 0x77585000     C:\Windows\syswow64\api-ms-win-downlevel-advapi32-l1-1-0.dll
0x16010000 - 0x1610f000     C:\Windows\system32\libeay32.dll
0x734f0000 - 0x73593000     C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll
0x004e0000 - 0x00517000     C:\Windows\system32\ssleay32.dll
0x71190000 - 0x71195000     C:\Windows\system32\msimg32.dll
0x71110000 - 0x71190000     C:\Windows\system32\uxtheme.dll
0x70260000 - 0x702a4000     C:\Windows\system32\DNSAPI.dll
0x70210000 - 0x70248000     C:\Windows\System32\fwpuclnt.dll
0x70250000 - 0x70256000     C:\Windows\system32\rasadhlp.dll
0x70c70000 - 0x70c75000     C:\Windows\System32\wshtcpip.dll
0x68b10000 - 0x68bfb000     C:\Windows\system32\dbghelp.dll

VM Arguments:
jvm_args: -Dfile.encoding=UTF-8 
java_command: jACBrFramework.Test.ProgramTestIBGE
java_class_path (initial): C:\ACBrFramework\jACBrFramework\jACBrFramework\lib\jna-3.5.1.jar;C:\ACBrFramework\jACBrFramework\jACBrFramework\lib\platform-3.5.1.jar;C:\ACBrFramework\jACBrFramework\jACBrFramework\build\classes
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_101
CLASSPATH=.;C:\Program Files (x86)\Java\jdk1.8.0_101\lib\tools.jar;
PATH=C:\ProgramData\Oracle\Java\javapath;C:\oracle\ora92\bin;C:\Program Files (x86)\Oracle\jre\1.3.1\bin;C:\Program Files (x86)\Oracle\jre\1.1.8\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Java\jdk1.8.0_91\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Java\jdk1.8.0_101\bin;C:\eclipse\axis2-1.7.3\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\PostgreSQL\9.4\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Skype\Phone\
USERNAME=willian.matias
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel

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

OS: Windows 7 , 64 bit Build 7601 (6.1.7601.23572)

CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, tsc, tscinvbit, tscinv

Memory: 4k page, physical 4110896k(483064k free), swap 8219932k(3121328k free)

vm_info: Java HotSpot(TM) Client VM (25.101-b13) for windows-x86 JRE (1.8.0_101-b13), built on Jun 22 2016 00:45:44 by "java_re" with MS VC++ 10.0 (VS2010)

time: Tue Jan 24 07:47:48 2017
elapsed time: 0 seconds (0d 0h 0m 0s)

Willian Resplandes Matias

Skype: willian.matias.frialto

Postado

Já resolvi o problema é achei alguns erros na implementação dos structs do jACBrFramework e já sei como resolver, assim que corrigir os erro envio sua implementação para o SVN.

os structs no jACBrFramework estão como 

extends Structure implements Structure.ByValue

mas neste caso teria que ser como referencia ou seja
extends Structure implements Structure.ByReference
  • Curtir 2

 

×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.