| | |
persisting the session
![]() |
•
•
Join Date: Feb 2007
Posts: 10
Reputation:
Solved Threads: 0
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
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
- Session end (PHP)
- Session variable (ASP.NET)
- session variable:again (ASP.NET)
- how can i used session and cookies ??? (PHP)
- How to maintain session for Web Services Object? (VB.NET)
Other Threads in the Java Forum
- Previous Thread: string tokenizer
- Next Thread: ExpApproximator
| Thread Tools | Search this Thread |
2dgraphics 3d @param affinetransform android api applet application arc arguments array arrays automation banking binary bluetooth byte chat chatprogramusingobjects class client code color compare component count database design detection eclipse eclipsedevelopment encryption error fractal game givemetehcodez graphics gridlayout gui guitesting helpwithhomework html ide if_statement image input integer interface j2me java java.xls javadesktopapplications javaprojects jni jpanel julia keytool keyword linux list loop macintosh map method methods mobile netbeans newbie object os pong problem producer program programming project projectideas read recursion reference replaysolutions rim scanner server set size sms sort sql string swing terminal threads transforms tree ui unicode validation web windows





