3 Replies Latest reply on Aug 11, 2009 1:07 PM by Flavio Magacho

    Problem in a WSclient (JBoss 4.2.3) to connect .NET servers

    Flavio Magacho Newbie

      Hi,
      I'm using a WebServer(Client) integration with a .Net server .
      I got 2 servers connecting to this partner, one of them is a JBoss 4.0.3 and this works fine.
      The other server is a JBoss 4.2.3 and it works in most of the cases, but eventualy I got an error like this:


      javax.xml.soap.SOAPException: java.io.IOException: Could not transmit message
       at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:113)
       at org.jboss.ws.core.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:64)
       at com.m4u.components.creditcardcommunication.redecardcommunication.RedecardAdapter.authorize(RedecardAdapter.java:264)
       at com.m4u.autorecharge.facade.AdapterHolder.authorize(AdapterHolder.java:89)
       at com.m4u.autorecharge.facade.RechargePaymentFacade.authorizePayment(RechargePaymentFacade.java:66)
       at com.m4u.autorecharge.facade.RechargeFacade.authorizePayment(RechargeFacade.java:504)
       at com.m4u.autorecharge.service.ejb.CustomerManagerBean.tryAuthorizePayment(CustomerManagerBean.java:1016)
       at com.m4u.autorecharge.service.ejb.CustomerManagerBean.processRecharge(CustomerManagerBean.java:821)
       at com.m4u.autorecharge.service.ejb.CustomerManagerBean.processCreateRecharge(CustomerManagerBean.java:745)
       at com.m4u.autorecharge.service.ejb.CustomerManagerBean.executeCreateCustomer(CustomerManagerBean.java:540)
       at com.m4u.autorecharge.service.ejb.CustomerManagerBean.createCustomer(CustomerManagerBean.java:232)
       at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
       at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
       at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
       at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:240)
       at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:210)
       at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:84)
       at $Proxy92.createCustomer(Unknown Source)
       at com.m4u.autorecharge.ussd.servlet.CadastroOiControleServlet.service(CadastroOiControleServlet.java:167)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.io.IOException: Could not transmit message
       at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:255)
       at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:73)
       at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:104)
       ... 60 more
      Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Invalid HTTP server response [404] - Not Found. Response: Not Found/404.
       at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:348)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:137)
       at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
       at org.jboss.remoting.Client.invoke(Client.java:1634)
       at org.jboss.remoting.Client.invoke(Client.java:548)
       at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:233)
       ... 62 more
      Caused by: org.jboss.ws.WSException: Invalid HTTP server response [404] - Not Found
       at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:77)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:518)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:307)
       ... 67 more
      


      Talking to the partners thei told me that I1m using a header: transfer-encoding: chunked that is not suported by their servers.
      I tried to turn off this encoding, by using this configuration:


      <client-config>
       <config-name>Standard Client</config-name>
       <feature>http://org.jboss.ws/dispatch/validate</feature>
       <property>
       <property-name>http://org.jboss.ws/http#chunksize</property-name>
       <property-value>0</property-value>
       </property>
       </client-config>
      


      in the standard-jaxws-client-config.xml but the problem persists.

      Did anyone knows how to change this settings?

      Thanks

        • 1. Re: Problem in a WSclient (JBoss 4.2.3) to connect .NET serv
          Flavio Magacho Newbie

          I found somenthing interresting:

          The error event´s that I found were all made from a RMI connection to EJB3 call.
          And the one´s that works were all made by calling th same EJB3 via WS.

          Here you have the 2 stack.

          This one is an EJB3 direct call.

          [STDERR] java.lang.Exception
          [STDERR] at com.m4u.components.creditcardcommunication.redecardcommunication.RedecardAdapter.authorize(RedecardAdapter.java:276)
          [STDERR] at com.m4u.autorecharge.facade.AdapterHolder.authorize(AdapterHolder.java:89)
          [STDERR] at com.m4u.autorecharge.facade.RechargePaymentFacade.authorizePayment(RechargePaymentFacade.java:66)
          [STDERR] at com.m4u.autorecharge.facade.RechargeFacade.authorizePayment(RechargeFacade.java:504)
          [STDERR] at com.m4u.autorecharge.service.ejb.CustomerManagerBean.tryAuthorizePayment(CustomerManagerBean.java:1023)
          [STDERR] at com.m4u.autorecharge.service.ejb.CustomerManagerBean.processRecharge(CustomerManagerBean.java:828)
          [STDERR] at com.m4u.autorecharge.service.ejb.CustomerManagerBean.processCreateRecharge(CustomerManagerBean.java:752)
          [STDERR] at com.m4u.autorecharge.service.ejb.CustomerManagerBean.executeCreateCustomer(CustomerManagerBean.java:547)
          [STDERR] at com.m4u.autorecharge.service.ejb.CustomerManagerBean.createCustomer(CustomerManagerBean.java:232)
          [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
          [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
          [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
          [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
          [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          >>>>>
          [STDERR] at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103)
          [STDERR] at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:221)
          [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466)
          [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)
          [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)
          [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)
          [STDERR] at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
          >>>>>
          [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
          [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
          [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
          [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
          [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
          [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
          [STDERR] at java.lang.Thread.run(Thread.java:619)


          and this is a WS call to the same EJB3:
          [STDERR] java.lang.Exception
          [STDERR] at com.m4u.components.creditcardcommunication.redecardcommunication.RedecardAdapter.authorize(RedecardAdapter.java:276)
          [STDERR] at com.m4u.autorecharge.facade.AdapterHolder.authorize(AdapterHolder.java:89)
          [STDERR] at com.m4u.autorecharge.facade.RechargePaymentFacade.authorizePayment(RechargePaymentFacade.java:66)
          [STDERR] at com.m4u.autorecharge.facade.RechargeFacade.authorizePayment(RechargeFacade.java:504)
          [STDERR] at com.m4u.autorecharge.service.ejb.CustomerManagerBean.tryAuthorizePayment(CustomerManagerBean.java:1023)
          [STDERR] at com.m4u.autorecharge.service.ejb.CustomerManagerBean.processRecharge(CustomerManagerBean.java:828)
          [STDERR] at com.m4u.autorecharge.service.ejb.CustomerManagerBean.processCreateRecharge(CustomerManagerBean.java:752)
          [STDERR] at com.m4u.autorecharge.service.ejb.CustomerManagerBean.executeCreateCustomer(CustomerManagerBean.java:547)
          [STDERR] at com.m4u.autorecharge.service.ejb.CustomerManagerBean.createCustomer(CustomerManagerBean.java:232)
          [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
          [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
          [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
          [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
          [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          >>>>>
          [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
          [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:81)
          [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
          [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
          [STDERR] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
          [STDERR] at $Proxy170.createCustomer(Unknown Source)
          [STDERR] at com.m4u.autorecharge.ussd.servlet.CadastroOiControleServlet.service(CadastroOiControleServlet.java:161)
          >>>>>
          [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
          [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
          [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
          [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
          [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
          [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)


          . . . anyone?

          • 2. Re: Problem in a WSclient (JBoss 4.2.3) to connect .NET serv
            John Ament Master

            the fact that your oriiginal stack trace mentions

            Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Invalid H
            TTP server response [404] - Not Found. Response: Not Found/404.

            means that

            - the request is making it to the server.
            - the server is failing to return anything since it can't find the URL.

            i've previously gotten the chunking exception, and it's typically in the form of invalid request, response, where you're sending the data in parts, but the server begins parsing it right away. a 404 wouldn't be the result.

            • 3. Re: Problem in a WSclient (JBoss 4.2.3) to connect .NET serv
              Flavio Magacho Newbie

              The [404] is the answer from our partner, when he got a transfer-encoding: chunked for protection agains Deny os service attacs, he returns 404 as an answer.

              The fact is that depending on the context (EJB or WS) the code (Soap Request) works in two diferent ways.

              WS
              POST /virtual/wsi/cap.asmx HTTP/1.1
              SOAPAction: "http://qqcoisa.com.br/GetAuthorized"
              Content-Type: text/xml; charset=UTF-8
              JBoss-Remoting-Version: 22
              User-Agent: JBossRemoting - 2.2.2.SP8
              Host: ecommerce.redecard.com.br
              Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
              Connection: keep-alive
              Content-Length: 860
              

              JNDI Remote / Local
              POST /virtual/ws/cap.asmx HTTP/1.1
              SOAPAction: "http://qqcoisa.com.br/GetAuthorized"
              Content-Type: text/xml; charset=UTF-8
              JBoss-Remoting-Version: 22
              User-Agent: JBossRemoting - 2.2.2.SP8
              Host: ecommerce.redecard.com.br
              Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
              Connection: keep-alive
              Transfer-Encoding: chunked