Uploaded image for project: 'MyFaces Orchestra'
  1. MyFaces Orchestra
  2. ORCHESTRA-9

NullPointerException in AbstractSpringOrchestraScope when BeanPostProcessor is configured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1
    • Conversation
    • None

    Description

      Method AbstractSpringOrchestraScope.registerDestructionCallback throws a NullPointerException if passed a bean that has aop:proxy attached to it.
      The reason is that the bean-name passed is of form "scopedTarget.foo", but there is no such conversation - the conversation is named "foo".

      This can presumably be triggered by having a destroy method defined for the bean.
      However it also gets triggerred whenever there is a "destruction aware" BeanPostProcessor present in the spring context, eg by enabling
      PersistenceAnnotationBeanPostProcessor
      or
      <context:annotation-config/>

      Attachments

        Activity

          People

            skitching Simon Kitching
            skitching Simon Kitching
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: