Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-1917

fabric-cxf-demo-client "java.lang.IllegalArgumentException: The AlternateAddressList is empty, please fresh the list shortly."

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.2
    • jboss-fuse-6.1, jboss-fuse-6.1 on OSE
    • CXF, Examples, Fabric8 v1
    • None
    • % %
    • Hide
      1. create fabric
      2. deploy example-cxf profile to a container
      3. get the sources zip and the pom file of the example-cxf client for the current product version, e.g. https://repository.jboss.org/nexus/content/repositories/ea/org/fusesource/examples/fabric-cxf-demo-client/1.0.0.redhat-394/
      4. edit src/main/java/io/fabric8/demo/cxf/client/Client.java to match your zookeeper URL and password
      5. mvn clean package exec:java
      Show
      create fabric deploy example-cxf profile to a container get the sources zip and the pom file of the example-cxf client for the current product version, e.g. https://repository.jboss.org/nexus/content/repositories/ea/org/fusesource/examples/fabric-cxf-demo-client/1.0.0.redhat-394/ edit src/main/java/io/fabric8/demo/cxf/client/Client.java to match your zookeeper URL and password mvn clean package exec:java

    Description

      The fabric-cxf-demo-client fails with

      java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.xml.ws.soap.SOAPFaultException: The AlternateAddressList is empty, please fresh the list shortly.
      	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:157)
      	at com.sun.proxy.$Proxy51.sayHello(Unknown Source)
      	at io.fabric8.demo.cxf.client.Client.main(Client.java:91)
      	... 6 more
      Caused by: java.lang.IllegalArgumentException: The AlternateAddressList is empty, please fresh the list shortly.
      	at io.fabric8.cxf.RandomLoadBalanceStrategy.getNextAlternateAddress(RandomLoadBalanceStrategy.java:32)
      	at io.fabric8.cxf.LoadBalanceTargetSelector.getNextConduit(LoadBalanceTargetSelector.java:93)
      	at io.fabric8.cxf.LoadBalanceTargetSelector.getSelectedConduit(LoadBalanceTargetSelector.java:74)
      	at io.fabric8.cxf.LoadBalanceTargetSelector.prepare(LoadBalanceTargetSelector.java:59)
      	at org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:886)
      	at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:560)
      	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474)
      	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377)
      	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330)
      	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
      	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
      	... 8 more
      

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: