1 Reply Latest reply on Jan 14, 2019 4:39 AM by asoldano

    Apache CXF Exception: java.lang.RuntimeException: Could not find conduit initiator for address

    sonali2222

      This is my code from where I am calling my Service.

      public static String getProperty(String propertyName) { log.info("Class: PropertyUtility.class Method:getProperty-entry propertyName Start:"+propertyName);

          String env = null; 
      String result=null;
      try { if (env == null)
      { env = "dev"; } 
      String SERVER_URI = "http://22.241.65.54:8080/RAO_BOC/rest/Generic/getProperty?propName="+propertyName+"&env="+env;
      log.info("URL"+SERVER_URI);
      RestTemplate restTemplate = new RestTemplate(); 
      HttpEntity<?> entity = null;
      HashMap<String, String> map = new HashMap<String, String>();
      SimpleClientHttpRequestFactory rf = (SimpleClientHttpRequestFactory) restTemplate.getRequestFactory();
      rf
      .setReadTimeout(20*1000);
      rf
      .setConnectTimeout(20*1000);
      ResponseEntity<String> response = restTemplate.exchange(SERVER_URI, HttpMethod.GET, entity, String.class, map);
      result = response.getBody(); 
      log
      .info("Property value from DB "+result);
      }catch (Exception e)
      { e.printStackTrace(); }
      log
      .info("Class: PropertyUtility.class Method:getProperty-end propertyName End:"+propertyName);  return result; }

      But my java is throwing this exception:

      java.lang.RuntimeException: Could not find conduit initiator for address:http://jgodsr000000305.ocorp.dsarena.com:7849/tcvm and transport: http://schemas.xmlsoap.org/soap/http at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:224) at org.apache.cxf.endpoint.AbstractConduitSelector.createConduit(AbstractConduitSelector.java:153) at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:108) at org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit(UpfrontConduitSelector.java:77) at org.apache.cxf.endpoint.ClientImpl.getConduit(ClientImpl.java:879) at com.absa.jbpm.bem.util.SSLUtil.configureSSL(SSLUtil.java:24) at com.absa.jbpm.bem.client.OEDQ_SanctionCheck.invokeOEDQ_SanctionCheckBEM(OEDQ_SanctionCheck.java:79) at com.absa.jbpm.test.BEMServices.testOEDQ_SanctionCheck(BEMServices.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

      Please Help me with this.