Terracotta Project Issue Tracker | Sourceforge Tracker | 7 years ago
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    It seems like there is a small "bug" in the MulticastServerThread class (file In line 192 (revision 52), the code looks like: if (!socket.isClosed()) { but it would be better if it looked like: if ((socket != null) && (!socket.isClosed())) { because I get a NullPointerException if the application terminates before Java is able to start the thread. If I run the application in the debugger (with a breakpoint), the thread has enough time to create the MulticastSocket object. Exception in thread "main" java.lang.NullPointerException at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender$MulticastServerThread.closeSocket( at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender$MulticastServerThread.interrupt( at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender.dispose( at net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.dispose( at net.sf.ehcache.CacheManager.shutdown( at go.<init>( at go.main( This is of course not a big problem because it is very rare that an application uses the Cache and terminates THAT quickly.... ;) Thanks, Roman Sourceforge Ticket ID: 1480442 - Opened By: roman_k - 2 May 2006 14:45 UTC

    Terracotta Project Issue Tracker | 7 years ago | Sourceforge Tracker

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender$MulticastServerThread.closeSocket()
    2. Ehcache
      1. net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender$MulticastServerThread.closeSocket(
      2. net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender$MulticastServerThread.interrupt(
      3. net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender.dispose(
      4. net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.dispose(
      5. net.sf.ehcache.CacheManager.shutdown(
      5 frames
    3. Unknown
      1. go.<init>(
      2. go.main(
      2 frames