Login Registre-se

Home > Artigos > Java Básico >

Erro em Aplicação Java do Governo de SP

Publicado por aloisiopires em 02/07/2013 - 1.165 visualizações


comentários: 13

Saudações!

Utilizo um programa do governo de São Paulo desenvolvido em Java para emissão de nota fiscal eletrônica que está apresentando esse erro:


Utilizo o certificado A3 da CEF, que está acessando normalmente pelo charismatichs.

O seguinte erro ocorre quando vou assinar a nota fiscal as telas estão em anexo

Ocorreu um problema durante a assinatura
br.gov.sp.fazenda.dsge.certif.exception.DSGECertificadoException: Ocorreu um problema durante a assinatura
at br.gov.sp.fazenda.dsge.certif.Certificado.assinarXML(Certificado.java:729)
at br.gov.sp.fazenda.dsge.certif.Certificado.assinarXML(Certificado.java:661)
at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness.assinar(NotaFiscalBusiness.java:139)
at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$34dbbc28.CGLIB$assinar$16()
at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$34dbbc28$$FastClassByCGLIB$$8db74f91.invoke()
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.NotaFiscalBusiness$$EnhancerByCGLIB$$34dbbc28.assinar()
at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness.assinar(NotaFiscalBusiness.java:178)
at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$34dbbc28.CGLIB$assinar$17()
at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$34dbbc28$$FastClassByCGLIB$$8db74f91.invoke()
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.NotaFiscalBusiness$$EnhancerByCGLIB$$34dbbc28.assinar()
at br.gov.sp.fazenda.dsen.model.facade.NotaFiscalFacade.assinarNotaFiscal(NotaFiscalFacade.java:343)
at br.gov.sp.fazenda.dsen.controller.PesquisarNotaFiscalController.e(PesquisarNotaFiscalController.java:604)
at br.gov.sp.fazenda.dsen.controller.PesquisarNotaFiscalController.actionPerformed(PesquisarNotaFiscalController.java:757)
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 Source)
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$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)



Esta programa se utiliza de um certificado digital para acessar o serviço de envio e recepção de notas.

Na minha máquina o certificado está instalado e funciona sem problemas no navegador, inclusive consigo acessar serviços que também dependem dele como por exemplo o FGTS/Caixa.

Alguém pode dar uma dica do que pode estar errado?



Grato

Aloisio Pires Neto