Skip to main content

Painting error, not sure if it as anything to do with JXLayer.

3 replies [Last post]
navinkjha
Offline
Joined: 2004-12-28

Alex,

I had a client application running for a few days and it would connect and disconnect to a server application once in a while. When the client application disconnected it would lock itself(using JXLayer of course). On one of the machines I get the following error. I haven't been able to reproduce it. I also saw a couple of bugs Swing, AWT posted (6622760 , 6588271) that have a similiar error.
I haven't been able to reproduce it so far. Below is the error:

----------------------------------------------------------------------------------------------------------------------

2008-11-27 19:37:48,303 [AWT-EventQueue-0] FATAL threading.m - Uncaught Exception, Thread[AWT-EventQueue-0,6,spine] terminating!
java.lang.InternalError: HTHEME is null
at sun.awt.windows.ThemeReader.paintBackground(Native Method)
at sun.awt.windows.ThemeReader.paintBackground(Unknown Source)
at com.sun.java.swing.plaf.windows.XPStyle$SkinPainter.paintToImage(Unknown Source)
at sun.swing.CachedPainter.paint0(Unknown Source)
at sun.swing.CachedPainter.paint(Unknown Source)
at com.sun.java.swing.plaf.windows.XPStyle$Skin.paintSkin(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsToolBarUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexfromsun
Offline
Joined: 2005-09-05

Hello Navin

This is an error in WinLaf's native code and
I am sure it is not related to JXLayer
(moreover there is no any mention of JXLayer in the stack trace)

It would be very helpful if you could give us any information
about how we can reproduce this error

Thanks
alexp

navinkjha
Offline
Joined: 2004-12-28

Alex,

I am trying to get to the bottom of this. It has something to do with having a dual monitor system and doing a remote desktop to the that machine with application running. After that logging back to that machine directly. I am guessing some adjustment happens to reposition the screen back and forth (dual-single-dual monitor). On a machine with 1.5 running it didn't happen. On a machine with a specific version 1.6 running it did happen. I saw in swing forum(I think) that directdraw has be reworked in one of the 1.6 versions. Also resizing the application threw a different error this time:

2008-12-02 16:12:28,037 [AWT-EventQueue-0] ERROR System.err - Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Buffers have not been created
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at sun.awt.windows.WComponentPeer.getBackBuffer(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.Component$FlipBufferStrategy.getBackBuffer(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.Component$FlipBufferStrategy.updateInternalBuffers(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.Component$FlipBufferStrategy.revalidate(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.Component$FlipBufferStrategy.revalidate(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.Component$FlipBufferStrategy.getDrawGraphics(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at javax.swing.BufferStrategyPaintManager.prepare(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at javax.swing.RepaintManager.paint(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at javax.swing.JComponent.paint(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.Container.paint(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.event.InvocationEvent.dispatch(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.EventQueue.dispatchEvent(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
2008-12-02 16:12:28,052 [AWT-EventQueue-0] ERROR System.err - at java.awt.EventDispatchThread.run(Unknown Source)

alexfromsun
Offline
Joined: 2005-09-05

Hello Navin

It is very difficult to understand what's going on there with no specific details,
if you could check if e.g. SwingSet2 throws the same exception in that configuration
it would be really helpful

Thanks
alexp