ronpar123 0 Newbie Poster

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.