-->
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.  [ 3 posts ] 
Author Message
 Post subject: Exception in Hibernate
PostPosted: Thu Jun 22, 2006 3:38 pm 
Newbie

Joined: Thu Jun 22, 2006 3:23 pm
Posts: 12
Hi All,
I am using hibernate3 to insert records to Oracle database.I am getting following exception during insertion.

Hibernate: insert into EMP (ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO, EMPNO) values (?, ?, ?, ?, ?, ?, ?, ?)
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Option type out of range
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)

But the record i am trying to insert is getting inserted to database.I couldn't understand why i am getting Option type out of range exception.I have searched in google to understand the meaning exception but i didn't get any information.Can anyone help me please.


Top
 Profile  
 
 Post subject: Re: Exception in Hibernate
PostPosted: Thu Jun 22, 2006 7:01 pm 
Regular
Regular

Joined: Wed Feb 22, 2006 11:28 am
Posts: 65
Location: Santiago, Chile
Hello Friend:

After read this, I think you use "Oracle" to store your datas, but you use "Microsoft Jdbc Driver" to do any transaction to persist datas into Oracle.

So you got that exception.

Get a Jdbc Driver for your Oracle and you will solve your problem.

Regards.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 23, 2006 9:20 am 
Newbie

Joined: Thu Jun 22, 2006 3:23 pm
Posts: 12
Hi,
I used Microsoft Odbc Jdbc driver for inserting records into oracle.Insertion operation is working fine but i couldn't understand why i am getting option type out of range exception. .What is the meaning of that exception?Can anyone please help


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.