4 Replies Latest reply on May 15, 2008 7:27 AM by Sivanantham RG

    HELP with error "Can not connect http client invoker"

    mr662 Newbie

      My development environment is
      jboss 4.0.5.GA
      jbossws-1.0.4.GA

      Trying to consume remote web-services from an MDB, using "service-ref" element in the deployment descriptor as mentioned in the JBossWS User guide. While invoking a web-service method, I get the following exception. I have looked through the forums but did not find any relevant help...

      I have already tried to increase the timeout value to 2 minutes using StubExt class... same results. My standalone client (outside of Jboss) works fine.

      Here is the exception stack

      13:18:47,103 ERROR [CallImpl] Call invocation failed with unkown Exception
      javax.xml.soap.SOAPException: Could not transmit message
       at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:204)
       at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687)
       at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
       at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
       at $Proxy73.getSipCacheStatus(Unknown Source)
       at com.mycompany.enms.status.PollClusterMDB.pollCluster(PollClusterMDB.java:120)
       at com.mycompany.enms.status.PollClusterMDB.onMessage(PollClusterMDB.java:144)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
       at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
       at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
       at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
       at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT.java:47)
       at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
       at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
       at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
       at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
       at org.jboss.ejb.Container.invoke(Container.java:954)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:987)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1287)
       at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
       at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:905)
       at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
       at org.jboss.mq.SpySession.run(SpySession.java:323)
       at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
       at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
       at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:201)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
       at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
       at org.jboss.remoting.Client.invoke(Client.java:525)
       at org.jboss.remoting.Client.invoke(Client.java:488)
       at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:189)
       ... 32 more
      Caused by: java.net.ConnectException: Connection timed out: connect
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
       at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
       at java.net.Socket.connect(Socket.java:516)
       at sun.net.NetworkClient.doConnect(NetworkClient.java:152)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
       at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
       at sun.net.www.http.HttpClient.New(HttpClient.java:287)
       at sun.net.www.http.HttpClient.New(HttpClient.java:299)
       at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:796)
       at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:748)
       at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:673)
       at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:840)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:163)
       ... 37 more



        • 1. Re: HELP with error
          mr662 Newbie

          My mistake... was using the wrong endpoint address.

          • 2. Re: HELP with error
            mr662 Newbie

            Now that I figured out that I was using the wrong endpoint address, my next question [to the jboss team] is why is this exception logged at ERROR level by the "org.jboss.ws.jaxrpc.CallImpl" class? My endpoints are dynamic and I know them only at run time and its perfectly normal for some of the endpoints (network devices in my case) to be down. I don't want to clutter my log with these exceptions.

            Currently only way i can suppress these is by changing the log4j.xml, but I am afraid that by doing this some of the other important ERROR messages will be filtered out.

            <category name="org.jboss.ws.jaxrpc.CallImpl">
             <priority value="FATAL"/>
             </category>


            Does it make sense to not log this exception at ERROR level??

            • 3. Re: HELP with error
              Jayaprakash Raghavan Newbie

              Ajay, I am facing the same problem. My endpoint is correct. Have any other chance to get this same error?

              • 4. How to get Senders Information
                Sivanantham RG Newbie

                I am working on to rerieve the below details in my custom action class in my ESB service.

                1. Details of the destination - Service to which the request to be routed.
                2. Details of the sender ( service requestor URL;functionality similar to the result of getRemoteHost() method of ServletRequest API)

                I browsed through the Call / EPR / PortReference API, but i didnt find methods that suits my requirement. I am new to JBoSS so dont have much clue on this.

                I appreciate your help in this regard,

                Thanks in advance.