Results 1 to 3 of 3

Thread: SerializationException trying to invoke very simple WebLogic web service

  1. #1
    Join Date
    Dec 2007
    Posts
    2

    Question SerializationException trying to invoke very simple WebLogic web service

    This completely baffles me. I hope one of y'all can help. It's probably something very simple, but I can't see it.

    I've created a very simple web service in WebLogic:

    Code:
    package eborders.webservice.example;
    
    import javax.jws.*;
    
    @WebService
    public class Example {
    	@WebMethod
    	public void process(String aString) 
    	{
    		System.out.println(aString + aString + aString);
    	}
    }
    (Told ya it was simple.) Then I set up a bean, using values based on the WSDL WebLogic generates, that's supposed to invoke this service:

    Code:
    <bean id="webServiceBean"
             class="org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean">
    	<property name="serviceInterface" value="test.IWebService"/>
    	<property name="portInterface" value="test.IRemoteWebService"/>
    	<property name="wsdlDocumentUrl" value="http://localhost:7001/WebService/Example?WSDL"/>
    	<property name="namespaceUri" value="http://test/example"/>
    	<property name="serviceName" value="ExampleService"/>
    	<property name="portName" value="ExampleSoapPort"/>
    </bean>
    However, when my Spring environment tries to invoke the service, I get a JAXRPCException ultimately caused by a SerializationException:

    Code:
    WARNING: Exception executing job: Could not connect to remote service [{http://test/example}ExampleSoapPort]; nested exception is java.rmi.RemoteException: Failed to invoke; nested exception is:
            javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException:  failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://test/example']:process}
    org.springframework.remoting.RemoteConnectFailureException: Could not connect to remote service [{http://test/example}ExampleSoapPort]; nested exception is java.rmi.RemoteException: Failed to invoke; nested exception is:
            javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException:  failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://test/example']:process}
    Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
            javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException:  failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://test/example']:process}
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at weblogic.webservice.core.rpc.StubImpl.throwRemoteException(StubImpl.java:269)
            at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:254)
            at $Proxy49.process(Unknown Source)
            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.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(RmiClientInterceptorUtils.java:107)
            at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.doInvoke(JaxRpcPortClientInterceptor.java:615)
            at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.doInvoke(JaxRpcPortClientInterceptor.java:592)
            at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:571)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
            at $Proxy50.process(Unknown Source)
            at test.WebServiceJob.execute(WebServiceJob.java:14)
            at test.IndirectJob.execute(IndirectJob.java:114)
            at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by: javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException:  failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://test/example']:process}
            at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:334)
            at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:250)
            ... 16 more
    Can anyone give me any hints as to what I'm missing? Thanks in advance.

  2. #2
    Join Date
    Dec 2007
    Posts
    2

    Default

    I forgot: I'm working with WebLogic Server 9.2.2 and Spring 2.0.7.

  3. #3
    Join Date
    Apr 2005
    Posts
    5

    Default

    I encountered the same issue. Has anyone able to resolve this?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •