2 Replies Latest reply on Mar 21, 2003 8:00 PM by sverker

    Exception in SecurityAssociation.getPrincipalInfo

    didi1976

      Hi,

      my application calls several times the same method. Most of the time everything works fine but on some specific calls I get the following exception.


      java.security.AccessControlException: access denied (java.lang.RuntimePermission org.jboss.security.SecurityAssociation.getPrincipalInfo)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
      at java.security.AccessController.checkPermission(AccessController.java:401)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
      at org.jboss.security.SecurityAssociation.getPrincipal(SecurityAssociation.java:112)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:74)
      at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:117)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy1.invokeSessionBean(Unknown Source)
      ...

      I can not see any difference between the call which works and the one which throws the above exception.

      In both cases I call the same method of an stateful session bean.

      Didi