mardi 21 novembre 2017

IBM ISIM client call failing with instantiation exception

I am making a client call to IBM ISIM as follows. It is failing on the line shown. A previous function that calls the 'WSSessionService' works fine:

[11/21/17 14:36:16:277 GMT] 0000002b HUSITIMWebSer > com.hus.commerce.member.itimws.util.HUSITIMWebServiceClientUtil getWSSessionService ENTRY [11/21/17 14:36:16:277 GMT] 0000002b HUSITIMWebSer 1 com.hus.commerce.member.itimws.util.HUSITIMWebServiceClientUtil getWSSessionService Url: http://:/itim/services/WSSessionService/WEB-INF/wsdl/WSSessionService.wsdl Name space: http://ift.tt/2jJU1D2 Service name: WSSessionService [11/21/17 14:36:16:279 GMT] 0000002b WSChannelFram A CHFW0019I: The Transport Channel Service has started chain HttpOutboundChain::. [11/21/17 14:36:16:531 GMT] 0000002b HUSITIMWebSer 1 com.hus.commerce.member.itimws.commands.HUSITIMWebServicesBaseTaskCmdImpl performExecute Session ID : -8,890,811,298,357,666,137

Problematic method:

 public WSPersonService getWSPersonService() {
  WSPersonServiceService service = null;
  URL url = null;
  String serviceName = "WSPersonServiceService";
  if ((url = generateServiceURL(serviceName, "WSPersonService.wsdl")) != null) {
   ****service = new WSPersonServiceService(url, new QName(namespaceURI,
     serviceName));****
  } else {
   return null;
  }

  WSPersonService proxy = service.getWSPersonService();
  return proxy;

Returning:

[11/21/17 14:36:16:532 GMT] 0000002b HUSITIMWebSer 1 com.hus.commerce.member.itimws.util.HUSITIMWebServiceClientUtil getWSPersonService Url: http://:/itim/services/WSPersonServiceService/WEB-INF/wsdl/WSPersonService.wsdl Name space: http://ift.tt/2jJU1D2 Service name: WSPersonServiceService [11/21/17 14:36:16:533 GMT] 0000002b CommerceSrvr E com.ibm.commerce.command.ECCommandTarget executeCommand CMN0420E: The following command exception has occurred during processing: "java.lang.InstantiationError: com.ibm.itim.ws.services.WSPersonServiceService". java.lang.InstantiationError: com.ibm.itim.ws.services.WSPersonServiceService at com.hus.commerce.member.itimws.util.HUSITIMWebServiceClientUtil.getWSPersonService(HUSITIMWebServiceClientUtil.java:123) at com.hus.commerce.member.itimws.commands.HUSSearchPersonTaskCmdImpl.searchPerson(HUSSearchPersonTaskCmdImpl.java:75) at com.hus.commerce.member.itimws.commands.HUSSearchPersonTaskCmdImpl.performExecute(HUSSearchPersonTaskCmdImpl.java:49) at com.ibm.commerce.command.ECCommandTarget.executeCommand(ECCommandTarget.java:157) at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java:332) at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java:166) at com.ibm.commerce.command.MeasuredCacheableCommandImpl.execute(MeasuredCacheableCommandImpl.java:63) at com.ibm.commerce.command.AbstractECTargetableCommand.execute(AbstractECTargetableCommand.java:199) at com.husb2b.commerce.member.commands.HUSPreUserRegistrationAdminAddCmdImpl.checkLogonIdInITIM(HUSPreUserRegistrationAdminAddCmdImpl.java:533) at com.husb2b.commerce.member.commands.HUSPreUserRegistrationAdminAddCmdImpl.validateParameters(HUSPreUserRegistrationAdminAddCmdImpl.java:421) at com.ibm.commerce.command.ECCommandTarget.executeCommand(ECCommandTarget.java:135) at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java:332) at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java:166) at com.ibm.commerce.command.MeasuredCacheableCommandImpl.execute(MeasuredCacheableCommandImpl.java:63) at com.ibm.commerce.command.AbstractECTargetableCommand.execute(AbstractECTargetableCommand.java:199) at com.ibm.commerce.usermanagement.commands.UserRegistrationAdminAddCmdImpl.setRequestProperties(UserRegistrationAdminAddCmdImpl.java:150) at com.husb2b.commerce.member.commands.HUSDealerRegistrationAdminAddCmdImpl.performExecute(HUSDealerRegistrationAdminAddCmdImpl.java:54) at com.ibm.commerce.command.ECCommandTarget.executeCommand(ECCommandTarget.java:157) at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java:332) at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java:166) at com.ibm.commerce.command.MeasuredCacheableCommandImpl.execute(MeasuredCacheableCommandImpl.java:63) at com.ibm.commerce.command.AbstractECTargetableCommand.execute(AbstractECTargetableCommand.java:199) at com.ibm.commerce.component.BaseComponentImpl.executeCommand(BaseComponentImpl.java:202) 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:2778) at com.ibm.commerce.struts.AjaxAction.invokeService(AjaxAction.java:501) at com.ibm.commerce.struts.AjaxAction.executeAction(AjaxAction.java:312) at com.ibm.commerce.struts.AjaxAction.execute(AjaxAction.java:125)

====================

curl http://:/itim/services/WSPersonServiceService works fine and the WSDL contains the operation which is failing.. Any ideas how to trace this further or what this could be?




Aucun commentaire:

Enregistrer un commentaire