[This topic is migrated from our old forums. The original author name has been removed]
Found this when resuming my laptop from standby. Dbvis seemed to work fine after i closed the message box.
Regards,
Ivan
Long Message:
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
Details:
Type: java.lang.ClassCastException
Stack Trace:
java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
at sun.java2d.xr.XRPMBlitLoops.cacheToTmpSurface(XRPMBlitLoops.java:145)
at sun.java2d.xr.XrSwToPMBlit.Blit(XRPMBlitLoops.java:353)
at sun.java2d.SurfaceDataProxy.updateSurfaceData(SurfaceDataProxy.java:498)
at sun.java2d.SurfaceDataProxy.replaceData(SurfaceDataProxy.java:455)
at sun.java2d.SurfaceData.getSourceSurfaceData(SurfaceData.java:233)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:574)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:67)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1022)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3318)
at sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.java:813)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1029)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3318)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3296)
at javax.swing.ImageIcon.paintIcon(ImageIcon.java:425)
at javax.swing.plaf.basic.BasicLabelUI.paint(BasicLabelUI.java:167)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at javax.swing.JComponent.paintComponent(JComponent.java:778)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JComponent.paintChildren(JComponent.java:887)
at javax.swing.JComponent.paint(JComponent.java:1063)
at javax.swing.JComponent.paintChildren(JComponent.java:887)
at javax.swing.JComponent.paint(JComponent.java:1063)
at javax.swing.JComponent.paintChildren(JComponent.java:887)
at javax.swing.JComponent.paint(JComponent.java:1063)
at javax.swing.JComponent.paintChildren(JComponent.java:887)
at javax.swing.JComponent.paint(JComponent.java:1063)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
at javax.swing.JComponent.paintChildren(JComponent.java:887)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5229)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1572)
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1495)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:306)
at javax.swing.RepaintManager.paint(RepaintManager.java:1265)
at javax.swing.JComponent.paint(JComponent.java:1040)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
at java.awt.Container.paint(Container.java:1973)
at java.awt.Window.paint(Window.java:3901)
at javax.swing.RepaintManager$4.run(RepaintManager.java:835)
at javax.swing.RepaintManager$4.run(RepaintManager.java:807)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:807)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:782)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:731)
at javax.swing.RepaintManager.access$1300(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1720)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
at com.onseven.dbvis.O.A._.dispatchEvent(Z:523)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Product: DbVisualizer Pro 922.2412 [Build #2412] [BETA VERSION]
OS: Linux
OS Version: 3.19.0-031900rc4-generic
OS Arch: amd64
Java Version: 1.8.0_31
Java VM: Java HotSpot(TM) 64-Bit Server VM
Java Vendor: Oracle Corporation
Java Home: /usr/lib/jvm/java-8-oracle/jre
DbVis Home: /opt/dbvisualizer
User Home: /home/ihabunek
PrefsDir: /home/ihabunek/.dbvis
BindDir: /[3]
Look and Feel: MetalLookAndFeel
Screen 1: size: 1920 x 1200, refresh rate: unknown, bit depth: -1
Screen 2: size: 1920 x 1080, refresh rate: unknown, bit depth: -1
Monitor Running: No
*** JVM Options (Application) **********************
-Xmx512m
-XX:MaxPermSize=192m
-Dsun.locale.formatasdefault=true
-include-options ${USERPROFILE}\.dbvis\user.vmoptions
-include-options ${HOME}/.dbvis/user.vmoptions
*** Database Properties ****************************
Alias: MySQL Local
Settings Format: Server Info
URL: jdbc:mysql://localhost:3306/
Driver: MySQL
Userid: ihabunek
Preferred Database Type: mysql
Current Database Type: mysql
Preferred Profile: auto
Current Profile: mysql
--- Object Type Settings ---------------------------
None
--- Overridden User Properties ---------------------
mysql.ConnectionModeMigrated = true
--- Overridden Driver Properties -------------------
No overridden driver properties!
*** End Database Properties ************************
*** Driver Information *****************************
Name: MySQL
DefaultDriver: true
URLFormat: jdbc:mysql://:/
isReady: true
DefaultClass: com.mysql.jdbc.Driver
Paths:
Path: /opt/dbvisualizer/jdbc/mysql/mysql.jar
Type: dynamic
Classes:
com.mysql.jdbc.Driver
*** End Driver Information *************************
*** Current Connection Message *********************
MySQL
5.6.19-1~exp1ubuntu2
MySQL Connector Java
mysql-connector-java-5.1.33 ( Revision: alexander.soklakov@oracle.com-20140908134200-8ukofe1izi0r2b63 )
*** End Current Connection Message *****************
*** Database Properties ****************************
Alias: Prometheus EU (Master)
Settings Format: Server Info
URL: jdbc:mysql://prometheus:3306/
Driver: MySQL
Userid: root
Preferred Database Type: mysql
Current Database Type: mysql
Preferred Profile: auto
Current Profile: mysql
--- Object Type Settings ---------------------------
None
--- Overridden User Properties ---------------------
mysql.ConnectionBorder = Red.png
mysql.ConnectionColorBackground = #ff0000
mysql.ConnectionKeepAliveEnabled = true
mysql.ConnectionMode = Production
mysql.ConnectionModeMigrated = true
--- Overridden Driver Properties -------------------
No overridden driver properties!
*** End Database Properties ************************
*** Driver Information *****************************
Name: MySQL
DefaultDriver: true
URLFormat: jdbc:mysql://:/
isReady: true
DefaultClass: com.mysql.jdbc.Driver
Paths:
Path: /opt/dbvisualizer/jdbc/mysql/mysql.jar
Type: dynamic
Classes:
com.mysql.jdbc.Driver
*** End Driver Information *************************
*** Current Connection Message *********************
MySQL
5.5.42-log
MySQL Connector Java
mysql-connector-java-5.1.33 ( Revision: alexander.soklakov@oracle.com-20140908134200-8ukofe1izi0r2b63 )
*** End Current Connection Message *****************
*** Database Properties ****************************
Alias: Api Staging
Settings Format: Server Info
URL: jdbc:mysql://54.76.151.34:3306/
Driver: MySQL
Userid: root
Preferred Database Type: mysql
Current Database Type: mysql
Preferred Profile: auto
Current Profile: mysql
--- Object Type Settings ---------------------------
None
--- Overridden User Properties ---------------------
mysql.ConnectionKeepAliveEnabled = true
mysql.ConnectionMode = Test
mysql.ConnectionModeMigrated = true
--- Overridden Driver Properties -------------------
No overridden driver properties!
*** End Database Properties ************************
*** Driver Information *****************************
Name: MySQL
DefaultDriver: true
URLFormat: jdbc:mysql://:/
isReady: true
DefaultClass: com.mysql.jdbc.Driver
Paths:
Path: /opt/dbvisualizer/jdbc/mysql/mysql.jar
Type: dynamic
Classes:
com.mysql.jdbc.Driver
*** End Driver Information *************************
*** Current Connection Message *********************
MySQL
5.5.40
MySQL Connector Java
mysql-connector-java-5.1.33 ( Revision: alexander.soklakov@oracle.com-20140908134200-8ukofe1izi0r2b63 )
*** End Current Connection Message *****************
Hi Ivan,
This seems to be a known problem in Java: https://bugs.openjdk.java.net/browse/JDK-7172749
We'll monitor it and check for any progress in a future Java version.
Regards
Roger
Roger Bjärevall
said
almost 9 years ago
[This reply is migrated from our old forums.]
Re: Exception when resuming from standby
Ivan,
DbVisualizer 9.2.13 has just been released with a fix so that the "sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData" error is not reported as a warning in the error log.
Easiest is that you open Help->Check for Update in DbVisualizer to perform the upgrade.
An alternative is that you download from our web site:
http://www.dbvis.com/download/
Regards
Roger
anonymous