1 Reply Latest reply on Aug 2, 2016 7:15 PM by karianna

    Cannot consume 3rd party web service

    3289074

      Hi,

       

      I am getting the following error in the web sphere logs when trying to create a new instance of the Client object that is used to consume a 3rd part web service on the server. This works fine locally in JDeveloper.

      JDeveloper version: 11.1.1.5.0

      Web Sphere version:WebSphere 8.5.5.0.

      Proxy Generated Stub: JAX-RPC Web Services/  JAX-RPC Web Logic Client

       

      Java:

       

      CustomerManagementPortTypePortClient client;

      try {

       

          client = new CustomerManagementPortTypePortClient();

       

      } catch (Exception ex) {
                     
                      //RI: call to logger - log the beginning of the business service method processing using app ID
                      context.getBSSVLogger().app(context, "Exception - Exception\"", "\n", ex.getCause().getMessage().toString(), null);
                                             
                      E1Message msg = new E1Message(context, "550002", ex.getCause().getMessage());
                      //TODO:  add messages returned from E1 processing to BusinessService message list.
                      messages.addMessage(msg);

      }

       

      public CustomerManagementPortTypePortClient() throws Exception {
              CustomerManagementService service = new CustomerManagementService_Impl();
              _port = service.getCustomerManagementServicePort();
      }

       

      Web Sphere Log:

       

      7/26/16 10:46:22:996 CDT]     FFDC Exception:javax.xml.rpc.FactoryFinder$ConfigurationError SourceId:javax.xml.rpc.ServiceFactory.newInstance ProbeId:108
      javax.xml.rpc.FactoryFinder$ConfigurationError:
      Provider oracle.j2ee.ws.client.ServiceFactoryImpl not found
      at javax.xml.rpc.FactoryFinder.newInstance(FactoryFinder.java:155)
      at javax.xml.rpc.FactoryFinder.find(FactoryFinder.java:189)
      at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:122)
      at com.ibm.ws.Transaction.wstx.WSATServices$1.run(WSATServices.java:82)
      at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
      at com.ibm.ws.Transaction.wstx.WSATServices.<clinit>(WSATServices.java:74)
      at java.lang.J9VMInternals.initializeImpl(Native Method)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:236)
      at com.ibm.ws.Transaction.wstx.WSATSOAPClientHandler.<clinit>(WSATSOAPClientHandler.java:154)
      at java.lang.J9VMInternals.initializeImpl(Native Method)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:236)
      at java.lang.Class.forNameImpl(Native Method)
      at java.lang.Class.forName(Class.java:219)
      at com.ibm.ws.webservices.engine.utils.ClassUtils$1.run(ClassUtils.java:164)
      at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
      at com.ibm.ws.webservices.engine.utils.ClassUtils.forName(ClassUtils.java:157)
      at com.ibm.ws.webservices.engine.deployment.wsdd.WSDDJAXRPCHandlerInfo.getJavaClass(WSDDJAXRPCHandlerInfo.java:326)
      at com.ibm.ws.webservices.engine.deployment.wsdd.WSDDJAXRPCHandlerInfo.getHandlerInfo(WSDDJAXRPCHandlerInfo.java:299)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator$WASHandler.createWSDDJAXRPCHandlerInfo(WebServicesEngineConfigurationGenerator.java:661)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator$WASHandler.access$200(WebServicesEngineConfigurationGenerator.java:526)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator$WASHandlers.add(WebServicesEngineConfigurationGenerator.java:728)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator$WASConfig.add(WebServicesEngineConfigurationGenerator.java:933)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator$WASConfig.add(WebServicesEngineConfigurationGenerator.java:868)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator.privilegedInit(WebServicesEngineConfigurationGenerator.java:1382)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator.access$500(WebServicesEngineConfigurationGenerator.java:142)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator$3.run(WebServicesEngineConfigurationGenerator.java:1206)
      at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator._init(WebServicesEngineConfigurationGenerator.java:1202)
      at com.ibm.ws.webservices.engine.lifecycle.LifeCycleObjectImpl.init(LifeCycleObjectImpl.java:112)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator.init(WebServicesEngineConfigurationGenerator.java:1189)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator.loadConfiguration(WebServicesEngineConfigurationGenerator.java:253)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator.getConfigGeneratorInternal(WebServicesEngineConfigurationGenerator.java:218)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator.createServerDeployment(WebServicesEngineConfigurationGenerator.java:336)
      at com.ibm.ws.webservices.configuration.WebServicesEngineConfigurationGenerator.createServerDeployment(WebServicesEngineConfigurationGenerator.java:320)
      at com.ibm.ws.webservices.metadata.ServerModuleMetaData.getDeployment(ServerModuleMetaData.java:160)
      at com.ibm.ws.webservices.metadata.ServerModuleMetaData.collaboratorStarted(ServerModuleMetaData.java:227)
      at com.ibm.ws.webservices.collaborators.WebCollaborator.started(WebCollaborator.java:272)
      at com.ibm.ws.webcontainer.webapp.WebAppImpl.notifyStart(WebAppImpl.java:1447)
      at com.ibm.ws.webcontainer.webapp.WebGroup.notifyStart(WebGroup.java:458)
      at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:183)
      at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)
      at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
      at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
      at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1175)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
      at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:774)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2182)
      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
      at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:994)
      at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:502)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862)

       

       

      JDE BSSV Logs:

       

      15 Jul 2016 17:35:07,994 [Line -1] [Thread-56] [SEVERE]  - [BSSVFRAMEWORK]    [Context ID: 10.10.2.164:52346:1468622105358:0]    Requested BSSV Method com.mfaoil.bssv.J5501012.CreateUpdateCustomerProcessor.createCustomer cannot be invoked: java.lang.reflect.InvocationTargetException
      15 Jul 2016 17:35:07,994 [Line -1] [Thread-56] [DEBUG ]  - [BSSVFRAMEWORK]    About to send response for msgID: 85798
      15 Jul 2016 17:40:05,365 [Line -1] [Thread-65-TransactionReaper] [DEBUG ]  - [JAS]             Removing old transactions
      15 Jul 2016 17:41:38,435 [Line -1] [Jde_Server_Listener_Thread] [SEVERE]  - [NET]             Created new InConnection, port=6021
      15 Jul 2016 17:41:38,435 [Line -1] [In_Connection_2] [DEBUG ]  - [NET]             ServerListener new connections: 2
      15 Jul 2016 17:41:38,435 [Line -1] [In_Connection_2] [DEBUG ]  - [NET]             putMsg done
      15 Jul 2016 17:41:38,435 [Line -1] [Thread-41] [DEBUG ]  - [NET]             getQueue done
      15 Jul 2016 17:41:38,435 [Line -1] [Thread-41] [DEBUG ]  - [BSSVFRAMEWORK]    Initializing PingServerMsgHandler
      15 Jul 2016 17:41:38,435 [Line -1] [Thread-41] [DEBUG ]  - [BSSVFRAMEWORK]    Initializing CallSBFMsgHandler
      15 Jul 2016 17:41:38,435 [Line -1] [Thread-77] [DEBUG ]  - [BSSVFRAMEWORK]    BSSV Server Java kernel received msg type: 16202
      15 Jul 2016 17:41:38,435 [Line -1] [Thread-77] [DEBUG ]  - [BSSVFRAMEWORK]    Entering CallSBF Handler
      15 Jul 2016 17:41:38,435 [Line -1] [Thread-77] [DEBUG ]  - [BSSVFRAMEWORK]    No matching E1Principal in cache - creating new
      15 Jul 2016 17:41:38,435 [Line -1] [Thread-77] [WARN  ]  - [JAS]             SecurityServer already exists, no override allowed