Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5081305

Serialization code for Swing is throwing exception.

    XMLWordPrintable

    Details

      Description

      Serialization code for Swing is throwing exception.
      Unzip the attactment and
      Execute the Attached test case SerializeButton.
      In the Frame click on serialize button and then
      Clik on Deserialize button- it opens up another frame.
      This new frame is obtained from the desrialization of the data stores in SerFile.
      Clik on Deserialize on this new frame and it works exactly the same as the original frma- deserializes data and opnes up a new Frame.
      Now clik on serialize. The following exception is thrown.

      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
             at javax.swing.plaf.synth.SynthLookAndFeel.paintRegion(SynthLookAndFeel.java:352)
             at javax.swing.plaf.synth.SynthLookAndFeel.update(SynthLookAndFeel.java:316)
             at javax.swing.plaf.synth.SynthRootPaneUI.update(SynthRootPaneUI.java:77)
             at javax.swing.JComponent.paintComponent(JComponent.java:740)
             at javax.swing.JComponent.paint(JComponent.java:1003)
             at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930)
             at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
             at javax.swing.JComponent._paintImmediately(JComponent.java:4826)
             at javax.swing.JComponent.paintImmediately(JComponent.java:4633)
             at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
             at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(System.EventQueueUtilities.java:114)
             at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
             at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
             at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
             at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
             at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
             at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
             at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              smandalisunw Srinivas Mandalika (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Imported:
                Indexed: