rajrutu / jain-sip

Automatically exported from code.google.com/p/jain-sip
0 stars 0 forks source link

NullPointerExceptions - CommonLogger.legacyLogger is not thread-safe #135

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've been running load tests using jain-sip and I've found a concurrence 
problem on CommonLogger. Running lots of instances of SipStackImpl causes 
NullPointerExceptions on loggers.

If I comment 723 line of SipStackImpl 
(https://code.google.com/p/jain-sip/source/browse/src/gov/nist/javax/sip/SipStac
kImpl.java):

// CommonLogger.legacyLogger = stackLogger;

the problem is solved.

Doing a quick analysis, we can verify that the variable 
CommonLogger.legacyLogger
is not thread safe

What version of the product are you using? On what operating system?
- Jain-sip-ri version 1.2.170
- Windows 7 64 bits

Original issue reported on code.google.com by joaosavio on 2 Jun 2014 at 7:17