Im still hanging on this problem:

The calling servlet receives data from the web-interface and builds a JDOM-object call mydoc. Then I build a ServletContext-object and put the JDOM-object into it:

ServletContext con = this.getServletContext();
   con.setAttribute("jdom_object",mydoc);
   // Und das Datenbank-Servlet aufgerufen
RequestDispatcher rq = con.getRequestDispatcher("/DBAccessor/datenbankeingabe");

So far everthing works fine, at least doesn't creat an exception!

The called servlet receives this JDOM-object from the ServletContext:

import org.jdom.*;
.....
...

Document mydoc = (Document) this.getServletContext().getAttribute("jdom_object");
and this seems to be okay.
But if I put this mydoc into a Tamino XML-Object:

TXMLObject tobj = TXMLObject.newInstance ( mydoc );

I get this dump:

java.lang.NullPointerException
        
com.softwareag.tamino.db.api.objectModel.TXMLObjectFactory.newXMLObject(Unknown 
Source)
        com.softwareag.tamino.db.api.objectModel.TXMLObject.newInstance(Unknown 
Source)
        DatenbankEingabe.doGet(DatenbankEingabe.java:28)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

BUT, when I do this in just one servlet ( creating a JDOM-object and put it into this Tamino-Object ) it works!!!

Where ist the problem?

Thank you.

Gruss Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to