Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1064 DataSetViewerTextPanel cannot be cast to DataSetViewerTableP

snapshot
closed-fixed
Colin Bell
Core (461)
5
2013-10-30
2012-11-29
Arthur
No

During execution of query on Mac against DB2 I got this :
java.lang.ClassCastException: net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetViewerTextPanel cannot be cast to net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetViewerTablePanel

java.runtime.name Java(TM) SE Runtime Environment
sun.boot.library.path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries
java.vm.version 20.12-b01-434
awt.nativeDoubleBuffering true
com.apple.mrj.application.apple.menu.about.name SQuirreLSQL
gopherProxySet false
mrj.build 11M3909
java.vm.vendor Apple Inc.
java.vendor.url http://www.apple.com/
path.separator :
java.vm.name Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg sun.io
user.country US
sun.java.launcher SUN_STANDARD
sun.os.patch.level unknown
java.vm.specification.name Java Virtual Machine Specification
user.dir /Applications/SQuirreLSQL.app/Contents/Resources/Java
java.runtime.version 1.6.0_37-b06-434-11M3909
java.awt.graphicsenv apple.awt.CGraphicsEnvironment
java.endorsed.dirs /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed
os.arch x86_64
java.io.tmpdir /var/folders/v_/qcwfjrms73v7zfqw580vrzqdd_xljt/T/
apple.awt.graphics.UseOpenGL false
line.separator
java.vm.specification.vendor Sun Microsystems Inc.
os.name Mac OS X
apple.laf.useScreenMenuBar true
sun.jnu.encoding MacRoman
java.library.path .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.specification.name Java Platform API Specification
java.class.version 50.0
sun.management.compiler HotSpot 64-Bit Tiered Compilers
os.version 10.7.5
user.timezone America/Toronto
java.awt.printerjob apple.awt.CPrinterJob
java.specification.version 1.6
file.encoding MacRoman
java.class.path /Applications/SQuirreLSQL.app/Contents/Resources/Java/squirrel-sql.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/antlr.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/asm-attrs.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/asm.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/autocomplete.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/axis-jaxrpc.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/axis-saaj.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/axis-wsdl4j.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/axis.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/cglib.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/common.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/commons-cli.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/commons-codec.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/commons-collections.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/commons-discovery.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/commons-httpclient.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/commons-lang.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/commons-logging.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/core.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/forms.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/fw.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/hibernate-annotations.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/hibernate-commons-annotations.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/hibernate-entitymanager.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/hibernate.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/icu4j.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/javahelp.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/jcommon.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/jfreechart.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/jide-oss.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/jmeld.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/jxl.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/log4j.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/nanoxml.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/org.eclipse.equinox.common.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/osgi.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/rsyntaxtextarea.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/rtext.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/spring-beans.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/spring-context-support.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/spring-context.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/spring-core.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/stringtemplate.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/swing-worker.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/treetable.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/versioncheck.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/x86.jar:/Applications/SQuirreLSQL.app/Contents/Resources/Java/lib/xml-apis.jar
apple.awt.graphics.UseQuartz false
java.vm.specification.version 1.0
sun.arch.data.model 64
java.home /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
sun.java.command net.sourceforge.squirrel_sql.client.Main --log-config-file /Applications/SQuirreLSQL.app/Contents/Resources/Java/log4j.properties --squirrel-home /Applications/SQuirreLSQL.app/Contents/Resources/Java --native-laf
java.specification.vendor Sun Microsystems Inc.
user.language en
awt.toolkit apple.awt.CToolkit
java.vm.info mixed mode
java.version 1.6.0_37
java.ext.dirs /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext
sun.boot.class.path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar
java.vendor Apple Inc.
file.separator /
java.vendor.url.bug http://bugreport.apple.com/
sun.cpu.endian little
sun.io.unicode.encoding UnicodeLittle
mrj.version 1070.1.6.0_37-434
socksNonProxyHosts local|*.local|169.254/16|*.169.254/16
ftp.nonProxyHosts local|*.local|169.254/16|*.169.254/16
sun.cpu.isalist
sun.awt.exception.handler apple.awt.CToolkit$EventQueueExceptionHandler

Discussion

  • Marek
    Marek
    2013-02-14

    Untill the issue will be fixed, as a workaround I've modified the file DataSetViewerFindDecorator.java and changed the code as below.

    from:
    _dataSetFindPanelController.setDataSetViewerTablePanel((DataSetViewerTablePanel) _dataSetViewer);

    to:
    if (!_dataSetViewer.getClass().toString().endsWith("DataSetViewerTextPanel"))
    {
    _dataSetFindPanelController.setDataSetViewerTablePanel((DataSetViewerTablePanel) _dataSetViewer);
    }

    It's working for me.

     
    Last edit: Marek 2013-02-14
  • Gerd Wagner
    Gerd Wagner
    2013-10-30

    Fixed in our Git repository. Will be available in future snapshots and versions.

     
  • Gerd Wagner
    Gerd Wagner
    2013-10-30

    • status: open --> closed-fixed