Re: Problem when signing docx file

Andreas Beeker <[email protected]>
Newsgroups gmane.comp.jakarta.poi.user
Message-ID <[email protected]>
Hi Blaz,

sorry for the late response.

Please debug org.apache.poi.poifs.crypt.dsig.SignatureInfo#initXmlProvider after the servlet is reloaded.
My guess is that the RelationshipTransformService registration is lost somewhere and the singleton is not initialized again.
So depending on the internal state of SignatureInfo.provider or signatureConfig.provider, I would try to null them.

Alternatively you could recall the three init methods invoked in org.apache.poi.poifs.crypt.dsig.SignatureInfo.XmlProviderInitSingleton#XmlProviderInitSingleton yourself.

Andi.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.