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

JBPAPP-751 - UnifiedInvokerHAProxy can throw NullPointerException under load

XMLWordPrintable

    • Icon: Support Patch Support Patch
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.GA_CP02
    • 4.3.0.GA_CP01
    • Clustering, System
    • None
    • Hide
      PATCH NAME:
              JBPAPP-825
      PRODUCT NAME:
              JBoss Enterprise Platform App Edition
      VERSION:
              4.3.0.GA_CP01
      SHORT DESCRIPTION:
              A NullPointerException is no longer thrown when Unified HA/Clustered invoker proxy is under heavy load.
      LONG DESCRIPTION:
              Under heavy load and sharing an EJB proxy between different threads, there's a chance of NullPointerException like the one below being reported, specially when using proxies configured with RoundRobin as load balance policy, such as SLSBs or EJB2 home proxies:

              java.lang.NullPointerException
                at org.jboss.invocation.unified.interfaces.UnifiedInvokerHAProxy.invoke(UnifiedInvokerHAProxy.java:186)
                at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
                at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:63)

              The exception was due to the assignment and initialisation of Remoting's client instance not being atomic. This lead to the client being used before its invoker had been set and hence stopping the invocation with the NullPointerException above.
      MANUAL INSTALL INSTRUCTIONS:
              Rename %JBOSS_HOME%/client/jbossha-client.jar to "jbossha-client.jar.replacedBy.JBPAPP-825.jar.old"
              Copy the new jbossha-client.jar to %JBOSS_HOME%/client/

              Rename %JBOSS_HOME%/client/jbossall-client.jar to "jbossall-client.jar.replacedBy.JBPAPP-825.jar.old"
              Copy the new jbossall-client.jar to %JBOSS_HOME%/client/

              Rename %JBOSS_HOME%/server/all/lib/jbossha.jar to "jbossha.jar.replacedBy.JBPAPP-825.jar.old"
              Copy the new jbossha.jar to %JBOSS_HOME%/server/all/lib/

              Rename %JBOSS_HOME%/server/production/lib/jbossha.jar to "jbossha.jar.replacedBy.JBPAPP-825.jar.old"
              Copy the new jbossha.jar to %JBOSS_HOME%/server/production/lib/
      COMPATIBILITY:
              N/A
      DEPENDENCIES:
              N/A
      SUPERSEDES:
              N/A
      SUPERSEDED BY:
              N/A
      CREATOR:
              Galder Zamarreño
      DATE:
              2008/05/13
      Show
      PATCH NAME:          JBPAPP-825 PRODUCT NAME:         JBoss Enterprise Platform App Edition VERSION:         4.3.0.GA_CP01 SHORT DESCRIPTION:         A NullPointerException is no longer thrown when Unified HA/Clustered invoker proxy is under heavy load. LONG DESCRIPTION:         Under heavy load and sharing an EJB proxy between different threads, there's a chance of NullPointerException like the one below being reported, specially when using proxies configured with RoundRobin as load balance policy, such as SLSBs or EJB2 home proxies:         java.lang.NullPointerException           at org.jboss.invocation.unified.interfaces.UnifiedInvokerHAProxy.invoke(UnifiedInvokerHAProxy.java:186)           at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)           at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:63)         The exception was due to the assignment and initialisation of Remoting's client instance not being atomic. This lead to the client being used before its invoker had been set and hence stopping the invocation with the NullPointerException above. MANUAL INSTALL INSTRUCTIONS:         Rename %JBOSS_HOME%/client/jbossha-client.jar to "jbossha-client.jar.replacedBy. JBPAPP-825 .jar.old"         Copy the new jbossha-client.jar to %JBOSS_HOME%/client/         Rename %JBOSS_HOME%/client/jbossall-client.jar to "jbossall-client.jar.replacedBy. JBPAPP-825 .jar.old"         Copy the new jbossall-client.jar to %JBOSS_HOME%/client/         Rename %JBOSS_HOME%/server/all/lib/jbossha.jar to "jbossha.jar.replacedBy. JBPAPP-825 .jar.old"         Copy the new jbossha.jar to %JBOSS_HOME%/server/all/lib/         Rename %JBOSS_HOME%/server/production/lib/jbossha.jar to "jbossha.jar.replacedBy. JBPAPP-825 .jar.old"         Copy the new jbossha.jar to %JBOSS_HOME%/server/production/lib/ COMPATIBILITY:         N/A DEPENDENCIES:         N/A SUPERSEDES:         N/A SUPERSEDED BY:         N/A CREATOR:         Galder Zamarreño DATE:         2008/05/13
    • Low

      Support patch to fix NPE under load in UnifiedInvokerHAProxy

            jbn-patch-team JBN Patch Team list
            rh-ee-galder Galder Zamarreño
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: