glassfish
  1. glassfish
  2. GLASSFISH-10973

SFSB removal through 299 SPI results in exception

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: V3
    • Component/s: ejb_container
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Macintosh

    • Issuezilla Id:
      10,973

      Description

      SFSB removal though the 299 SPI results in the following exception :

      [#|2009-11-10T11:15:03.248-
      0500|INFO|glassfishv3.0|javax.enterprise.system.core.security|_ThreadID=27;_ThreadName=Container
      BackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[/numbe
      rguess]];|JACC Policy Provider: Failed Permission Check, context(numberguess/numberguess_internal)-
      permission((javax.security.jacc.EJBMethodPermission StatefulBean remove,Local,))|#]

      [#|2009-11-10T11:15:03.249-
      0500|WARNING|glassfishv3.0|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=
      27;_ThreadName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[serv
      er].StandardContext[/numberguess]];|A system exception occurred during an invocation on EJB
      StatefulBean method null
      javax.ejb.AccessLocalException: Client not authorized for this invocation.
      at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1787)
      at com.sun.ejb.containers.StatefulSessionContainer.removeBean(StatefulSessionContainer.java:941)
      at com.sun.ejb.containers.EJBLocalObjectImpl.remove(EJBLocalObjectImpl.java:179)
      at com.sun.ejb.containers.EjbContainerServicesImpl.remove(EjbContainerServicesImpl.java:143)
      at org.glassfish.weld.ejb.SessionObjectReferenceImpl.remove(SessionObjectReferenceImpl.java:66)
      at
      org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHand
      ler.java:106)
      at numberguess.StatefulBean_$$javassist_5.destroy(StatefulBean$$_javassist_5.java)
      at org.jboss.weld.bean.SessionBean.destroy(SessionBean.java:302)
      at org.jboss.weld.context.ForwardingContextual.destroy(ForwardingContextual.java:18)
      at org.jboss.weld.context.DependentInstancesStore.destroy(DependentInstancesStore.java:79)
      at
      org.jboss.weld.context.DependentInstancesStore.destroyDependentInstances(DependentInstancesStore.
      java:73)
      at org.jboss.weld.context.CreationalContextImpl.release(CreationalContextImpl.java:79)
      at org.jboss.weld.bean.ManagedBean.destroy(ManagedBean.java:181)
      at org.jboss.weld.context.ForwardingContextual.destroy(ForwardingContextual.java:18)
      at org.jboss.weld.context.AbstractMapContext.destroy(AbstractMapContext.java:142)
      at org.jboss.weld.context.AbstractMapContext.destroy(AbstractMapContext.java:159)
      at
      org.jboss.weld.context.AbstractThreadLocalMapContext.destroy(AbstractThreadLocalMapContext.java:6
      8)
      at org.jboss.weld.context.ContextLifecycle.endSession(ContextLifecycle.java:81)
      at org.jboss.weld.servlet.ServletLifecycle.endSession(ServletLifecycle.java:92)
      at org.jboss.weld.servlet.WeldListener.sessionDestroyed(WeldListener.java:134)
      at org.apache.catalina.session.StandardSession.expire(StandardSession.java:743)
      at org.apache.catalina.session.StandardSession.expire(StandardSession.java:705)
      at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:622)
      at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:1013)
      at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5575)
      at
      org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.
      java:1796)
      at
      org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1785)
      at java.lang.Thread.run(Thread.java:637)

      #]

        Activity

        Hide
        ksak added a comment -

        no-interface view and Local 3.x SFSB removal requests through CDI SPI were failing with an authorization
        exception because those views do not contain the javax.ejb.EJBLocalObject.remove() signature and were
        not part of the generated security policy.

        Show
        ksak added a comment - no-interface view and Local 3.x SFSB removal requests through CDI SPI were failing with an authorization exception because those views do not contain the javax.ejb.EJBLocalObject.remove() signature and were not part of the generated security policy.

          People

          • Assignee:
            ksak
            Reporter:
            ksak
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: