I'm getting the following prob, while working with spring & Hibernate f/w:
When I was executing this line: user = (User) getHibernateTemplate().load(User.class, userId); I'm getting the following prob:
org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:53) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:84) at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:134)
Any Solution on this???
|