persisting the session

Reply

Join Date: Feb 2007
Posts: 10
Reputation: ronpar123 is an unknown quantity at this point 
Solved Threads: 0
ronpar123 ronpar123 is offline Offline
Newbie Poster

persisting the session

 
0
  #1
Feb 26th, 2007
Hi,

i am trying to persist the session of my application. i have several complex objects, some of which may not be implementing serializable. i have started with retrieving the session and for each attribute in the session i generate an xml. the problem occurs when i try to convert back from the xml to object. the xml has all the data, but when i try to deserialize it, it gives me exceptions. One of which is:

com.skaringa.javaxml.DeserializerException: exception in initializer: null


Part of the xml formed is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<com.css.core.infra.ssm.NamespaceInfoDO xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="i0" xsi:type="com.css.core.infra.ssm.NamespaceInfoDO">
<baseDO xsi:type="com.css.core.util.data.DataObject" xsi:nil="true"/>
<extensionDO xsi:type="com.css.core.util.data.DataObject" xsi:nil="true"/>
<lastAccessTime xsi:type="xsd:long">1172493650182</lastAccessTime>
</com.css.core.infra.ssm.NamespaceInfoDO>

This xml was generated using Skaringa (http://skaringa.sourceforge.net/index.html)


Also for some objects where deserialization is possible only the object reference is returned, though the xml contains its structure.

If anyone has any suggestion, please help.
If you have any other way which you think might be better to persist the session, suggestions are most welcome.


Thanks,
Ruchita
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC