-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
swing1.0fcs
-
x86
-
windows_nt
-
Verified
I tried to serialize DefaultTreeModel with Motif Look&Feel and I got not-serializable TreeLeafIcon exception below:
java.io.NotSerializableException: java.awt.swing.motif.MotifTreeCellRenderer$Tre
eLeafIcon
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:718)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1347)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:348)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:765)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1347)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:348)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:765)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.io.ObjectOutputStream.outputArray(ObjectOutputStream.java:695)
at java.io.ObjectOutputStream.checkSpecialClasses(ObjectOutputStream.jav
a:328)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:199)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1347)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:348)
at java.awt.Container.writeObject(Container.java:1268)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java
:1366)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:761)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1347)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:348)
at java.awt.swing.basic.BasicTreeUI.writeObject(BasicTreeUI.java:1588)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java
:1366)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:761)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.awt.swing.event.EventListenerList.writeObject(EventListenerList.
java:214)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java
:1366)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:761)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1347)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:348)
at java.awt.swing.tree.DefaultTreeModel.writeObject(DefaultTreeModel.jav
a:403)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java
:1366)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:761)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at SerialListTest$1.actionPerformed(SerialListTest.java:33)
at java.awt.swing.AbstractButton.fireActionPerformed(AbstractButton.java
:765)
at java.awt.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abs
tractButton.java:800)
at java.awt.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonMo
del.java:314)
at java.awt.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:
212)
at java.awt.swing.basic.BasicButtonListener.mouseReleased(BasicButtonLis
tener.java:137)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
29)
at java.awt.Component.processMouseEvent(Component.java:2495)
at java.awt.Component.processEvent(Component.java:2338)
at java.awt.Container.processEvent(Container.java:889)
at java.awt.Component.dispatchEventImpl(Component.java:1909)
at java.awt.Container.dispatchEventImpl(Container.java:934)
at java.awt.Component.dispatchEvent(Component.java:1824)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1541
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1450)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1382)
at java.awt.Container.dispatchEventImpl(Container.java:921)
at java.awt.Window.dispatchEventImpl(Window.java:517)
at java.awt.Component.dispatchEvent(Component.java:1824)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)
java.io.NotSerializableException: java.awt.swing.motif.MotifTreeCellRenderer$Tre
eLeafIcon
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:718)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1347)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:348)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:765)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1347)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:348)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:765)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.io.ObjectOutputStream.outputArray(ObjectOutputStream.java:695)
at java.io.ObjectOutputStream.checkSpecialClasses(ObjectOutputStream.jav
a:328)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:199)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1347)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:348)
at java.awt.Container.writeObject(Container.java:1268)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java
:1366)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:761)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1347)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:348)
at java.awt.swing.basic.BasicTreeUI.writeObject(BasicTreeUI.java:1588)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java
:1366)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:761)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.awt.swing.event.EventListenerList.writeObject(EventListenerList.
java:214)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java
:1366)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:761)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1347)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:348)
at java.awt.swing.tree.DefaultTreeModel.writeObject(DefaultTreeModel.jav
a:403)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java
:1366)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:761)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:251)
at SerialListTest$1.actionPerformed(SerialListTest.java:33)
at java.awt.swing.AbstractButton.fireActionPerformed(AbstractButton.java
:765)
at java.awt.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abs
tractButton.java:800)
at java.awt.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonMo
del.java:314)
at java.awt.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:
212)
at java.awt.swing.basic.BasicButtonListener.mouseReleased(BasicButtonLis
tener.java:137)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
29)
at java.awt.Component.processMouseEvent(Component.java:2495)
at java.awt.Component.processEvent(Component.java:2338)
at java.awt.Container.processEvent(Container.java:889)
at java.awt.Component.dispatchEventImpl(Component.java:1909)
at java.awt.Container.dispatchEventImpl(Container.java:934)
at java.awt.Component.dispatchEvent(Component.java:1824)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1541
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1450)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1382)
at java.awt.Container.dispatchEventImpl(Container.java:921)
at java.awt.Window.dispatchEventImpl(Window.java:517)
at java.awt.Component.dispatchEvent(Component.java:1824)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)