944,033 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1010
  • Java RSS
Feb 26th, 2007
0

persisting the session

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ronpar123 is offline Offline
10 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: string tokenizer
Next Thread in Java Forum Timeline: ExpApproximator





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC