Topic
  • No replies
saiwcs
saiwcs
19 Posts

Pinned topic Authentication Failure Exception during invocation of Webservice

‏2012-09-04T05:29:08Z |
Hello Everyone,

We are consuming a Webservice which is exposed by third party provider. I have created the webservice client code as mentioned infocenter and when I try to invoke the webservice from the client it throws following exception

12 10:46:19:563 IST] 0000012a ConnectionEve W J2CA0206W: A connection error occurred. To help determine the problem, enable the Diagnose Connection Usage option on the Connection Factory or Data Source.
9/4/12 10:46:19:563 IST 0000012a ConnectionEve A J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adapter for resource eis/JCAHTTP-WS. The exception is: java.io.IOException: Authentication failure:java.io.IOException: Authentication failure
9/4/12 10:46:19:563 IST 0000012a CommerceSrvr E JMSMessageBean sendReceiveImmediate CMN9907E: A resource exception occurred during processing: "{0}". javax.resource.ResourceException: java.io.IOException: Authentication failure
at com.ibm.commerce.wc.messaging.adapters.jcahttp.JCAHTTPInteractionImpl.execute(JCAHTTPInteractionImpl.java:223)
at com.ibm.commerce.wc.messaging.adapters.jcahttp.ws.JCAHTTPWSInteractionImpl.execute(JCAHTTPWSInteractionImpl.java:104)
at com.ibm.commerce.messaging.objects.JMSMessageBean.sendReceiveImmediate(JMSMessageBean.java:665)
at com.ibm.commerce.messaging.objects.EJSRemoteStatelessJMSMessage_d6d5624d.sendReceiveImmediate(EJSRemoteStatelessJMSMessage_d6d5624d.java:31)
at com.ibm.commerce.messaging.objects._JMSMessage_Stub.sendReceiveImmediate(_JMSMessage_Stub.java:339)
at com.ibm.commerce.messaging.objects.JMSMessageAccessBean.sendReceiveImmediate(JMSMessageAccessBean.java:120)
at com.ibm.commerce.messaging.outboundservice.Messaging.sendReceiveRecordImmediate(Messaging.java:4929)
at com.ibm.commerce.foundation.internal.client.services.invocation.impl.JCAInvocationBindingImpl.invoke(JCAInvocationBindingImpl.java:151)
at com.ibm.commerce.foundation.internal.client.services.invocation.InvocationService.invoke(InvocationService.java:113)
at com.guidewell.boomi.client.GWClientFacadeForBoomi.pushCustomerSalesOrder(GWClientFacadeForBoomi.java:59)
at com.guidewell.boomi.client.commands.GWCommandClientBoomiImpl.performExecute(GWCommandClientBoomiImpl.java:117)
at com.guidewell.commerce.integrations.commands.GWSendSalesOrderCmdImpl.performExecute(GWSendSalesOrderCmdImpl.java:39)
at com.ibm.commerce.command.ECCommandTarget.executeCommand(ECCommandTarget.java:157)
at com.ibm.websphere.command.TargetableCommandImpl.execute(TargetableCommandImpl.java:139)
at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java:138)
at com.ibm.commerce.command.AbstractECTargetableCommand.execute(AbstractECTargetableCommand.java:172)
at com.ibm.commerce.component.BaseComponentImpl.executeCommand(BaseComponentImpl.java:190)
at com.ibm.commerce.component.WebAdapterComponentImpl.executeCommand(WebAdapterComponentImpl.java:46)
at com.ibm.commerce.component.objimpl.WebAdapterServiceBeanBase.executeCommand(WebAdapterServiceBeanBase.java:58)
at com.ibm.commerce.component.objects.EJSLocalStatelessWebAdapterService_ce749a4a.executeCommand(EJSLocalStatelessWebAdapterService_ce749a4a.java:31)
at com.ibm.commerce.component.objects.WebAdapterServiceAccessBean.executeCommand(WebAdapterServiceAccessBean.java:160)
at com.ibm.commerce.webcontroller.WebControllerHelper.executeCommand(WebControllerHelper.java:2650)
at com.ibm.commerce.struts.AjaxAction.invokeService(AjaxAction.java:495)
at com.ibm.commerce.struts.AjaxAction.executeAction(AjaxAction.java:306)
at com.ibm.commerce.struts.AjaxAction.execute(AjaxAction.java:125)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at com.ibm.commerce.struts.ECActionServlet.processRequest(ECActionServlet.java:218)
at com.ibm.commerce.struts.ECActionServlet.doPost(ECActionServlet.java:174)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1661)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
at com.ibm.commerce.campaigns.filter.CampaignsFilter.doFilter(CampaignsFilter.java:148)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at com.ibm.commerce.likeminds.filter.LikeMindsFilter.doFilter(LikeMindsFilter.java:183)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at com.ibm.commerce.dynacache.filter.CacheFilter$1.run(CacheFilter.java:377)
at com.ibm.commerce.dynacache.filter.CacheFilter.doFilter(CacheFilter.java:508)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at com.ibm.commerce.webcontroller.RuntimeServletFilter.doFilterAction(RuntimeServletFilter.java:457)
at com.ibm.commerce.webcontroller.RuntimeServletFilter.access$0(RuntimeServletFilter.java:296)
at com.ibm.commerce.webcontroller.RuntimeServletFilter$1.run(RuntimeServletFilter.java:259)
at com.ibm.commerce.webcontroller.RuntimeServletFilter.doFilter(RuntimeServletFilter.java:280)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1772)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
Caused by: java.io.IOException: Authentication failure
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:44)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
at java.lang.reflect.Constructor.newInstance(Constructor.java:516)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1363)
at java.security.AccessController.doPrivileged(AccessController.java:251)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1357)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1011)
at com.ibm.net.ssl.www2.protocol.https.b.getInputStream(b.java:67)
at com.ibm.commerce.wc.messaging.adapters.jcahttp.JCAHTTPInteractionImpl.execute(JCAHTTPInteractionImpl.java:211)
... 72 more
Caused by: java.io.IOException: Authentication failure
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1168)
at com.ibm.net.ssl.www2.protocol.https.b.getInputStream(b.java:67)
at com.ibm.commerce.wc.messaging.adapters.jcahttp.JCAHTTPInteractionImpl.execute(JCAHTTPInteractionImpl.java:165)
... 72 more

we have provided the username and password during the creation of message type in Websphere Commerce Admin console.

Can any one guide me what could be the issue?

Thanks in Advance