[jdom-interest] Is org.jdom.Namespace serizable ?

Sun, Hung-Jen (Eric) Eric.Sun at celera.com
Fri Feb 23 12:41:19 PST 2001


Greetings Folks,

	I'm trying to use Object-based HTTP communication to share
org.jdom.Elemnt objects between my servlets, but when I tried to write
objects (actually the org.jdom.Element were each wrapped in another
serizable object) into ObjectOutputStream, I got the following exception
back:

	Does any have the same problem and know how to solve it?  Thanks!
	I use JDK1.3 & JDOM-b4.

-Eric
  
       at
com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandler.ja
va:96)
java.io.NotSerializableException: org.jdom.Namespace
       at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
       at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
       at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
       at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
       at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
       at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
       at java.util.LinkedList.writeObject(LinkedList.java:666)
       at java.lang.reflect.Method.invoke(Native Method)
       at
java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java:1878)
       at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1210)
       at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
       at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
       at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
       at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
       at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
       at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
       at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
       at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
       at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
       at
java.io.ObjectOutputStream.outputArray(ObjectOutputStream.java:1098)
       at
java.io.ObjectOutputStream.checkSubstitutableSpecialClasses(ObjectOutputStre
am.java:456)
       at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:361)
       at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
       at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
       at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
       at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
       at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
       at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
       at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
       at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
       at
com.celera.portal.servlets.HtmlTreeGenServlet.sendRequestObject(HtmlTreeGenS
ervlet.java:413)
       at
com.celera.portal.servlets.HtmlTreeGenServlet.doGet(HtmlTreeGenServlet.java:
95)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
       at com.livesoftware.jrun.JRun.runServlet(JRun.java:321)

-----------------------------------------------

Hung-Jen (Eric) Sun
Applet Team, Delivery Systems
Celera Genomics
45 West Gude Drive
Rockville, MD 20850
Phone: (240)4533-3536
E-mail: eric.sun at celera.com




More information about the jdom-interest mailing list