Jeremy-
I am using BlazeDS 4, Spring 3.0, and the new "spring-flex-core-1.5.0.M2.jar"...........with JPA.
I still get the LazyInitializationException...when using the JpaConfigProcessor.
Here is the guilty party:Code:[BlazeDS]Exception occurred during serialization: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.trinityhealth.resource.domain.Resources.resourceses, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383) at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375) at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:122) at org.hibernate.collection.PersistentSet.size(PersistentSet.java:162) at org.springframework.core.style.DefaultValueStyler.style(DefaultValueStyler.java:104) at org.springframework.core.style.DefaultValueStyler.style(DefaultValueStyler.java:72) at org.springframework.core.style.StylerUtils.style(StylerUtils.java:47) at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.
Here is my config:Code:@OneToMany(fetch = FetchType.LAZY, mappedBy = "resources") public Set<Resources> getResourceses() { return this.resourceses; }
Any ideas? - what I am missing ...I tried the SNAPSHOT too. Same issue.Code:<flex:message-broker mapping-order="1"> <flex:config-processor ref="myJpaConfigProcessor" /> <flex:mapping pattern="/messagebroker/*"/> <flex:message-service default-channels="my-streaming-amf,my-longpolling-amf,my-polling-amf" /> <flex:secured /> </flex:message-broker> <bean id="myJpaConfigProcessor" class="org.springframework.flex.core.io.JpaHibernateConfigProcessor"> <property name="entityManagerFactory" ref="entityManagerFactory"/> </bean>
Thansk, Chuck


Reply With Quote
Hopefully this helps other people as well until the issue gets solved.
