Announcement Announcement Module
Collapse
No announcement yet.
Error retreiving data using remote services Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error retreiving data using remote services

    Hi All,

    I am using jpetstore. Its working fine. I created order and accessed using remote service also..now I Created on table users and what to fetch records using remote services. I am getting this error...I didn't understand where I have done wrong.

    Calling OrderService 'jaxRpcProxy' with user ID 1
    Mar 31, 2005 12:54:39 PM org.apache.axis.client.Call invoke
    SEVERE: Exception:
    org.xml.sax.SAXException: Deserializing parameter 'getUserReturn': could not find deserializer for type {urn:JPe
    tStore}Users
    at org.apache.axis.message.RPCHandler.onStartChild(RP CHandler.java:302)
    at org.apache.axis.encoding.DeserializationContextImp l.startElement(DeserializationContextImpl.java:963 )
    at org.apache.axis.message.SAX2EventRecorder.replay(S AX2EventRecorder.java:198)
    at org.apache.axis.message.MessageElement.publishToHa ndler(MessageElement.java:722)
    at org.apache.axis.message.RPCElement.deserialize(RPC Element.java:233)
    at org.apache.axis.message.RPCElement.getParams(RPCEl ement.java:347)
    at org.apache.axis.client.Call.invoke(Call.java:2272)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at org.apache.axis.client.AxisClientProxy.invoke(Axis ClientProxy.java:186)
    at $Proxy3.getUser(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.invoke(JaxRpcPortClientInterceptor.j av
    a:302)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :1
    39)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy1.getUser(Unknown Source)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.invokeOrderServices(OrderSer vi
    ceClient.java:47)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.main(OrderServiceClient.java :7
    9)
    Exception in thread "main" org.springframework.remoting.RemoteAccessException : Cannot access JAX-RPC service [{ht
    tp://localhost:8080/jpetstore/axis/OrderService}OrderService]; nested exception is org.apache.axis.AxisFault: ; n
    ested exception is:
    org.xml.sax.SAXException: Deserializing parameter 'getUserReturn': could not find deserializer for type
    {urn:JPetStore}Users
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: Deserializing parameter 'getUserReturn': could not find deseri
    alizer for type {urn:JPetStore}Users
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Deserializing parameter 'getUserReturn
    ': could not find deserializer for type {urn:JPetStore}Users
    at org.apache.axis.message.RPCHandler.onStartChild(RP CHandler.java:302)
    at org.apache.axis.encoding.DeserializationContextImp l.startElement(DeserializationContextImpl.java:963 )
    at org.apache.axis.message.SAX2EventRecorder.replay(S AX2EventRecorder.java:198)
    at org.apache.axis.message.MessageElement.publishToHa ndler(MessageElement.java:722)
    at org.apache.axis.message.RPCElement.deserialize(RPC Element.java:233)
    at org.apache.axis.message.RPCElement.getParams(RPCEl ement.java:347)
    at org.apache.axis.client.Call.invoke(Call.java:2272)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at org.apache.axis.client.AxisClientProxy.invoke(Axis ClientProxy.java:186)
    at $Proxy3.getUser(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.invoke(JaxRpcPortClientInterceptor.j av
    a:302)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :1
    39)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy1.getUser(Unknown Source)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.invokeOrderServices(OrderSer vi
    ceClient.java:47)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.main(OrderServiceClient.java :7
    9)


    org.xml.sax.SAXException: Deserializing parameter 'getUserReturn': could not find deserializer for type {urn:JPe
    tStore}Users
    at org.apache.axis.AxisFault.makeFault(AxisFault.java :129)
    at org.apache.axis.client.Call.invoke(Call.java:2275)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at org.apache.axis.client.AxisClientProxy.invoke(Axis ClientProxy.java:186)
    at $Proxy3.getUser(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.invoke(JaxRpcPortClientInterceptor.j av
    a:302)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :1
    39)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy1.getUser(Unknown Source)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.invokeOrderServices(OrderSer vi
    ceClient.java:47)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.main(OrderServiceClient.java :7
    9)
    Caused by: org.xml.sax.SAXException: Deserializing parameter 'getUserReturn': could not find deserializer for ty
    pe {urn:JPetStore}Users
    at org.apache.axis.message.RPCHandler.onStartChild(RP CHandler.java:302)
    at org.apache.axis.encoding.DeserializationContextImp l.startElement(DeserializationContextImpl.java:963 )
    at org.apache.axis.message.SAX2EventRecorder.replay(S AX2EventRecorder.java:198)
    at org.apache.axis.message.MessageElement.publishToHa ndler(MessageElement.java:722)
    at org.apache.axis.message.RPCElement.deserialize(RPC Element.java:233)
    at org.apache.axis.message.RPCElement.getParams(RPCEl ement.java:347)
    at org.apache.axis.client.Call.invoke(Call.java:2272)
    ... 14 more

    D:\jpetstore\client>client.bat 1

    D:\jpetstore\client>C:\j2sdk1.4.2_05/bin/java -cp aopalliance.jar;axis.jar;saaj.jar;wsdl4j.jar;hessi an-2.1.12.jar
    ;burlap-2.1.12.jar;jaxrpc.jar;commons-collections.jar;commons-discovery.jar;commons-logging.jar;spring.jar;jpetst
    ore.jar org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient 1
    Mar 31, 2005 12:58:08 PM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from file [D:\jpetstore\client\clientContext.xml]
    Mar 31, 2005 12:58:08 PM org.springframework.context.support.AbstractXmlApp licationContext refreshBeanFactory
    INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlA pplicationContext;h
    ashCode=14491894]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [propertyC
    onfigurer,hessianProxy,burlapProxy,httpInvokerProx y,jaxRpcProxy]; Root of BeanFactory hierarchy
    Mar 31, 2005 12:58:08 PM org.springframework.context.support.AbstractApplic ationContext refresh
    INFO: 5 beans defined in ApplicationContext [org.springframework.context.support.FileSystemXmlA pplicationContext;
    hashCode=14491894]
    Mar 31, 2005 12:58:08 PM org.springframework.beans.factory.support.Abstract BeanFactory getBean
    INFO: Creating shared instance of singleton bean 'propertyConfigurer'
    Mar 31, 2005 12:58:08 PM org.springframework.beans.factory.config.PropertyR esourceConfigurer postProcessBeanFacto
    ry
    INFO: Loading properties from file [D:\jpetstore\client\client.properties]
    Mar 31, 2005 12:58:08 PM org.springframework.context.support.AbstractApplic ationContext initMessageSource
    INFO: No MessageSource found for context [org.springframework.context.support.FileSystemXmlA pplicationContext;has
    hCode=14491894]: using empty default
    Mar 31, 2005 12:58:08 PM org.springframework.context.support.AbstractApplic ationContext initApplicationEventMulti
    caster
    INFO: No ApplicationEventMulticaster found for context [org.springframework.context.support.FileSystemXmlA pplicat
    ionContext;hashCode=14491894]: using default
    Mar 31, 2005 12:58:08 PM org.springframework.context.support.AbstractApplic ationContext refreshListeners
    INFO: Refreshing listeners
    Mar 31, 2005 12:58:08 PM org.springframework.beans.factory.support.DefaultL istableBeanFactory preInstantiateSingl
    etons
    INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFacto
    ry defining beans [propertyConfigurer,hessianProxy,burlapProxy,httpIn vokerProxy,jaxRpcProxy]; Root of BeanFactory
    hierarchy]
    Mar 31, 2005 12:58:08 PM org.springframework.beans.factory.support.Abstract BeanFactory getBean
    INFO: Creating shared instance of singleton bean 'hessianProxy'
    Mar 31, 2005 12:58:09 PM org.springframework.beans.factory.support.Abstract BeanFactory getBean
    INFO: Creating shared instance of singleton bean 'burlapProxy'
    Mar 31, 2005 12:58:09 PM org.springframework.beans.factory.support.Abstract BeanFactory getBean
    INFO: Creating shared instance of singleton bean 'httpInvokerProxy'
    Mar 31, 2005 12:58:09 PM org.springframework.beans.factory.support.Abstract BeanFactory getBean
    INFO: Creating shared instance of singleton bean 'jaxRpcProxy'
    Mar 31, 2005 12:58:17 PM org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor afterPropertiesSet
    INFO: Using service interface [org.springframework.samples.jpetstore.domain.logic .OrderService] for JAX-RPC objec
    t [{http://localhost:8080/jpetstore/axis/OrderService}OrderService] - not directly implemented
    Calling OrderService 'jaxRpcProxy' with user ID 1
    Mar 31, 2005 12:58:19 PM org.apache.axis.client.Call invoke
    SEVERE: Exception:
    org.xml.sax.SAXException: Deserializing parameter 'getUserReturn': could not find deserializer for type {urn:JPe
    tStore}Users
    at org.apache.axis.message.RPCHandler.onStartChild(RP CHandler.java:302)
    at org.apache.axis.encoding.DeserializationContextImp l.startElement(DeserializationContextImpl.java:963 )
    at org.apache.axis.message.SAX2EventRecorder.replay(S AX2EventRecorder.java:198)
    at org.apache.axis.message.MessageElement.publishToHa ndler(MessageElement.java:722)
    at org.apache.axis.message.RPCElement.deserialize(RPC Element.java:233)
    at org.apache.axis.message.RPCElement.getParams(RPCEl ement.java:347)
    at org.apache.axis.client.Call.invoke(Call.java:2272)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at org.apache.axis.client.AxisClientProxy.invoke(Axis ClientProxy.java:186)
    at $Proxy3.getUser(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.invoke(JaxRpcPortClientInterceptor.j av
    a:302)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :1
    39)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy1.getUser(Unknown Source)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.invokeOrderServices(OrderSer vi
    ceClient.java:47)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.main(OrderServiceClient.java :7
    9)
    Exception in thread "main" org.springframework.remoting.RemoteAccessException : Cannot access JAX-RPC service [{ht
    tp://localhost:8080/jpetstore/axis/OrderService}OrderService]; nested exception is org.apache.axis.AxisFault: ; n
    ested exception is:
    org.xml.sax.SAXException: Deserializing parameter 'getUserReturn': could not find deserializer for type
    {urn:JPetStore}Users
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: Deserializing parameter 'getUserReturn': could not find deseri
    alizer for type {urn:JPetStore}Users
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Deserializing parameter 'getUserReturn
    ': could not find deserializer for type {urn:JPetStore}Users
    at org.apache.axis.message.RPCHandler.onStartChild(RP CHandler.java:302)
    at org.apache.axis.encoding.DeserializationContextImp l.startElement(DeserializationContextImpl.java:963 )
    at org.apache.axis.message.SAX2EventRecorder.replay(S AX2EventRecorder.java:198)
    at org.apache.axis.message.MessageElement.publishToHa ndler(MessageElement.java:722)
    at org.apache.axis.message.RPCElement.deserialize(RPC Element.java:233)
    at org.apache.axis.message.RPCElement.getParams(RPCEl ement.java:347)
    at org.apache.axis.client.Call.invoke(Call.java:2272)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at org.apache.axis.client.AxisClientProxy.invoke(Axis ClientProxy.java:186)
    at $Proxy3.getUser(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.invoke(JaxRpcPortClientInterceptor.j av
    a:302)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :1
    39)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy1.getUser(Unknown Source)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.invokeOrderServices(OrderSer vi
    ceClient.java:47)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.main(OrderServiceClient.java :7
    9)


    org.xml.sax.SAXException: Deserializing parameter 'getUserReturn': could not find deserializer for type {urn:JPe
    tStore}Users
    at org.apache.axis.AxisFault.makeFault(AxisFault.java :129)
    at org.apache.axis.client.Call.invoke(Call.java:2275)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at org.apache.axis.client.AxisClientProxy.invoke(Axis ClientProxy.java:186)
    at $Proxy3.getUser(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.invoke(JaxRpcPortClientInterceptor.j av
    a:302)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :1
    39)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy1.getUser(Unknown Source)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.invokeOrderServices(OrderSer vi
    ceClient.java:47)
    at org.springframework.samples.jpetstore.service.clie nt.OrderServiceClient.main(OrderServiceClient.java :7
    9)
    Caused by: org.xml.sax.SAXException: Deserializing parameter 'getUserReturn': could not find deserializer for ty
    pe {urn:JPetStore}Users
    at org.apache.axis.message.RPCHandler.onStartChild(RP CHandler.java:302)
    at org.apache.axis.encoding.DeserializationContextImp l.startElement(DeserializationContextImpl.java:963 )
    at org.apache.axis.message.SAX2EventRecorder.replay(S AX2EventRecorder.java:198)
    at org.apache.axis.message.MessageElement.publishToHa ndler(MessageElement.java:722)
    at org.apache.axis.message.RPCElement.deserialize(RPC Element.java:233)
    at org.apache.axis.message.RPCElement.getParams(RPCEl ement.java:347)
    at org.apache.axis.client.Call.invoke(Call.java:2272)
    ... 14 more



    Kind Regards,
    K.V.S Koteswar Rao,
    Systems Analyst.

  • #2
    Could you solve the prob

    Hi,

    I realise it's been a while since you had this problem, but could you solve it?

    I am having the same issue. Please have a look at my posting... http://forum.springframework.org/sho...zing+parameter

    Thanks!

    Nicolas

    Comment


    • #3
      isse solved

      Ok, I think I fixed the issue. It was a namespace issue in my postProcessJaxRpcService method (and had nothing to do with Spring in the first place.

      Thanks

      Nicolas

      Comment

      Working...
      X