Buenos días, estoy teniendo un problema a la hora de firmar con firma XADES
desde que actualicé a la versión 2.1.0. Con la anterior (2.0.5) funcionaba
correctamente. Ahora tengo un error que podría ser por configuración pero la
verdad es que me ha sido imposible localizarlo. He probado a realizar la
firma con certificados digitales de prueba y con DNI electrónico y el error
es el mismo. Además la firma en formato PDF funciona bien, sólo es en la
firma XADES. 

 

He descargado los fuentes pero no consigo sacar ninguna conclusión. Parece
que hay algún problema con los certificados pero no estoy seguro. La traza
es la siguiente:

 

DEBUG thread-sig-0
es.uji.security.crypto.openxades.OpenXAdESSignatureFactory [13:05:16,872] -
Using XAdESSignatureFactory

DEBUG thread-sig-0
es.uji.security.crypto.openxades.OpenXAdESSignatureFactory [13:05:16,872] -
UJI-MSCAPI provider found

DEBUG thread-sig-0 es.uji.security.crypto.openxades.digidoc.DataFile
[13:05:16,942] - calculateFileSizeAndDigest(D0)

ASK FOR: DATAFILE_USE_64BYTE_LINESreturn valuenull

DEBUG thread-sig-0 es.uji.security.crypto.openxades.digidoc.DataFile
[13:05:16,992] - DataFile: 'D0' length: 108032 digest:
fHV3dXVIzJn1WgPPwyHtM0Mrgoc=

DEBUG thread-sig-0
es.uji.security.crypto.openxades.OpenXAdESSignatureFactory [13:05:35,814] -
Signing XAdES info. XAdES signature length 256

ASK FOR: DIGIDOC_TSA1_URLreturn valuehttp://tss.accv.es:8318/tsa

ASK FOR: DIGIDOC_TSA1_CA_CERTreturn valuejar://tsa1_accv.der

ASK FOR: DIGIDOC_CERT_VERIFIERreturn valueNONE

ASK FOR: DIGIDOC_TSA1_URLreturn valuehttp://tss.accv.es:8318/tsa

ASK FOR: DIGIDOC_TSA1_CA_CERTreturn valuejar://tsa1_accv.der

ERROR thread-sig-0 es.uji.security.ui.applet.SignatureThread [13:05:36,124]
- <html><font color='red'>No se ha podido calcular la firma</font></html>

java.lang.NullPointerException

                at
es.uji.security.crypto.openxades.OpenXAdESSignatureFactory.formatSignature(O
penXAdESSignatureFactory.java:280)

                at
es.uji.security.ui.applet.SignatureThread.run(SignatureThread.java:298)

DEBUG thread-sig-0 es.uji.security.ui.applet.AppHandler [13:05:36,134] -
Call JavaScript method: onSignError

es.uji.security.ui.applet.SignatureAppletException

                at
es.uji.security.ui.applet.SignatureThread.run(SignatureThread.java:306)

DEBUG AWT-EventQueue-7 es.uji.security.ui.applet.EventActionHandler
[13:19:02,894] - OnClose action called

DEBUG AWT-EventQueue-7 es.uji.security.ui.applet.EventActionHandler
[13:19:02,894] - Invoked funtion: onSignCancel

DEBUG AWT-EventQueue-7 es.uji.security.ui.applet.AppHandler [13:19:02,914] -
Call JavaScript method: onSignCancel

 

 

Gracias.

 

 


  _____  


Iván Franco Rabuñal
Director de ProyectosProject Manager



[email protected]



Polígono Industrial A Granxa
Paralela 1 (calle D)Edificio de Piedra
36400 O Porriño (Pontevedra)

Tel: +34 986342774
Fax:+34 986342298


  _____  

Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener
información confidencial, siendo para uso exclusivo del destinatario. Queda
prohibida su divulgación copia o distribución a terceros sin la autorización
expresa del remitente. Si usted ha recibido este mensaje erróneamente, se
ruega lo notifique al remitente y proceda a su borrado. Gracias por su
colaboración.
This message, and in the case of any file annexed to it, can have
confidential information, and it is exclusively for the use of the addressee
of the message. It is strictly forbidden to spread a copy or distribute to
third parties, without the express order of the sender. If you have received
this message mistakenly, we request you to notify to the sender, and please
be sure to erase it. Thank you for your collaboration.

  _____  

 

 

<<image001.gif>>

<<image002.gif>>

_______________________________________________
CryptoApplet mailing list
[email protected]
http://llistes.uji.es/mailman/listinfo/cryptoapplet

Responder a