Jump to content

dev botao

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

Recommended Posts

Posted

Boa noite galera, seguinte estou um erro que acontece as vezes quando eu vou assinar o arquivo com a EAD, eu implentei em java para fazer a assinara, e uso libeay32.dll.

 

 

Abaixo esta o codigo que faço no AcbrEAD.java.

   public String assinarArquivoComEAD(String nomeArquivo, boolean remove) throws ACBrException {
        ByteBuffer returnBuffer = ByteBuffer.allocate(STR_BUFFER_LEN);
        int ret = ACBrEADInterop.INSTANCE.EAD_AssinarArquivoComEAD(getHandle(), toUTF8(nomeArquivo), remove, returnBuffer, STR_BUFFER_LEN);
        checkResult(ret);

        return fromUTF8(returnBuffer, ret);
    }

Aqui eu chamo o meu metodo, passando o caminho do arquivo.

ACBrEAD.assinarArquivoComEAD(pathArquivo, true);

e quando ele tenta assinar, ele fecha aplicação e gera um txt aonde esta o .jar

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x76fce41b, pid=1528, tid=5196
#
# JRE version: 7.0_21-b11
# Java VM: Java HotSpot(TM) Client VM (23.21-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [ntdll.dll+0x2e41b]  RtlInitUnicodeString+0x1f3
#
# 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.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#


........

alguém sabe me dizer o porque ocorre isso, é só as vezes.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.