-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: artifact generation from ingres database
PostPosted: Tue Jun 14, 2005 2:01 am 
Beginner
Beginner

Joined: Mon Jun 06, 2005 4:23 am
Posts: 41
Location: Hagenberg, AUSTRIA
hi!

i receive the following error when i try to do the automatic artifact generation":
"error under artifact generation

reason: java.lang.ClassCastException: java.lang.Short"

the error message appears in a modal dialog.

my hybernate configuration:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.username">******</property>
        <property name="hibernate.connection.password">******</property>
        <property name="hibernate.dialect">org.hibernate.dialect.IngresDialect</property>
        <property name="hibernate.connection.url">jdbc:edbc://192.168.193.132:21071/dipasdem</property>
        <property name="hibernate.connection.driver_class">ca.edbc.jdbc.EdbcDriver</property>
    </session-factory>
</hibernate-configuration>


the basic settings for the artifact generation:
Console Configuration: Calculator
Output Directory: /Calculator/src
Reverse Engineer from JDBC Connection: checked
Package: com.ams.dipasdem
Generate Domain Code: checked (JSR 220/EJB3 checked)
Generate mappings: checked
Generate hibernate configuration: checked



my software configuration:
elipse 3.1m5a
jbosside 1.5m1
ejb3.0preview5
jdk5

related infos:
Hibernate version:
3.0.5

Mapping documents:
none, they should be generated via artifact generation

Code between sessionFactory.openSession() and session.close():
no code

Full stack trace of any exception that occurs:
Code:
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)


Name and version of the database you are using:
CA Ingres 2.6

what's this error about and how can i solve it?
any help is appreciated... thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 16, 2005 8:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
so ingress jdbc driver cannot handle casting a short to a integer. bummer.

put it in jira with the exception so i can check if its me or them breaking the jdbc spec.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 21, 2005 1:42 am 
Beginner
Beginner

Joined: Mon Jun 06, 2005 4:23 am
Posts: 41
Location: Hagenberg, AUSTRIA
ok, i will post it in the jira...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 21, 2005 2:02 am 
Beginner
Beginner

Joined: Mon Jun 06, 2005 4:23 am
Posts: 41
Location: Hagenberg, AUSTRIA
ok, i will post it in the jira...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.