2 Replies Latest reply: Aug 26, 2010 3:43 PM by DarrylBurke RSS

    System.out.println crashes wireless toolkit

    843851
      I'm using system.out.println calls to create debugging commands to test my application. They mostly work but if I try to print out a lot at once the wireless toolkit crashes.

      This is all on my computer, not on any mobile device.

      The error I get is:
      Exception in thread "Child process stdout copier" java.lang.ClassCastException: sun.java2d.NullSurfaceData cannot be cast to sun.java2d.d3d.D3DSurfaceData
           at sun.java2d.d3d.D3DRenderer.copyArea(D3DRenderer.java:55)
           at sun.java2d.d3d.D3DSurfaceData.copyArea(D3DSurfaceData.java:638)
           at sun.java2d.SunGraphics2D.doCopyArea(SunGraphics2D.java:1986)
           at sun.java2d.SunGraphics2D.copyArea(SunGraphics2D.java:1968)
           at javax.swing.BufferStrategyPaintManager.copyArea(BufferStrategyPaintManager.java:315)
           at javax.swing.RepaintManager.copyArea(RepaintManager.java:1228)
           at javax.swing.JViewport.blitDoubleBuffered(JViewport.java:1604)
           at javax.swing.JViewport.windowBlitPaint(JViewport.java:1573)
           at javax.swing.JViewport.setViewPosition(JViewport.java:1118)
           at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.vsbStateChanged(BasicScrollPaneUI.java:1027)
           at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:1016)
           at javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:348)
           at javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:285)
           at javax.swing.DefaultBoundedRangeModel.setValue(DefaultBoundedRangeModel.java:151)
           at javax.swing.JScrollBar.setValue(JScrollBar.java:446)
           at com.sun.kvem.toolbar.MainWindow$ConsoleStream.write(Unknown Source)
           at java.io.PrintStream.write(PrintStream.java:430)
           at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
           at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
           at com.sun.kvem.environment.StreamCopier.run(Unknown Source)
           at java.lang.Thread.run(Thread.java:619)
      Am I doing something wrong or is this a bug in the toolkit?

      Once I get this exception the whole toolkit becomes unresponsive and I have to close it and re-open.