Nota Fiscal Eletronica ou NF-e Solução pra quem tem problema

Iniciado por Lucas Peregrino, 07 de Julho de 2009, 18:32

tópico anterior - próximo tópico

Lucas Peregrino

Boa noite pessoal dei uma rodada na internet e andei procurando em foruns e sites ves e achava alguma coisa de nota fiscal eletronica e isso ta muito novo ainda to com problema na contabilidade de um cliente que na hora de envia a nota fiscal ele da erros.

Liberei as portas sitadas aqui no java e mesmo assim nao funciono alguem pode me da uma ajuda ai sou de minas gerais nao sei se a onde o pessoal ta trabalha assim também, muito obrigado pela atenção.

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
faultActor:
faultNode:
faultDetail:
    {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(Unknown Source)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.flush(Unknown Source)
    at java.io.FilterOutputStream.flush(Unknown Source)
    at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191)
    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:506)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2110)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1088)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:196)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at br.gov.sp.fazenda.dsen.ws.status.NfeStatusServicoSoapStub.nfeStatusServicoNF(NfeStatusServicoSoapStub.java:107)
    at br.gov.sp.fazenda.dsen.model.business.WSBusiness.f(WSBusiness.java:367)
    at br.gov.sp.fazenda.dsen.model.business.WSBusiness.servico(WSBusiness.java:102)
    at br.gov.sp.fazenda.dsen.model.business.util.ConsultaStatusServicoHelper.consultarStatusServico(ConsultaStatusServicoHelper.java:35)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness.enviarLote(EnvioBusiness.java:242)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.CGLIB$enviarLote$0(<generated>)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0$$FastClassByCGLIB$$a822cbc6.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
    at br.gov.sp.fazenda.dsge.model.dao.util.DSGEDAOInterceptorHelper.intercept(DSGEDAOInterceptorHelper.java:55)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.enviarLote(<generated>)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness.fecharEnviarLote(EnvioBusiness.java:193)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.CGLIB$fecharEnviarLote$2(<generated>)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0$$FastClassByCGLIB$$a822cbc6.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
    at br.gov.sp.fazenda.dsge.model.dao.util.DSGEDAOInterceptorHelper.intercept(DSGEDAOInterceptorHelper.java:66)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.fecharEnviarLote(<generated>)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness.a(EnvioBusiness.java:128)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness.montarLote(EnvioBusiness.java:90)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.CGLIB$montarLote$1(<generated>)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0$$FastClassByCGLIB$$a822cbc6.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
    at br.gov.sp.fazenda.dsge.model.dao.util.DSGEDAOInterceptorHelper.intercept(DSGEDAOInterceptorHelper.java:66)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.montarLote(<generated>)
    at br.gov.sp.fazenda.dsen.model.facade.DocumentoFacade.enviarLote(DocumentoFacade.java:545)
    at br.gov.sp.fazenda.dsen.controller.EnviarNotaFiscalController$1.doInBackground(EnviarNotaFiscalController.java:128)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.flush(Unknown Source)
    at java.io.FilterOutputStream.flush(Unknown Source)
    at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191)
    at sun.nio.cs.StreamEncoder.implFlush(Unknown Source)
    at sun.nio.cs.StreamEncoder.flush(Unknown Source)
    at java.io.OutputStreamWriter.flush(Unknown Source)
    at java.io.PrintWriter.flush(Unknown Source)
    at java.io.BufferedWriter.flush(Unknown Source)
    at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:270)
    at org.apache.axis.Message.writeTo(Message.java:539)
    at org.apache.axis.transport.http.CommonsHTTPSender$MessageRequestEntity.writeRequest(CommonsHTTPSender.java:841)
    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
    ... 47 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
    at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
    ... 64 more

    {http://xml.apache.org/axis/}hostname:Conceicao

javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:301)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at br.gov.sp.fazenda.dsen.ws.status.NfeStatusServicoSoapStub.nfeStatusServicoNF(NfeStatusServicoSoapStub.java:107)
    at br.gov.sp.fazenda.dsen.model.business.WSBusiness.f(WSBusiness.java:367)
    at br.gov.sp.fazenda.dsen.model.business.WSBusiness.servico(WSBusiness.java:102)
    at br.gov.sp.fazenda.dsen.model.business.util.ConsultaStatusServicoHelper.consultarStatusServico(ConsultaStatusServicoHelper.java:35)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness.enviarLote(EnvioBusiness.java:242)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.CGLIB$enviarLote$0(<generated>)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0$$FastClassByCGLIB$$a822cbc6.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
    at br.gov.sp.fazenda.dsge.model.dao.util.DSGEDAOInterceptorHelper.intercept(DSGEDAOInterceptorHelper.java:55)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.enviarLote(<generated>)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness.fecharEnviarLote(EnvioBusiness.java:193)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.CGLIB$fecharEnviarLote$2(<generated>)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0$$FastClassByCGLIB$$a822cbc6.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
    at br.gov.sp.fazenda.dsge.model.dao.util.DSGEDAOInterceptorHelper.intercept(DSGEDAOInterceptorHelper.java:66)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.fecharEnviarLote(<generated>)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness.a(EnvioBusiness.java:128)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness.montarLote(EnvioBusiness.java:90)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.CGLIB$montarLote$1(<generated>)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0$$FastClassByCGLIB$$a822cbc6.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
    at br.gov.sp.fazenda.dsge.model.dao.util.DSGEDAOInterceptorHelper.intercept(DSGEDAOInterceptorHelper.java:66)
    at br.gov.sp.fazenda.dsen.model.business.EnvioBusiness$$EnhancerByCGLIB$$7fa51ec0.montarLote(<generated>)
    at br.gov.sp.fazenda.dsen.model.facade.DocumentoFacade.enviarLote(DocumentoFacade.java:545)
    at br.gov.sp.fazenda.dsen.controller.EnviarNotaFiscalController$1.doInBackground(EnviarNotaFiscalController.java:128)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(Unknown Source)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.flush(Unknown Source)
    at java.io.FilterOutputStream.flush(Unknown Source)
    at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191)
    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:506)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2110)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1088)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:196)
    ... 41 more
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.flush(Unknown Source)
    at java.io.FilterOutputStream.flush(Unknown Source)
    at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191)
    at sun.nio.cs.StreamEncoder.implFlush(Unknown Source)
    at sun.nio.cs.StreamEncoder.flush(Unknown Source)
    at java.io.OutputStreamWriter.flush(Unknown Source)
    at java.io.PrintWriter.flush(Unknown Source)
    at java.io.BufferedWriter.flush(Unknown Source)
    at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:270)
    at org.apache.axis.Message.writeTo(Message.java:539)
    at org.apache.axis.transport.http.CommonsHTTPSender$MessageRequestEntity.writeRequest(CommonsHTTPSender.java:841)
    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
    ... 47 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
    at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
    ... 64 more

