Errors Serializing ResultSet object

Discussions

XML & Web services: Errors Serializing ResultSet object

  1. Errors Serializing ResultSet object (2 messages)

    The error below happens only when i run this bean with Tomcat - but when i independently run it - it is causing no problems. Help Anyone ?

    Thanks
    ///////////////////////////////////////////
    Null Pointer : java.lang.NullPointerException
            at org.apache.xalan.serialize.SerializerToXML.writeAttrString(Serializer
    ToXML.java:2001)
            at org.apache.xalan.serialize.SerializerToXML.processAttribute(Serialize
    rToXML.java:957)
            at org.apache.xalan.serialize.SerializerToXML.startElement(SerializerToX
    ML.java:829)
            at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Tra
    nsformerIdentityImpl.java:982)
            at org.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:284)
            at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:119)
            at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
    ormerIdentityImpl.java:320)
            at serRS.writetoString(serRS.java:237)
            at _0002fsimplebean_0002ejspsimplebean_jsp_9._jspService(_0002fsimplebea
    n_0002ejspsimplebean_jsp_9.java:164)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspSer
    vlet.java:130)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
    vlet.java:282)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:4
    29)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
    05)
            at org.apache.tomcat.core.Handler.service(Handler.java:287)
            at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
    )
            at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
    java:797)
            at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
    )
            at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
    n(HttpConnectionHandler.java:213)
            at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
    416)
            at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
    :501)
            at java.lang.Thread.run(Thread.java:484)
  2. Errors Serializing ResultSet object[ Go to top ]

    My undestanding is that ResultSet is not serializable. You may have to use RowSet.

    Pranab
  3. Errors Serializing ResultSet object[ Go to top ]

    Thanks pranab. I found a way to fix it.