Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-117

NPE when undeploying node in a cluster

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • Preview 5
    • Preview 4
    • Clustering
    • None

    Description

      > The stuff below is before clustering steps in. If you run the
      > clustering example (or I think any for that matter, but haven't
      > tried), and shut down one of the servers gracefully:
      -It starts undeploying
      -Entries in AOP Dispatcher are removed
      -When the client next tries to connect to the closing down server, the
      > server is still "up", but there is no entry in AOP Dispatcher (target is
      > null). It tries to use the null target, and it fails with a NPE which is
      > propagated all the way up to the client
      >
      > The client code is:
      > public static void main(String[] args) throws Exception
      > {
      > InitialContext ctx = new InitialContext();
      > Session remote = (Session) ctx.lookup(Session.class.getName());
      > while (true)
      >

      { > remote.test(); //Fail here > Thread.sleep(1000); > }

      > }
      >

      Attachments

        Activity

          People

            kkhan1@redhat.com Kabir Khan
            kkhan1@redhat.com Kabir Khan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: