Uploaded image for project: 'atna-questionnaire'
  1. atna-questionnaire
  2. QUEST-61

Failed to lazily initialize TLSTests

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Labels:
      None
    • Account:
      Maintenance 2016 (MAINTENANCE2016)

      Description

      After saving an element in questionnaire, if you go to the TLSTest tab, edit and save a comment it collapse the tab and there is no more TLSTests in the list (Data is not lost). Here is the stack trace :

      16:54:09,213 SEVERE [org.richfaces.log.Context] (http-/127.0.0.1:8080-1) /questionnaire/tlsTestsPanel.xhtml @17,124 rendered="#{displayComputeButton}": /questionnaire/editorTemplate.xhtml @115,114 value="#{managedBean.displayComputeTLSTestsButton()}": org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: net.ihe.gazelle.atna.questionnaire.model.ATNAQuestionnaireType.tLSTest, could not initialize proxy - no Session: javax.el.ELException: /questionnaire/tlsTestsPanel.xhtml @17,124 rendered="#{displayComputeButton}": /questionnaire/editorTemplate.xhtml @115,114 value="#{managedBean.displayComputeTLSTestsButton()}": org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: net.ihe.gazelle.atna.questionnaire.model.ATNAQuestionnaireType.tLSTest, could not initialize proxy - no Session
      ...
      Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: net.ihe.gazelle.atna.questionnaire.model.ATNAQuestionnaireType.tLSTest, could not initialize proxy - no Session
      at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:569) [hibernate-core-4.2.20.Final.jar:4.2.20.Final]
      at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:188) [hibernate-core-4.2.20.Final.jar:4.2.20.Final]
      at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:139) [hibernate-core-4.2.20.Final.jar:4.2.20.Final]
      at org.hibernate.collection.internal.PersistentBag.isEmpty(PersistentBag.java:249) [hibernate-core-4.2.20.Final.jar:4.2.20.Final]
      at net.ihe.gazelle.atna.questionnaire.action.AbstractQuestionnaireEditor.displayComputeTLSTestsButton(AbstractQuestionnaireEditor.java:101) [atna-questionnaire-ejb.jar:2.0.3-SNAPSHOT]

        Attachments

          Activity

            People

            • Assignee:
              ceoche Cédric EOCHE-DUVAL
              Reporter:
              ceoche Cédric EOCHE-DUVAL
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h

                  Potential Duplicates