-->
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: Problems with version 3.1.2 and Oracle Blobs
PostPosted: Fri Feb 24, 2006 4:21 am 
Newbie

Joined: Fri Feb 24, 2006 3:50 am
Posts: 1
Hello,

I'm new to this forum and need help with Oracle Blobs ans hibernate 3.1.2 .
I ran my application with great success over one year using hibernate 3.0.2, yesterday I uppdated to 3.1.2 and got problems with Oracle Blobs.

INFO [main] (SettingsFactory.java:77) - RDBMS: Oracle, version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
INFO [main] (SettingsFactory.java:78) - JDBC driver: Oracle JDBC driver, version: 9.2.0.5.0
INFO [main] (Dialect.java:103) - Using dialect: org.hibernate.dialect.OracleDialect

The code snippet to create a blob is :

oracle.sql.BLOB blob=oracle.sql.BLOB.createTemporary(dbcon.getSession().connection(),false,oracle.sql.BLOB.DURATION_CALL);

dbcon.getSession() returns a hibernate Session object.

When I run the application and try to store data in the blob I get the following error:

java.lang.ClassCastException: $Proxy0
at oracle.jdbc.driver.OracleConnection.physicalConnectionWithin(OracleConnection.java:5174)
at oracle.sql.BLOB.createTemporary(BLOB.java:776)


Is there someone who can help me.

THX
Ralf


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.