Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1859

BeanLazyLoader is not Serializable

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5
    • Component/s: jackrabbit-ocm
    • Labels:
      None

      Description

      Class org.apache.jackrabbit.ocm.manager.objectconverter.impl.BeanLazyLoader is not serializable.
      In ocm module we can mark some property to be lazy loaded. For example @Bean(..., proxy=true)
      In such scenario instead of object we will have here proxy BeanLazyLoader which is not serializable.

      It is problematic while using another technologies.
      For example Spring WebFlow requires objects (model) stored in scope to be Serializable.
      So when we use proxied model with Spring WebFlow we received exception "org.springframework.webflow.execution.repository.snapshot.SnapshotCreationException: Could not serialize flow execution; make sure all objects stored in flow or flash scope are serializable.... Caused by: java.io.NotSerializableException: org.apache.jackrabbit.ocm.manager.objectconverter.impl.BeanLazyLoader
      ..."

      Please make BeanLazyLoader Serializable.

        Attachments

          Activity

            People

            • Assignee:
              clombart Christophe Lombart
              Reporter:
              murasm Marcin Muras
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: