Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.1
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
org.springframework.webflow.engine.ActionExecutionException: Exception thrown executing [AnnotatedAction@165ac2e targetAction = gov.fda.furls.alert.application.common.webflow.ManageCampaignsFlowAction@94cbe2, attributes = map['method' -> 'saveCampaign']] in state 'saveCampaign' of flow 'manage-campaigns-flow' -- action execution attributes were 'map['method' -> 'saveCampaign']'; nested exception is java.lang.IllegalStateException: Blobs may not be accessed after serializationCaused by: java.lang.IllegalStateException: Blobs may not be accessed after serialization at org.hibernate.lob.SerializableBlob.getWrappedBlob(SerializableBlob.java:23) at gov.fda.furls.alert.application.common.webflow.ManageCampaignsFlowAction.saveCampaign(ManageCampaignsFlowAction.java:651)
Name and version of the database you are using:
9i
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html
I getting the the above exception while persisting Blob data in Oracle by Hibernate domain object.
In the domain Object i have the following method:
Blob campaignWaveFile;
public void setCampaignWaveFile(Blob campaignWaveFile){
this.campaignWaveFile = Hibernate.createBlob(waveFile) // waveFile is byte[]
}
public Blob getCampaignWaveFile(){
return campaignWaveFile;
}
while persisting i am getting the above exception. Can anybody look into this and give me the alternative way to do that.