Issue Details (XML | Word | Printable)

Key: JDNC_INCUBATOR-4
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: jdnc-incubator-issues
Reporter: mangei
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
jdnc-incubator

XProperties$XTableState NotSerializableException

Created: 30/Jan/09 07:12 AM   Updated: 03/Feb/09 09:00 AM
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Time Tracking:
Not Specified

Environment:

Operating System: Windows XP
Platform: PC


Issuezilla Id: 4
Tags:
Participants: jdnc-incubator-issues, kleopatra and mangei


 Description  « Hide

I got an Exception during saving an Object.
I would like to save the TableState of an JXTable to a file (I don't know
another way to save it, if there is another, pls tell me). My task is to save
the TableState and at the next runtime to load the saved TableState.

To save the tablestate in an member variable works perfekt, but I need to save
it in a file, to load it again the next time.

Exception:
-------------

Caused by: java.io.NotSerializableException: app.XProperties$XTableState
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at app.ObjectSaver.save(ObjectSaver.java:22)

Can someone make it serializable or tell me another way to to my job?

Yours sincerely
mangei
mangei



kleopatra added a comment - 03/Feb/09 09:00 AM

technically, the incubator stuff is unsupported, so you are basically on your
own. Practically, we have problems in SwingX with serialization - which is not
fully supported (though it should, we have an open issue in the swingx project).
On the other hand, serialization is not the recommended mechanism for storage -
better use the newer xmlEncoder/Decoder mechansim (which is what the
LocalStorage of the appframework is doing).

HTH
Jeanette