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

NullPointerException when calling HAJNDI during startup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.2.0
    • EAP_EWP 5.1.2
    • Clustering
    • None
    • Hide

      Use the attached byteman script on one node of a 2 or more node cluster.

      JAVA_OPTS=-javaagent:$BYTEMAN_HOME/lib/byteman.jar=script:/path/to/pauseHARMIServerImplinit.btm

      (This script just pauses at the right spot to make it easier to trigger the bug.
      Without the script, just restart one member of the cluster repeatedly while hitting HA-JNDI until the
      timing is just right to trigger it).

      Start the other member(s) of the cluster except for the one with the byteman script.

      From a standalone client configured with jndi.properties to hit HA-JNDI, run:

      InitialContext context = new InitialContext()
      while ( true )
      context.lookup ( ... );

      Start the member with the byteman script.

      Show
      Use the attached byteman script on one node of a 2 or more node cluster. JAVA_OPTS=-javaagent:$BYTEMAN_HOME/lib/byteman.jar=script:/path/to/pauseHARMIServerImplinit.btm (This script just pauses at the right spot to make it easier to trigger the bug. Without the script, just restart one member of the cluster repeatedly while hitting HA-JNDI until the timing is just right to trigger it). Start the other member(s) of the cluster except for the one with the byteman script. From a standalone client configured with jndi.properties to hit HA-JNDI, run: InitialContext context = new InitialContext() while ( true ) context.lookup ( ... ); Start the member with the byteman script.
    • Release Notes
    • Hide
      In previous EAP 5 releases some clients saw <literal>NullPointerException</literal> when calling HAJNDI during startup. This was cause by <literal>HARMIServerImpl</literal> processes requests for HAJNDI before it is fully initialized. This would produce errors from components that were not in the correct state. As a resolution to this issue, <literal>HARMIServerImpl</literal> now throws <literal>java.rmi.NoSuchObjectException</literal> if a request comes in during startup, which causes an automatic retry in the client HAJNDI code.
      Show
      In previous EAP 5 releases some clients saw <literal>NullPointerException</literal> when calling HAJNDI during startup. This was cause by <literal>HARMIServerImpl</literal> processes requests for HAJNDI before it is fully initialized. This would produce errors from components that were not in the correct state. As a resolution to this issue, <literal>HARMIServerImpl</literal> now throws <literal>java.rmi.NoSuchObjectException</literal> if a request comes in during startup, which causes an automatic retry in the client HAJNDI code.
    • Documented as Resolved Issue
    • NEW

    Description

      Exception in thread "main" java.lang.NullPointerException
      at org.jboss.ha.framework.server.HARMIServerImpl.invoke(HARMIServerImpl.java:203)
      ...

      Attachments

        Issue Links

          Activity

            People

              rhn-support-dereed Dennis Reed
              rhn-support-dereed Dennis Reed
              Scott Thomas Scott Thomas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: