Erro ao enviar ID Sefaz XML no JAR

5 respostas
R

Folks, se possível me ajudem

Estou com uma aplicação Java WS que verifica se o ID do XML está autorizado ou se foi cancelado.

Ele funciona lindamente no NetBeans, mas quando eu transformo em .JAR, ele dá uma mensagem de erro ao enviar o XML

Alguma idéia?

5 Respostas

drsmachado

Acho que é a linha pontilhada abaixo do campo id que está com erro no jar.

Camarada, como vamos adivinhar, se você não informou tudo o que está acontecendo? Qual o erro disparado no jar?

R

Fala meu camarada, foi mal :slight_smile:

Eu só consigo pegar isso do exception

com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Message send failed

O exception total eu n consigo pegar e mandar pra visualização ( to pegando a mensagem de exception pelo e.getMessage() )

drsmachado
e.getMessage() + " " + e.getCause();
R

Executei pelo prompt e olha o erro fofo

Jun 25, 2012 11:01:10 AM com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAP

Connection post

Grave: SAAJ0009: Message send failed

Jun 25, 2012 11:01:10 AM br.com.eitconsultas.Form jButton1ActionPerformed

Grave: null

com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.mess

aging.saaj.SOAPExceptionImpl: Message send failed

at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.cal

l(Unknown Source)

at br.com.eitconsultas.service.WSConsultaProtocolo.retConsultaProtocolo(

WSConsultaProtocolo.java:117)

at br.com.eitconsultas.Form.jButton1ActionPerformed(Form.java:82)

at br.com.eitconsultas.Form.access$000(Form.java:11)

at br.com.eitconsultas.Form$1.actionPerformed(Form.java:39)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour

ce)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

at java.awt.EventQueue.access$000(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour

ce)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour

ce)

at java.awt.EventQueue$4.run(Unknown Source)

at java.awt.EventQueue$4.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
R

Pessoal Resolvi aqui

No Beans, no projeto ele ja estava com o true_store_nfe criado

e o metodo que criava este não estava sendo executado (estava em um metodo main pra execução separadamente)

Agora eu verifico se já existe este file, caso contrário eu executo e plim

Valeu pessoar fofos!

Criado 22 de junho de 2012
Ultima resposta 25 de jun. de 2012
Respostas 5
Participantes 2