3 Replies Latest reply on Mar 9, 2011 4:58 PM by Michael LaBrot

    IllegalArgumentException in camel route

    Daryl Hoyt Newbie

      Hi All,

       

          I am new to Servicemix, and I am trying to create take a SOAP request, log the request, route it to another server to handle it, and log the response value.  The problem is when I try it, I end up getting "java.lang.IllegalArgumentException: host parameter is null".  When I looked into it, I found that there was an issue with this in 2.1 and 2.2, but fixed in 2.3.0 (CAMEL-2510).  I am currently using apache-servicemix-4.3.1-fuse-00-00.  Below is my camel-context and the configure method (I tried both the XML and Java DSL).  Any help in resolving this issue or providing a workaround would be very appreciated.

       

       

      Thanks,

       

      Daryl Hoyt

       

       

       

       

       

       

       

       

      OR

       

       

       

      @Override

          public void configure() throws Exception

          {

              from("jetty:http://localhost:8192/LoggedMemberService")

              .to("http://otherServer:8080/MemberService").handleFault();

          }