Monday, 25 July 2011

java.lang.IllegalStateException: unread block data java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(ObjectInputStream.java:2376)

SWF with persistence

Problem
=======
java.lang.IllegalStateException: unread block data
java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(ObjectInputStream.java:2376)
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1360)


Solution
========
Under
[bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"]
Add

[property name="hibernateProperties"]
[props]
[prop key="hibernate.session_factory_name"]mySessionFactory[/prop]

No comments:

Post a Comment