Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-3815

ContextManager.getCurrentContext() throws NullPointerException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0.2, 2.0.3, 2.1, 2.1.4
    • Fix Version/s: Wish List
    • Component/s: security
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      ContextManager.getCurrentContext() is throwing a NullPointerException. This is observed only when there is heavy load on the application. Most likely it is a threading issue where one thread is unregistering the subject while another is executing getCurrentContext(). Excerpt from stacktrace given below.

      ....
      Caused by: java.lang.NullPointerException
      at org.apache.geronimo.security.ContextManager.getCurrentContext(ContextManager.java:197)
      at org.apache.geronimo.openejb.GeronimoSecurityService.isCallerAuthorized(GeronimoSecurityService.java:101)
      at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:142)
      at org.apache.openejb.core.ivm.EjbHomeProxyHandler.create(EjbHomeProxyHandler.java:267)
      at org.apache.openejb.core.ivm.EjbHomeProxyHandler._invoke(EjbHomeProxyHandler.java:158)
      at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:321)
      at org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
      at $Proxy16.create(Unknown Source)
      ... 53 more

        Attachments

        1. GERONIMO-3815-3.debug.patch
          8 kB
          Aman Nanner
        2. GERONIMO-3815-2.debug.patch
          7 kB
          David Jencks
        3. GERONIMO-3815.debug.patch
          5 kB
          David Jencks

          Activity

            People

            • Assignee:
              djencks David Jencks
              Reporter:
              vamsic Vamsavardhana Reddy
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: