wood burning stoves 2.0*
The moose likes Java in General and the fly likes Java Fault? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Fault?" Watch "Java Fault?" New topic
Author

Java Fault?

Steve Wood
Ranch Hand

Joined: Jan 08, 2003
Posts: 137
Hi guys,

I'm getting the following message on Java 1.4.2_07 bundled in Mac OSX Tiger 10.4.1:

Mac OS X Version 10.4.1 (Build 8B15)
2005-06-05 13:13:30 +0100
2005-06-05 13:13:37.291 SystemUIServer[215] lang is:en
Full thread dump Java HotSpot(TM) Client VM (1.4.2-50 mixed mode):

"AWT-EventQueue-0" prio=6 tid=0x00521040 nid=0x18fb800 runnable [f100d000..f1010ac0]
at apple.awt.CRenderer.xorSurfacePixels(Native Method)
at apple.awt.CPeerSurfaceData.xorSurfacePixels(CPeerSurfaceData.java:194)
at apple.awt.CompositeCRenderer.composite(CompositeCRenderer.java:444)
at apple.awt.CompositeCRenderer.doShape(CompositeCRenderer.java:206)
at apple.awt.CompositeCRenderer.fill(CompositeCRenderer.java:155)
- locked <0x65084c88> (a apple.awt.CompositeCRenderer)
at apple.awt.CompositeCRenderer.fillRect(CompositeCRenderer.java:97)
- locked <0x65084c88> (a apple.awt.CompositeCRenderer)
at sun.java2d.pipe.ValidatePipe.fillRect(ValidatePipe.java:46)
at sun.java2d.SunGraphics2D.fillRect(SunGraphics2D.java:2344)
at org.jgraph.graph.PortRenderer.paint(Unknown Source)
at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:134)
at org.jgraph.plaf.basic.BasicGraphUI.paintCell(Unknown Source)
at org.jgraph.plaf.basic.BasicGraphUI.paintPorts(Unknown Source)
at org.jgraph.plaf.basic.BasicGraphUI.paintForeground(Unknown Source)
at org.jgraph.plaf.basic.BasicGraphUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154)
at javax.swing.JComponent.paintComponent(JComponent.java:552)
at javax.swing.JComponent.paint(JComponent.java:840)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JViewport.paint(JViewport.java:720)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
at javax.swing.JComponent._paintImmediately(JComponent.java:4739)
at javax.swing.JComponent.paintImmediately(JComponent.java:4521)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:436)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

"AWT-Shutdown" prio=5 tid=0x00520d70 nid=0x190a000 in Object.wait() [f0d8b000..f0d8bac0]
at java.lang.Object.wait(Native Method)
- waiting on <0x65716610> (a java.lang.Object)
at java.lang.Object.wait(Object.java:429)
at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
- locked <0x65716610> (a java.lang.Object)
at java.lang.Thread.run(Thread.java:552)

"Java2D Disposer" daemon prio=10 tid=0x0051b750 nid=0x1912e00 in Object.wait() [f0f8f000..f0f8fac0]
at java.lang.Object.wait(Native Method)
- waiting on <0x6576c910> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
- locked <0x6576c910> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at sun.java2d.Disposer.run(Disposer.java:116)
at java.lang.Thread.run(Thread.java:552)

"TimerQueue" daemon prio=5 tid=0x005195d0 nid=0x18fc000 in Object.wait() [f0e0c000..f0e0cac0]
at java.lang.Object.wait(Native Method)
- waiting on <0x65765640> (a javax.swing.TimerQueue)
at javax.swing.TimerQueue.run(TimerQueue.java:231)
- locked <0x65765640> (a javax.swing.TimerQueue)
at java.lang.Thread.run(Thread.java:552)

"DestroyJavaVM" prio=5 tid=0x00501060 nid=0x1804600 waiting on condition [0..f0800210]

"AWT-AppKit" daemon prio=5 tid=0x0050cc60 nid=0xa000ef98 runnable [0..bfffe210]

"Signal Dispatcher" daemon prio=10 tid=0x005084a0 nid=0x1815400 waiting on condition [0..0]

"Finalizer" daemon prio=8 tid=0x00506f50 nid=0x1813800 in Object.wait() [f0a04000..f0a04ac0]
at java.lang.Object.wait(Native Method)
- waiting on <0x65710670> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
- locked <0x65710670> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x00506c20 nid=0x1803e00 in Object.wait() [f0983000..f0983ac0]
at java.lang.Object.wait(Native Method)
- waiting on <0x657106d8> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:429)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115)
- locked <0x657106d8> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=5 tid=0x005064a0 nid=0x1804e00 runnable

"VM Periodic Task Thread" prio=10 tid=0x00508350 nid=0x1814600 waiting on condition
"Exception Catcher Thread" prio=10 tid=0x00501260 nid=0x1804a00 runnable
Full thread dump Java HotSpot(TM) Client VM (1.4.2-50 mixed mode):

"AWT-EventQueue-0" prio=6 tid=0x00521040 nid=0x18fb800 runnable [f100d000..f1010ac0]
at apple.awt.CRenderer.xorSurfacePixels(Native Method)
at apple.awt.CPeerSurfaceData.xorSurfacePixels(CPeerSurfaceData.java:194)
at apple.awt.CompositeCRenderer.composite(CompositeCRenderer.java:444)
at apple.awt.CompositeCRenderer.doShape(CompositeCRenderer.java:206)
at apple.awt.CompositeCRenderer.fill(CompositeCRenderer.java:155)
- locked <0x65084c88> (a apple.awt.CompositeCRenderer)
at apple.awt.CompositeCRenderer.fillRect(CompositeCRenderer.java:97)
- locked <0x65084c88> (a apple.awt.CompositeCRenderer)
at sun.java2d.pipe.ValidatePipe.fillRect(ValidatePipe.java:46)
at sun.java2d.SunGraphics2D.fillRect(SunGraphics2D.java:2344)
at org.jgraph.graph.PortRenderer.paint(Unknown Source)
at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:134)
at org.jgraph.plaf.basic.BasicGraphUI.paintCell(Unknown Source)
at org.jgraph.plaf.basic.BasicGraphUI.paintPorts(Unknown Source)
at org.jgraph.plaf.basic.BasicGraphUI.paintForeground(Unknown Source)
at org.jgraph.plaf.basic.BasicGraphUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154)
at javax.swing.JComponent.paintComponent(JComponent.java:552)
at javax.swing.JComponent.paint(JComponent.java:840)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JViewport.paint(JViewport.java:720)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JComponent.paintChildren(JComponent.java:674)
- locked <0x65736800> (a java.awt.Component$AWTTreeLock)
at javax.swing.JComponent.paint(JComponent.java:849)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
at javax.swing.JComponent._paintImmediately(JComponent.java:4739)
at javax.swing.JComponent.paintImmediately(JComponent.java:4521)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:436)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

"AWT-Shutdown" prio=5 tid=0x00520d70 nid=0x190a000 in Object.wait() [f0d8b000..f0d8bac0]
at java.lang.Object.wait(Native Method)
- waiting on <0x65716610> (a java.lang.Object)
at java.lang.Object.wait(Object.java:429)
at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
- locked <0x65716610> (a java.lang.Object)
at java.lang.Thread.run(Thread.java:552)

"Java2D Disposer" daemon prio=10 tid=0x0051b750 nid=0x1912e00 in Object.wait() [f0f8f000..f0f8fac0]
at java.lang.Object.wait(Native Method)
- waiting on <0x6576c910> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
- locked <0x6576c910> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at sun.java2d.Disposer.run(Disposer.java:116)
at java.lang.Thread.run(Thread.java:552)

"TimerQueue" daemon prio=5 tid=0x005195d0 nid=0x18fc000 in Object.wait() [f0e0c000..f0e0cac0]
at java.lang.Object.wait(Native Method)
- waiting on <0x65765640> (a javax.swing.TimerQueue)
at javax.swing.TimerQueue.run(TimerQueue.java:231)
- locked <0x65765640> (a javax.swing.TimerQueue)
at java.lang.Thread.run(Thread.java:552)

"DestroyJavaVM" prio=5 tid=0x00501060 nid=0x1804600 waiting on condition [0..f0800210]

"AWT-AppKit" daemon prio=5 tid=0x0050cc60 nid=0xa000ef98 runnable [0..bfffe210]

"Signal Dispatcher" daemon prio=10 tid=0x005084a0 nid=0x1815400 waiting on condition [0..0]

"Finalizer" daemon prio=8 tid=0x00506f50 nid=0x1813800 in Object.wait() [f0a04000..f0a04ac0]
at java.lang.Object.wait(Native Method)
- waiting on <0x65710670> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
- locked <0x65710670> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x00506c20 nid=0x1803e00 in Object.wait() [f0983000..f0983ac0]
at java.lang.Object.wait(Native Method)
- waiting on <0x657106d8> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:429)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115)
- locked <0x657106d8> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=5 tid=0x005064a0 nid=0x1804e00 runnable

"VM Periodic Task Thread" prio=10 tid=0x00508350 nid=0x1814600 waiting on condition
"Exception Catcher Thread" prio=10 tid=0x00501260 nid=0x1804a00 runnable


Any ideas what it might mean and how I might get around the problem?

All the best,

Steve
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18545
    
  40

It looks like a debugging stack dump. With Linux, this is accomplished by sending the JVM a signal (3, if I remember correctly)... Sorry, don't know the MAC, so don't know what could be causing it.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Steve Wood
Ranch Hand

Joined: Jan 08, 2003
Posts: 137
Hi Henry,

I'm not sure what you mean by sending the JVM a signal - never done that before. Do you have a reference I can refer to?

Thanks for your help.

Steve
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18545
    
  40

It is done with the "kill" command. First, you need to figure out the PID of the JVM. This is done with the "ps" command with Linux, then you call "kill -3 {pid}". And the JVM will dump its stack.

The Mac is Unix based, so the commands is probably similar. But as I mentioned, I am not a Mac user, so can't confirm.

Henry
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
What were you doing when this error occurred?


Java API Documentation
The Java Tutorial
Steve Wood
Ranch Hand

Joined: Jan 08, 2003
Posts: 137
I was using jgraph (http://www.jgraph.com) - loading a graph. The graph didn't load and the system froze. It seems to happen whenever an element is added to the graph.

It works OK with metal L&F, but not with the Mac L&F. It's not perfect, but doesn't throw the error.

The component works fine on every other operating system - including the previous release of MacOSX 10.3.9.

Any help is much appreciated.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
I'm sorry, but I'm not familiar with MacOS. I hope this extra information will help someone else understand your problem and be able to provide more useful suggestions. I apologize that I cannot help any further, though.

Layne
Sanj Sharma
Ranch Hand

Joined: Feb 14, 2004
Posts: 32
Steve what is the ERRORID you are getting with this dump?
Steve Wood
Ranch Hand

Joined: Jan 08, 2003
Posts: 137
Hi Girish,

That's all I get unfortunately. If I run the app under NetBeans or Eclipse, it doesn't actually throw an error - it just freezes the application. Actually, I can't close it either or 'Force Quit' - to use apple parlance.

I tried using the kill command Henry mentioned, and the above output is the only information I get from the console. (it's "kill -QUIT {pid}" on Mac I believe).

I'm really stumped on this one - partly because my knowledge of Unix is pretty bad (appauling actually) and partly because I'm no Java guru.

Thanks for your help,

Steve
Arjun K
Ranch Hand

Joined: Mar 09, 2005
Posts: 39
Steve,

Try attaching hprof to the jgraph application. That might help you with some information to debug.

bash%> java -agentlib:hprof=heap=sites jGraph

See for more hprof command line options at:
http://java.sun.com/developer/technicalArticles/Programming/HPROF.html

Regards,
Arjun K.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Fault?
 
Similar Threads
How to resolve the "All threads (500) are currently busy" issue in Tomcat.
JTable
Error during socket connection
how to get Thread dumps
java threads implementation in linux