Skip to main content

Mutual Certificate security

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
phani16
Offline
Joined: 2011-04-11

Hi,

I'm currently working on the Mutual certificate authority and getting the following exceptions on the client side.

[#|2011-07-05T11:22:18.961+0100|SEVERE|sun-appserver2.1|com.sun.xml.wss.logging.impl.opt.signature|_ThreadID=224;_ThreadName=HTTPBC-OutboundReceiver-1;Context=caMutualCertsClient-sun-http-binding-{http://j2ee.netbeans.org/wsdl/bpelMutualCertsServer/wsdlServer}MutualServerOperation;_RequestID=03f4d9b4-fa68-44ba-b6c4-0691d430aa6d;|WSS1701: Sign operation failed.
java.lang.NullPointerException: signingKey cannot be null
at com.sun.xml.ws.security.opt.crypto.jaxb.JAXBSignContext.<init>(JAXBSignContext.java:57)
at com.sun.xml.ws.security.opt.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:98)
at com.sun.xml.wss.impl.filter.SignatureFilter.sign(SignatureFilter.java:521)
at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:483)
at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:79)
at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:251)
at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:172)
at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:133)
at com.sun.xml.wss.jaxws.impl.SecurityPipeBase.secureOutboundMessage(SecurityPipeBase.java:394)
at com.sun.xml.wss.jaxws.impl.SecurityClientPipe.process(SecurityClientPipe.java:196)
at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.client.Stub.process(Stub.java:248)
at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:180)
at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:206)
at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.outboundCall(OutboundMessageProcessor.java:1108)
at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.dispatch(OutboundMessageProcessor.java:1139)
at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processRequestReplyOutbound(OutboundMessageProcessor.java:667)
at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processMessage(OutboundMessageProcessor.java:249)
at com.sun.jbi.httpsoapbc.OutboundAction.run(OutboundAction.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
|#]

[#|2011-07-05T11:22:18.962+0100|WARNING|sun-appserver2.1|com.sun.jbi.httpsoapbc.OutboundMessageProcessor|_ThreadID=224;_ThreadName=HTTPBC-OutboundReceiver-1;Context=caMutualCertsClient-sun-http-binding-{http://j2ee.netbeans.org/wsdl/bpelMutualCertsServer/wsdlServer}MutualServerOperation;_RequestID=03f4d9b4-fa68-44ba-b6c4-0691d430aa6d;|HTTPBC-E00759: An exception occured while processing a reply message. java.lang.NullPointerException: signingKey cannot be null
javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException: signingKey cannot be null
at com.sun.xml.wss.jaxws.impl.SecurityPipeBase.getSOAPFaultException(SecurityPipeBase.java:640)
at com.sun.xml.wss.jaxws.impl.SecurityPipeBase.secureOutboundMessage(SecurityPipeBase.java:401)
at com.sun.xml.wss.jaxws.impl.SecurityClientPipe.process(SecurityClientPipe.java:196)
at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.client.Stub.process(Stub.java:248)
at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:180)
at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:206)
at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.outboundCall(OutboundMessageProcessor.java:1108)
at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.dispatch(OutboundMessageProcessor.java:1139)
at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processRequestReplyOutbound(OutboundMessageProcessor.java:667)
at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processMessage(OutboundMessageProcessor.java:249)
at com.sun.jbi.httpsoapbc.OutboundAction.run(OutboundAction.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
|#]

All the relevant certificates are imported in the keystores ( keystore.jks and cacerts.jks ) and the classpath of the keystore is added in the JVM options. So could anyone please help me on this ?

Thanks & Regards.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
easterk
Offline
Joined: 2008-11-11

What does your wsit-client.xml file look like?