Quesion: i am using glassfish server and netbeans id to create java consumer web service which will consume .Net web service. dot net web service is secured web service which needs Username and Userpassword in request Header.I am sending below header with request body.
while getting response in my glassfish i am getting below error. But In glassfish console i am getting corrrect response but in java code throwing error as shown below.
Error
javax.xml.ws.WebServiceException: com.sun.xml.wss.impl.XWSSecurityRuntimeException: java.lang.NullPointerException at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processResponse(SecurityClientTube.java:365) at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1147) 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) Caused by: com.sun.xml.wss.impl.XWSSecurityRuntimeException: java.lang.NullPointerException at com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient.validateMessage(SecurityRecipient.java:270) at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.verifyInboundMessage(SecurityTubeBase.java:455) at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientResponsePacket(SecurityClientTube.java:434) at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processResponse(SecurityClientTube.java:362) ... 41 more
Caused by: com.sun.xml.wss.impl.XWSSecurityRuntimeException: java.lang.NullPointerException
at com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient.validateMessage(SecurityRecipient.java:270)
at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.verifyInboundMessage(SecurityTubeBase.java:455)
at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientResponsePacket(SecurityClientTube.java:434)
at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processResponse(SecurityClientTube.java:362)
... 41 more
Caused by: java.lang.NullPointerException at com.sun.xml.ws.security.opt.impl.incoming.GenericSecuredHeader$IDProcessor.accept(GenericSecuredHeader.java:408) at org.codehaus.stax2.ri.Stax2FilteredStreamReader.next(Stax2FilteredStreamReader.java:37) at com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.storeElementAndChildrenNoEx(StreamReaderBufferCreator.java:266) at com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.storeElementAndChildren(StreamReaderBufferCreator.java:198) at com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.createElementFragment(StreamReaderBufferCreator.java:147) at com.sun.xml.ws.security.opt.impl.incoming.GenericSecuredHeader.(GenericSecuredHeader.java:122) at com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient.cacheHeaders(SecurityRecipient.java:308) at com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient.validateMessage(SecurityRecipient.java:245) ... 44 more
Your help appriciated. Rasmi
Aucun commentaire:
Enregistrer un commentaire