2 Replies Latest reply on May 2, 2003 10:13 AM by ejain

    Axis Un/Deployment

    derget

      Hi,

      i'm using JBoss 3.2.0 RC3. When I deploy a webservice in a wsr-file and test it, everything works fine.
      After that I changed some logic (not the parameter) and deploy the service again. (delete and copy)
      I get the following exception:

      <-- schnipp -->
      AxisFault
      faultCode: {http://xml.apache.org/axis/}Server.generalException
      faultString: Tried to invoke method public void de.topsystem.p106_601.message_broker.axis.EMAdapter.receive(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.
      faultActor: null
      faultDetail:
      stackTrace: AxisFault
      faultCode: {http://xml.apache.org/axis/}Server.generalException
      faultString: Tried to invoke method public void de.topsystem.p106_601.message_broker.axis.EMAdapter.receive(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.
      faultActor: null
      faultDetail:

      Tried to invoke method public void de.topsystem.p106_601.message_broker.axis.EMAdapter.receive(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.
      at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:135)
      at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:942)
      ...
      <-- schnapp -->

      The only way to get the webservice running is to restart the server!!!

      Is there a workaround? - Has anyone the same problems?

      Many thanx
      Claus Peters

        • 1. Re: Axis Un/Deployment
          doug.palmer

          I think I am having the same problem in JBoss 3.2.0, did you find a fix? This is the stack trace I get:

          17:38:28,921 INFO [RPCProvider] Tried to invoke method public java.lang.String Calculator.echo(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.
          java.lang.IllegalArgumentException: object is not an instance of declaring class
          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:324)
          at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:372)
          at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:292)
          at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:276)
          at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
          at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
          at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
          at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:437)
          at org.apache.axis.server.AxisServer.invoke(AxisServer.java:316)
          at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:701)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
          at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
          at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
          at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
          at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
          at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
          at org.mortbay.http.HttpServer.service(HttpServer.java:863)
          at org.jboss.jetty.Jetty.service(Jetty.java:460)
          at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
          at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
          at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
          at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
          at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
          at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
          17:38:28,921 ERROR [AxisServlet] Exception:
          AxisFault
          faultCode: {http://xml.apache.org/axis/}Server.generalException
          faultString: Tried to invoke method public java.lang.String Calculator.echo(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.
          faultActor: null
          faultDetail:

          Tried to invoke method public java.lang.String Calculator.echo(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.
          at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:311)
          at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:276)
          at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
          at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
          at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
          at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:437)
          at org.apache.axis.server.AxisServer.invoke(AxisServer.java:316)
          at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:701)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
          at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
          at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
          at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
          at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
          at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
          at org.mortbay.http.HttpServer.service(HttpServer.java:863)
          at org.jboss.jetty.Jetty.service(Jetty.java:460)
          at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
          at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
          at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
          at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
          at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
          at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
          Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
          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:324)
          at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:372)
          at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:292)
          ... 24 more

          • 2. Re: Axis Un/Deployment
            ejain

            Same problem here, with JBoss 3.2.0. I have to restart the server everytime I need to redeploy an application with a web service interface!