-->
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.  [ 1 post ] 
Author Message
 Post subject: what's the root cause to "ORA-24816"
PostPosted: Wed Jul 30, 2008 3:00 am 
Newbie

Joined: Mon Jan 07, 2008 4:53 am
Posts: 2
Location: Sri Lanka
Hi all,
we have implented two "CLOB" fields in one table since we want to store more details.
But when we try to insert, update table. following error was occurred.In the hbm we have
mapped those fields like this.
<property name="model-attrbute" not-null="false" type="java.lang.String">
<column name="COLUMN_NAME" length="2000"/>
</property>
we assume that hibernate can handled string to CLOB.
Since we are not getting error always; we came to confirm that hibernate handle this.
But sometimes when we try to insert, update data. following error was occurred (Note we increased the details to insert ).

[Unable to update <table name> record - Hibernate operation: Could not execute JDBC batch update; uncategorized SQLException for SQL [insert into <table name>

At the last, this oracle specific error was displayed.
SQL state [99999]; error code [24816]; ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column
; nested exception is java.sql.SQLException
.

versions we are using
    Hibernate: hibernate3.0
    oracle: Oracle Database Server - 10.2.0.1.0
    JDK: Sun Java 1.5.0_10


the solution is given in the forums are work around solutions such as http://forum.hibernate.org/viewtopic.php?t=969929&highlight=ora24816

using that we can come to solutions.
But what i want to know is why this type of error comes.
what are the possible configuration can be root cause to this error. such as
oracle driver either thin or OCI
hibernate version
or else another reason
what is the best possible way to resolve this.

thanks in advance
Nalin

_________________
Nalin


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

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.