Dear all,
I am having a
strange intermittent problem on a customer site which I have been unable to
reproduce on my development machine.
As I cannot find any
source code for COM.rsa.jsafe.SunJSSE_eq I am at a loss to guess what is
causing the NullPointerException.
The code works
something like 95% of the time (I am still gathering stats) and I cannot find a
pattern to the failures.
The application is a
multithreaded soap server, where each thread gets its own brand new instance of
org.apache.ws.security.components.crypto.Crypto
I have run several
multithreaded tests and that does not reproduce the problem.
I use a standard JKS
keystore, the signature algorithm is RSA.
My application uses
its own JRE and igore all environment
variables.
Can anyone among you
hazard a guess or let me know a better forum where to get some
information?
Caused by:
org.apache.ws.security.WSSecurityException: Signature creation failed;
nested
exception is:
java.lang.NullPointerException
at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:606)
at com.anite.connect.utility.SoapDocument.finaliseWsseProcessing(SoapDocument.java:400)
... 18 more
Caused by: java.lang.NullPointerException
at COM.rsa.jsafe.SunJSSE_eq.a(DashoA6275)
at COM.rsa.jsafe.SunJSSE_eq.b(DashoA6275)
at COM.rsa.jsafe.SunJSSE_eq.b(DashoA6275)
at COM.rsa.jsafe.SunJSSE_eq.a(DashoA6275)
at COM.rsa.jsafe.SunJSSE_c4.a(DashoA6275)
at COM.rsa.jsafe.SunJSSE_c4.a(DashoA6275)
at COM.rsa.jsafe.SunJSSE_bn.c(DashoA6275)
at COM.rsa.jsafe.SunJSSE_bh.k(DashoA6275)
at com.sun.net.ssl.internal.ssl.JS_Signature.engineSign(DashoA6275)
at java.security.Signature$Delegate.engineSign(Signature.java:790)
at java.security.Signature.sign(Signature.java:397)
at org.apache.xml.security.algorithms.implementations.SignatureBaseRSA.engineSign(SignatureBaseRSA.java:132)
at org.apache.xml.security.algorithms.SignatureAlgorithm.sign(SignatureAlgorithm.java:164)
at org.apache.xml.security.signature.XMLSignature.sign(XMLSignature.java:508)
at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:599)
java.lang.NullPointerException
at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:606)
at com.anite.connect.utility.SoapDocument.finaliseWsseProcessing(SoapDocument.java:400)
... 18 more
Caused by: java.lang.NullPointerException
at COM.rsa.jsafe.SunJSSE_eq.a(DashoA6275)
at COM.rsa.jsafe.SunJSSE_eq.b(DashoA6275)
at COM.rsa.jsafe.SunJSSE_eq.b(DashoA6275)
at COM.rsa.jsafe.SunJSSE_eq.a(DashoA6275)
at COM.rsa.jsafe.SunJSSE_c4.a(DashoA6275)
at COM.rsa.jsafe.SunJSSE_c4.a(DashoA6275)
at COM.rsa.jsafe.SunJSSE_bn.c(DashoA6275)
at COM.rsa.jsafe.SunJSSE_bh.k(DashoA6275)
at com.sun.net.ssl.internal.ssl.JS_Signature.engineSign(DashoA6275)
at java.security.Signature$Delegate.engineSign(Signature.java:790)
at java.security.Signature.sign(Signature.java:397)
at org.apache.xml.security.algorithms.implementations.SignatureBaseRSA.engineSign(SignatureBaseRSA.java:132)
at org.apache.xml.security.algorithms.SignatureAlgorithm.sign(SignatureAlgorithm.java:164)
at org.apache.xml.security.signature.XMLSignature.sign(XMLSignature.java:508)
at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:599)
Any help
appreciated.
Regards
______________________________
Franck Schmidlin
______________________________
Scanned for viruses by BlackSpider MailControl. The integrity and security of this message cannot be guaranteed. This email is intended for the named recipient only, and may contain confidential information and proprietary material. Any unauthorised use or disclosure is prohibited.
