-->
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.  [ 8 posts ] 
Author Message
 Post subject: org.hibernate.cfg.JDBCBinderException: spans multiple column
PostPosted: Wed Aug 24, 2005 2:12 am 
Newbie

Joined: Wed Aug 24, 2005 1:45 am
Posts: 6
Error 2005-08-24 13:36:02.921 The type java.lang.Object spans multiple columns. Only single column types allowed for single columns.
org.hibernate.cfg.JDBCBinderException: The type java.lang.Object spans multiple columns. Only single column types allowed for single columns.
at org.hibernate.cfg.JDBCBinder.guessAndAlignType(JDBCBinder.java:453)
at org.hibernate.cfg.JDBCBinder.bindColumnToSimpleValue(JDBCBinder.java:403)
at org.hibernate.cfg.JDBCBinder.bindBasicProperty(JDBCBinder.java:395)
at org.hibernate.cfg.JDBCBinder.bindColumnsToProperties(JDBCBinder.java:380)
at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:163)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:91)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:249)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:71)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:246)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:165)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:133)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:99)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 27, 2005 11:30 pm 
Newbie

Joined: Sat Aug 27, 2005 11:28 pm
Posts: 1
I am also getting same error while trying to generate a dao for a simple table


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 28, 2005 12:52 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Shiow the table DDL that causes this fault. What database are you using? Anything else that might help replicate/explain the error.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 02, 2005 12:05 pm 
Newbie

Joined: Fri Dec 12, 2003 9:08 am
Posts: 9
I had this error trying to reverse engineer a hsqldb database with boolean columns. If this could be related, then have a look at:

http://opensource2.atlassian.com/projec ... se/HBX-378


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 05, 2005 6:39 pm 
Beginner
Beginner

Joined: Fri Mar 05, 2004 6:33 pm
Posts: 29
Location: Vancouver, BC, Canada
I am getting the same error. The problem is that the error message does not say which column is the problem, a more detailed error message in the exception would help.



org.hibernate.cfg.JDBCBinderException: The type java.lang.Object spans multiple columns. Only single column types allowed for single columns.
at org.hibernate.cfg.JDBCBinder.guessAndAlignType(JDBCBinder.java:453)
at org.hibernate.cfg.JDBCBinder.bindColumnToSimpleValue(JDBCBinder.java:403)
at org.hibernate.cfg.JDBCBinder.bindBasicProperty(JDBCBinder.java:395)
at org.hibernate.cfg.JDBCBinder.bindColumnsToProperties(JDBCBinder.java:380)
at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:163)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:91)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:249)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:71)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:246)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:165)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:133)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:99)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 06, 2005 1:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
put it in jira so i wont forget to improve that part

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: I have the same problem.
PostPosted: Wed Sep 07, 2005 4:01 am 
Newbie

Joined: Wed Sep 07, 2005 3:57 am
Posts: 1
I have the same probem with an Oracle9I data base. I try to add type-mapping and just make a test with a wery simple table ( by filtering ) And it doesn't work.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 07, 2005 6:24 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
Quote:
I have the same probem with an Oracle9I data base. I try to add type-mapping and just make a test with a wery simple table ( by filtering ) And it doesn't work.


Have you table script and reveng definition ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 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.