e-Contract / dssp

Digital Signature Service Protocol
Other
4 stars 2 forks source link

DigitalSignatureServiceSession not serializable even though it claims to be #1

Closed klr8 closed 9 years ago

klr8 commented 9 years ago

From the DigitalSignatureServiceSession JavaDoc:

 * Session object for DSSP. Is serializable to be able to get stored inside an
 * HTTP session context.

However, when I try to serialize it I get:

java.io.NotSerializableException: com.sun.xml.internal.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl
fcorneli commented 9 years ago

I can indeed confirm the issue:

12:03:11,614 ERROR [be.e_contract.dss.portal.PortalController] 
(ajp-localhost.localdomain/127.0.0.1:8009-2) session serialization error: 
com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl: 
java.io.NotSerializableException: com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl

Seems like the SAAJ DOM objects don't play well with serialization.

We will release version 1.2.3 of the DSSP client to fix this issue. Thanks for reporting this to us.

klr8 commented 9 years ago

Thanks for picking this up so quickly. As soon as you have 1.2.3 available I'll give it another go.

fcorneli commented 9 years ago

Version 1.2.3 has been released. Could you try it again?

klr8 commented 9 years ago

1.2.3 Indeed fixes the serialization problem.