0 Replies Latest reply on May 3, 2005 5:36 PM by sachin mehta

    parameter mismatch while passing null

    sachin mehta Newbie

      Hello,

      We are migrating our app. from jboss 3.2.1 to jboss 4.0.1sp1.
      We have web services running on jboss.net which are being called by .NET client.
      One of the methods in web service has 3 parameters in foll. order,
      String,Date,Date

      From the .NET client if the first parameter gets passed as null then jboss.net is using second parameter for the first parameter and it errors out saying

      2005-05-03 16:35:07,928 ERROR [org.apache.axis.providers.java.RPCInvocation] org.xml.sax.SAXException: Bad types (class java.util.Calendar -> class java.lang.String)
      org.xml.sax.SAXException: Bad types (class java.util.Calendar -> class java.lang.String)
      at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:333)
      at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1166)
      at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:244)
      at org.apache.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1387)
      at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:262)
      at org.apache.axis.message.RPCElement.getParams(RPCElement.java:396)
      at org.apache.axis.providers.java.RPCInvocation.prepareFromRequestEnvelope(RPCInvocation.java:234)
      at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:103)
      at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:358)
      at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:160)
      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
      at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:560)
      at org.apache.axis.server.AxisServer.invoke(AxisServer.java:355)
      at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:975)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

      It tries to use date as a string.
      Our app works fine with jboss3.2.1 with no problems.
      Can someone please help?

      Thanks.