A
Andreas Beresko
Hi,
I'm trying to serialize a JTree and get following error on runtime:
java.io.NotSerializableException:
javax.swing.plaf.basic.BasicTextUI$UpdateHandler
at java.ibjectOutputStream.writeObject0(Unknown Source)
at java.ibjectOutputStream.access$100(Unknown Source)
....
at java.ibjectOutputStream.writeObject(Unknown Source)
at javax.swing.tree.DefaultMutableTreeNode.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
....
at javax.swing.JTree.writeObject(Unknown Source)
....
very suprising: i was able to serialize it with version 1.4.2 but now in
version 1.5 i can't - a bug???
best regards
Andreas
I'm trying to serialize a JTree and get following error on runtime:
java.io.NotSerializableException:
javax.swing.plaf.basic.BasicTextUI$UpdateHandler
at java.ibjectOutputStream.writeObject0(Unknown Source)
at java.ibjectOutputStream.access$100(Unknown Source)
....
at java.ibjectOutputStream.writeObject(Unknown Source)
at javax.swing.tree.DefaultMutableTreeNode.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
....
at javax.swing.JTree.writeObject(Unknown Source)
....
very suprising: i was able to serialize it with version 1.4.2 but now in
version 1.5 i can't - a bug???
best regards
Andreas