Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1979

NPE while refreshing chain

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: jax-rs-whiteboard-1.0.4
    • Fix Version/s: None
    • Component/s: jax-rs-whiteboard

      Description

      I get a NullPointerException when registering some chain filters or endpoints. I could trace the problem back to the refresh() method of ServiceTuple. After the AtomicReference _service is set to null and before the new value is set later on, a call to getService() occurs in another thread which causes the NPE.

      This leads to the problem that a filter in my chain filter is being skipped sometimes while the my application starts which causes bugs.

       

      P.S. I had to change the code a bit to get the stack trace. It seems the logging in Whiteboard:895 can be improved a bit to log stack traces.

        Attachments

        1. stacktrace.txt
          26 kB
          Veselin

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              markov Veselin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: