java.lang.ClassCastException: java.lang.Short

Hibernate JIRA | Patrik Meisinger | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    i receive the following error when i try to do the automatic artifact generation with the hibernate tools in eclipse: "error under artifact generation reason: java.lang.ClassCastException: java.lang.Short" the error message appears in a modal dialog. the error is reproduceable and appears in eclipse 3.1rc2 using hibernate tools3.0 alpha4a too. here's the stack trace: java.lang.ClassCastException: java.lang.Short at ca.edbc.jdbc.EdbcRslt.getInt(EdbcRslt.java:2013) at ca.edbc.jdbc.EdbcRslt.getInt(EdbcRslt.java:4187) at org.hibernate.cfg.JDBCBinder.processBasicColumns(JDBCBinder.java:733) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:106) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:77) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:111)

    Hibernate JIRA | 1 decade ago | Patrik Meisinger
    java.lang.ClassCastException: java.lang.Short
  2. 0

    i receive the following error when i try to do the automatic artifact generation with the hibernate tools in eclipse: "error under artifact generation reason: java.lang.ClassCastException: java.lang.Short" the error message appears in a modal dialog. the error is reproduceable and appears in eclipse 3.1rc2 using hibernate tools3.0 alpha4a too. here's the stack trace: java.lang.ClassCastException: java.lang.Short at ca.edbc.jdbc.EdbcRslt.getInt(EdbcRslt.java:2013) at ca.edbc.jdbc.EdbcRslt.getInt(EdbcRslt.java:4187) at org.hibernate.cfg.JDBCBinder.processBasicColumns(JDBCBinder.java:733) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:106) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:77) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:111)

    Hibernate JIRA | 1 decade ago | Patrik Meisinger
    java.lang.ClassCastException: java.lang.Short

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Short

      at ca.edbc.jdbc.EdbcRslt.getInt()
    2. ca.edbc.jdbc
      EdbcRslt.getInt
      1. ca.edbc.jdbc.EdbcRslt.getInt(EdbcRslt.java:2013)
      2. ca.edbc.jdbc.EdbcRslt.getInt(EdbcRslt.java:4187)
      2 frames
    3. Hibernate
      JDBCMetaDataConfiguration.readFromJDBC
      1. org.hibernate.cfg.JDBCBinder.processBasicColumns(JDBCBinder.java:733)
      2. org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:106)
      3. org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40)
      3 frames
    4. org.hibernate.eclipse
      ArtifactGeneratorWizard$3.execute
      1. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213)
      1 frame
    5. org.hibernate.console
      ConsoleConfiguration.execute
      1. org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:77)
      1 frame
    6. org.hibernate.eclipse
      ArtifactGeneratorWizard$1.run
      1. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210)
      2. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147)
      3. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127)
      4. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95)
      4 frames
    7. JFace
      ModalContext$ModalContextThread.run
      1. org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:111)
      1 frame