> Are you using jsafe jce provider on your development machine? As far as I understand it, I am using the default provider for my JRE, which is 1.4.2 My application controls all its class loading and environemtn, so there is no way I am picking up a different provider on the customer site.
Now, that said, what is the easiest way to check which JCE provider I am using at a given point? I could easily log that to confirm that I am using the same provider in both situations. > Do you get the same error on the customer site using non-jsafe provider? I haven't tried that yet. I use only open source stuff, so my next port of call is the Merlin APIs. But I'd prefer to avoid that extra library ______________________________ Franck Schmidlin ______________________________ ________________________________ From: Granqvist, Hans [mailto:[EMAIL PROTECTED] Sent: 20 October 2006 17:26 To: Schmidlin, Franck; [email protected] Subject: RE: NPE in COM.rsa.jsafe.SunJSSE_eq.a(DashoA6275) Are you using jsafe jce provider on your development machine? Do you get the same error on the customer site using non-jsafe provider? ________________________________ From: Schmidlin, Franck [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 8:50 AM To: [email protected] Subject: NPE in COM.rsa.jsafe.SunJSSE_eq.a(DashoA6275) 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(WSSecSign ature.java:606) at com.anite.connect.utility.SoapDocument.finaliseWsseProcessing(SoapDocume nt.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.engi neSign(SignatureBaseRSA.java:132) at org.apache.xml.security.algorithms.SignatureAlgorithm.sign(SignatureAlgo rithm.java:164) at org.apache.xml.security.signature.XMLSignature.sign(XMLSignature.java:50 8) at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSign ature.java:599) Any help appreciated. Regards 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
