Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-2148

NPE in TimeoutMemoryStore under heavy load

    XMLWordPrintableJSON

Details

    Description

      When using the TimeoutMemoryStore in a multithreaded environment, you can occasionally run into this NPE:

      java.lang.NullPointerException
      	at org.apache.servicemix.store.memory.TimeoutMemoryStore$Entry.access$200(TimeoutMemoryStore.java:77)
      	at org.apache.servicemix.store.memory.TimeoutMemoryStore.evict(TimeoutMemoryStore.java:66)
      	at org.apache.servicemix.store.memory.TimeoutMemoryStore.load(TimeoutMemoryStore.java:57)
      

      This happens when the evict() method is iterating over the contents of the data map and is trying to access a store entry that has been removed by another thread in the meanwhile.

      Attachments

        Activity

          People

            gertvanthienen Gert Vanthienen
            gertvanthienen Gert Vanthienen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: