On 26 Mar 2004 19:23, dannwebster wrote: ><snip> >This code always throws a ClassCastException on this line: ><code> >oracle.sql.BLOB blob = (oracle.sql.BLOB) foo.getBlob(); ></code> >This problem is actually simply because the offending foo was part of a >lazy-loaded object fetched as part of a collection. It goes away if the >object itself is refreshed, or if Hibernate.initialize() is called on >the collection that foo is part of. I'm using Weblogic 8.1 and I continued to get a ClassCastException at that line even after refreshing the object. The solution was to use the Weblogic 8.1 Oracle extensions found in weblogic.jar <code> import weblogic.jdbc.vendor.oracle.OracleThinBlob; ... OracleThinBlob blob = (OracleThinBlob)foo.getBlob(); ... </code>