NullPointerException in Aegis while testing out/inout parameters
----------------------------------------------------------------

                 Key: XFIRE-1086
                 URL: http://jira.codehaus.org/browse/XFIRE-1086
             Project: XFire
          Issue Type: Bug
    Affects Versions: 1.1.2
         Environment: Windows 2003, JDK 1.5.0_07, Spring 2.0 M5, Resin 3.0.19
            Reporter: Philip St-Pierre
            Assignee: Tomasz Sztelak
             Fix For: 1.2.6


A simple interface

package test;

import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.ws.Holder;

@WebService(serviceName = "Foo")
public interface Foo {
        boolean bar(String inStr, @WebParam(mode = WebParam.Mode.INOUT)
        Holder<String> outStr);
}

and the implementation

package test;

import javax.jws.WebService;
import javax.xml.ws.Holder;

@WebService(endpointInterface = "test.Foo")
public class FooImpl implements Foo {

        public boolean bar(String inStr, Holder<String> outStr) {
                outStr.value = "Hello " + inStr;
                System.out.println("inStr: " + inStr);
                System.out.println("outStr: " + outStr.value);
                return true;
        }

}

use org.springframework.web.servlet.DispatcherServlet and 
org.codehaus.xfire.spring.remoting.XFireExporter to export the service.
when invoked, error occured:

ERROR-[2006-07-12 14:13:48,903] Fault occurred!
java.lang.NullPointerException
        at 
org.codehaus.xfire.aegis.type.basic.HolderType.readObject(HolderType.java:54)
        at 
org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:94)
        at 
org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:208)
        at 
org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:50)
        at 
org.codehaus.xfire.jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java:148)
        at 
org.codehaus.xfire.jaxws.JAXWSBinding.readMessage(JAXWSBinding.java:55)
        at 
org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
        at 
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:110)
        at 
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:61)
        at 
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
        at 
org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServletController.java:261)
        at 
org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:120)
        at 
org.codehaus.xfire.spring.remoting.XFireServletControllerAdapter.handleRequest(XFireServletControllerAdapter.java:63)
        at 
org.codehaus.xfire.spring.remoting.XFireExporter.handleRequest(XFireExporter.java:44)
        at 
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
        at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:797)
        at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:727)
        at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
        at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:154)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
        at 
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
        at 
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178)
        at 
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
        at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268)
        at com.caucho.server.port.TcpConnection.run(TcpConnection.java:389)
        at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:507)
        at com.caucho.util.ThreadPool.run(ThreadPool.java:433)
        at java.lang.Thread.run(Thread.java:595)




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to