Skip to main content

Failed to validate certificate java.lang.NullPointerException: the keystore parameter must be non-null

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
shilpa.mehta38
Offline
Joined: 2014-08-04

com.sun.xml.wss.impl.misc.DefaultCallbackHandler$X509CertificateValidatorImpl validate
SEVERE: WSS1518: Failed to validate certificate
java.lang.NullPointerException: the keystore parameter must be non-null
at java.security.cert.PKIXParameters.(PKIXParameters.java:145)
at java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:130)
at com.sun.xml.wss.impl.misc.DefaultCallbackHandler$X509CertificateValidatorImpl.validate(DefaultCallbackHandler.java:1646)
at com.sun.xml.wss.impl.callback.CertificateValidationCallback.getResult(CertificateValidationCallback.java:87)
at com.sun.xml.wss.impl.misc.DefaultSecurityEnvironmentImpl.validateCertificate(DefaultSecurityEnvironmentImpl.java:813)
at com.sun.xml.ws.security.opt.impl.util.CertificateRetriever.setServerCertInTheContext(CertificateRetriever.java:397)
at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.initializeOutgoingProcessingContext(SecurityTubeBase.java:641)
at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientRequestPacket(SecurityClientTube.java:284)
at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:247)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
at com.sun.xml.ws.rx.util.FiberExecutor.runSync(FiberExecutor.java:94)
at com.sun.xml.ws.rx.util.Communicator.send(Communicator.java:423)
at com.sun.xml.ws.rx.rm.runtime.ClientTube.sendSessionControlMessage(ClientTube.java:555)
at com.sun.xml.ws.rx.rm.runtime.ClientTube.createSequences(ClientTube.java:415)
at com.sun.xml.ws.rx.rm.runtime.ClientTube.openRmSession(ClientTube.java:338)
at com.sun.xml.ws.rx.rm.runtime.ClientTube.processRequest(ClientTube.java:179)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
at com.sun.xml.ws.client.Stub.process(Stub.java:464)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:174)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:91)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:154)
at com.sun.proxy.$Proxy47.getAvailableMessageInfo(Unknown Source)

Getting this error when i am trying to use the certificates on the Linux box , where in the same certificates work fine on Windows.

On linus using jdk1.7.0_51 this version of java where as on windows we are using jdk1.7.0_03 version .

Can this be a possible reason of this error or is some thing else causing this Issue ?

Please help.