Why does JBoss throw an "IllegalArgumentException: either callerSubject and callerRunAs should be non-null" sometimes when under a load?

Solution Verified - Updated -

Issue

  • Why does JBoss throw an "IllegalArgumentException: either callerSubject and callerRunAs should be non-null" sometimes when under a load?

    2011-05-09 16:14:16,176 374983 ERROR [org.jboss.ejb.plugins.LogInterceptor] (WorkManager(2)-18:) RuntimeException in method: public abstract void org.example.jboss.SessionLocal.method(java.lang.String,java.lang.Integer):
    java.lang.IllegalArgumentException: Either callerSubject or callerRunAs should be non-null
      at org.jboss.security.plugins.javaee.EJBAuthorizationHelper.authorize(EJBAuthorizationHelper.java:78)
      at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:189)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content