Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5190

IllegalStateException when calling getCallerPrincipal from ejbActivate in a cluster

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.2.0.GA_CP09, 4.3.0.GA_CP08
    • Fix Version/s: TBD EAP 4
    • Component/s: EJB
    • Labels:
      None
    • Affects:
      Release Notes
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Move the getCallerPrincipal method from ejbActivate if using a clustered environment.

      Show
      Move the getCallerPrincipal method from ejbActivate if using a clustered environment.
    • Release Notes Text:
      Hide
      In clustered environments, the getCallerPrincipal method was causing an IllegalStateException
      when it was called from ejbActivate because
      StatefulHASessionPersistenceManager.synchroSession() did not allow getCallerPrincipal in the initial create method.
      The workaround for this issue is to move the getCallerPrincipal method from ejbActivate.
      Show
      In clustered environments, the getCallerPrincipal method was causing an IllegalStateException when it was called from ejbActivate because StatefulHASessionPersistenceManager.synchroSession() did not allow getCallerPrincipal in the initial create method. The workaround for this issue is to move the getCallerPrincipal method from ejbActivate.
    • Release Notes Docs Status:
      Documented as Known Issue

      Description

      The EJB specification allows calling the getCallerPrincipal method from ejbActivate, however in a clustered environment the HomeInterface.create method eventually calls StatefulHASessionPersistenceManager.synchroSession() which passivates and then activates the bean. The getCallerPrincipal method call, not being allowed in the create method, will then cause the IllegalStateException.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                wolfc Carlo de Wolf
                Reporter:
                dstephan David Stephan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: