Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2870

LazyInitializationException in JSF bikeshop example

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.2.0.M1
    • Fix Version/s: 1.2.0.RC1
    • Component/s: JSF
    • Labels:
    • Environment:
      1.2.0.BUILD-SNAPSHOT [rev babe22d] from Git repo.

      Description

      I tried to add supplier column to ProductBean init method in order to show the relation in list view.

      In the list request I got the following error:

      GRAVE: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.springsource.bikeshop.domain.Supplier.products, no session or session was closed

      Is a bit odd since in web.xml is declared the OpenEntityManagerInViewFilter.

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            osroca Oscar Rovira (DiSiD)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: