Is the null pointer exception because of trying to access the dao? Are you setting the dao in your beans?
Sarav wrote: > > I want to resue my business logic from struts action class file > to create a web services without changing any code. I put my logic > in service.impl classes file and invoke the method from action > file. > I can't access the dao.getObject(class,id). > > Whether we need to create a separate dao for access the web services. > > It throws exception in server : > > org.codehaus.xfire.fault.XFireFault : Fault: > java.lang.NullPointerException > at > org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:68) > at > org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage > (ServiceInvocationHandler.java:271) > at > org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:85) > at > org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute > (ServiceInvocationHandler.java:132) > at > org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:107) > 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.transport.http.XFireServlet.doPost(XFireServlet.java > :116) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > > -- View this message in context: http://www.nabble.com/Need-Help-for-Web-services-using-struts-framework-tf3232220s2369.html#a9015051 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]