Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-68

DatabaseMap remains empty if Torque is stopped and restarted, causes NPEs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3-RC2
    • 3.3-RC3
    • Runtime
    • None
    • Avalon, JUnit-Tests

    Description

      When running tests with the Fulcrum-Testcontainer, the TorqueComponent is instantiated on every lookup (setUp()) and shutdown on every tearDown(). In this scenario the first test succeeds and all others fail because the DatabaseMap contains no tables. This is probably caused by invalid static references to the DatabaseMap of the previous instance. This situation causes NullPointerExceptions in several BasePeer methods(e.g. processTables()).

      Attachments

        Activity

          People

            tv Thomas Vandahl
            tv Thomas Vandahl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: