axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "albert quinn" <albertber...@gmail.com>
Subject Re: Error in BeanSerializer
Date Thu, 02 Aug 2007 19:53:55 GMT
  Hi Ashish !!! :

  I'm a newbie in the Axis 2 world, but i've faced a problem similar
to yours. Perhaps when you send the response from the WebService,
you're returning an object from a class which it's not a bean class.
Add getters and setters methods to that class and a no parameters
constructor. I hope it helps!!!.

2007/8/2, Ashish Kulkarni <ashish.kulkarni13@gmail.com>:
> Hi
> I am getting the following error when i am trying to send a response from
> Webservice,
>
> what does this mean
>
>
> 2007-08-02 14:44:37,038 ERROR [http-4080-Processor25] ser.BeanSerializer
> (BeanSerializer.java :274) - Exception:
> java.lang.NullPointerException
> at
> org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:265)
> at
> org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java
> :1502)
> at
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:978)
> at
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:732)
> at org.apache.axis.encoding.ser.BeanSerializer.serialize
> (BeanSerializer.java:230)
> at
> org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1502)
> at
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:978)
> at
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:732)
> at
> org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
> at
> org.apache.axis.encoding.SerializationContext.serializeActual
> (SerializationContext.java:1502)
> at
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:978)
> at
> org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:799)
> at
> org.apache.axis.message.RPCParam.serialize(RPCParam.java:208)
> at
> org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
> at
> org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
> at
> org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
> at
> org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
> at
> org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
> at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
> at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
> at org.apache.axis.Message.writeTo(Message.java:539)
> at org.apache.axis.transport.http.AxisServlet.sendResponse
> (AxisServlet.java:902)
> at
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:777)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at org.apache.axis.transport.http.AxisServletBase.service
> (AxisServletBase.java:327)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:534)
>
>
> Ashish
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message