-->
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: Unable to insert Oracle LONG Column when size > 6 KB
PostPosted: Fri Sep 26, 2003 1:48 pm 
Newbie

Joined: Fri Aug 29, 2003 2:42 am
Posts: 4
I get this exception when inserting a LONG column using oracle jdbc9 driver on Windows 2000:


Property Mapping :
<property name="xmlString" type="net.sf.hibernate.type.BinaryType">
<column name="XMLSTRING" sql-type="LONG"/>
</property>

Note: I cannot use CLOB as we need to persist the object in single transaction (during INSERT).
Thanks in advance.
=========================================



java.sql.SQLException: Data size bigger than max size for this type: 6835
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:229)
at oracle.jdbc.ttc7.TTCItem.setArrayData(TTCItem.java:99)
at oracle.jdbc.dbaccess.DBDataSetImpl.setBytesBindItem(DBDataSetImpl.java:1771)
at oracle.jdbc.driver.OraclePreparedStatement.setItem(OraclePreparedStatement.java:986)
at oracle.jdbc.driver.OraclePreparedStatement.setBytes(OraclePreparedStatement.java:1955)
at weblogic.jdbc.pool.Statement.setBytes(Statement.java:408)
at weblogic.jdbc.rmi.internal.PreparedStatementImpl.setBytes(PreparedStatementImpl.java:154)
at weblogic.jdbc.rmi.SerialPreparedStatement.setBytes(SerialPreparedStatement.java:222)
at net.sf.hibernate.type.BinaryType.set(BinaryType.java:24)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:45)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:30)
at net.sf.hibernate.persister.EntityPersister.dehydrate(EntityPersister.java:361)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:444)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:20)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2063)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2035)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:1979)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:56)
at net.sf.hibernate.examples.quickstart.SampleServlet.endTransaction(Unknown Source)
at net.sf.hibernate.examples.quickstart.SampleServlet.createCats(Unknown Source)
at net.sf.hibernate.examples.quickstart.SampleServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2546)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)


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.