Lucas Peregrino

#1

echo "Liberando Acesso Nota Fiscal Eletronica "
## Liberando acesso a NFE (Nota fiscal Eletronica)
iptables -t nat -I PREROUTING -p tcp --dport 80 -s 192.168.2.0/24 -d 200.189.133.249 -j ACCEPT
iptables -t nat -I PREROUTING -p tcp --dport 80 -s 192.168.2.0/24 -d 200.189.133.247 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -d 200.189.133.249 -j ACCEPT
iptables -A FORWARD -p tcp -d 200.189.133.249 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -d 200.189.133.247 -j ACCEPT
iptables -A FORWARD -p tcp -d 200.189.133.247 -j ACCEPT
iptables -t nat -I PREROUTING -s 192.168.2.0/24 -p tcp --dport 4199 -j ACCEPT
iptables -t nat -I PREROUTING -s 192.168.2.0/24 -p tcp --dport 5656 -j ACCEPT




obrigado pela atenção ja consegui resolver

clcampos

Citação de: Lucas Peregrino online 09 de Julho de 2009, 12:10
obrigado pela atenção ja consegui resolver

Caro Lucas o fórum existe para receber ajuda, mas também para dar.

Se você deixar aqui a solução que encontrou outros usuários poderam se beneficiar dela.

Também posso te falar que este tipo de mensagem que deixou não ajuda muito, pois se ninguém te ajudou é porque não puderam mesmo, ou porque não viram seu tópico.
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

weltonpba

mto bom a dica da nfe

estou implantando aki na empresa logo estarei testando !!!