Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1305

Standalone Server shutdown fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.7.0
    • server
    • None
    • All

    Description

      The 'Server' component is never registered so the following call fails with a null pointer.

      Server server = SystemInstance.get().getComponent(Server.class);
      server.stop();

      The order of shutdown in Server.java should be:

      OpenEJB.destroy();
      manager.stop();

      Remove redundant code in SimpleServiceManager.java - In fact the removed code could potentially cause shutdown race conditions on RA's if Server.stop() is called.

      Attachments

        1. Server.patch
          14 kB
          Andy Gumbrecht

        Activity

          People

            madshaddow Andy Gumbrecht
            andyg Andy Gumbrecht
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified