java – org.hibernate.HibernateException: Unable to access lob stream

I am using hibernate 3.6.7 to do mapping from my classes to oracle tables. I don’t usually get this exception: org.hibernate.HibernateException: Unable to access lob stream at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at com.mycompany.TransferFiles.TransferFilesToHadoop(TransferFiles.java:85) at com.mycompany.TransferJob.execute(TransferJob.java:25) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: org.hibernate.HibernateException: Unable to access lob stream at org.hibernate.type.descriptor.java.ClobTypeDescriptor.unwrap(ClobTypeDescriptor.java:117) at org.hibernate.type.descriptor.java.ClobTypeDescriptor.unwrap(ClobTypeDescriptor.java:46) at org.hibernate.type.descriptor.sql.ClobTypeDescriptor$3$1.doBind(ClobTypeDescriptor.java:83) at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:91) at … Read more