• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to solve JSON exception error [org.hibernate.LazyInitializationException: failed to lazily init]

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to get a list of objects using JSON. To get the list of objects, I implemented the lists using hibernate and struts2. If i execute the code in the console then i am getting the exact result. Bu if i tried to get the result then I am getting the following error. What is actual problem to execute the code:



And my codes are like the following:

Hibernate implementation:



and JSON action class implementation:




Can anybody tell me the reasons for getting the exceptions.

Thank you
 
reply
    Bookmark Topic Watch Topic
  • New Topic