• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009

Description

When the RMICacheManagerPeerProviderFactory is set ‘manual’ without ‘rmiUrls’, there is the next NullPointerException: Exception in thread “main” java.lang.NullPointerException at net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory.createManuallyConfiguredCachePeerProvider(RMICacheManagerPeerProviderFactory.java:110) at net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory.createCachePeerProvider(RMICacheManagerPeerProviderFactory.java:98) at net.sf.ehcache.config.ConfigurationHelper.createCachePeerProvider(ConfigurationHelper.java:176) at net.sf.ehcache.CacheManager.configure(CacheManager.java:288) at net.sf.ehcache.CacheManager.init(CacheManager.java:228) at net.sf.ehcache.CacheManager.(CacheManager.java:165) at net.sf.ehcache.CacheManager.create(CacheManager.java:352)

The RMICacheManagerPeerProviderFactory doesn’t check if the rmiUrls got from the properties is null in createManuallyConfiguredCachePeerProvider() before the line rmiUrls = rmiUrls.trim();

Using ehcache 1.2 beta 4

Sourceforge Ticket ID: 1432074 - Opened By: lobre - 15 Feb 2006 10:52 UTC

Comments

Sourceforge Tracker 2009-09-21

Logged In: YES user_id=693320

Fixed in trunk. Now throws a CacheException with the error message “rmiUrls must be specified when peerDiscovery is manual”. Thanks for the report. Wil be in ehcache 1.2 beta 5. Comment by: gregluck - 1 Mar 2006 01:05 UTC

Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira