[jboss-user] [JBoss Cache: Core Edition] - Re: 2.2 to 3.0CR2

lovelyliatroim do-not-reply at jboss.com
Thu Oct 30 05:38:43 EDT 2008


Next up.......could be related to the last post but will post what i see

Take the config  in 2.x format like so

  | <region name="/evictiontest/LRU" policyClass="org.jboss.cache.eviction.LRUPolicy">
  |                   <attribute name="maxNodes">3</attribute>
  |                   <attribute name="timeToLiveSeconds">-1</attribute>
  |                   <attribute name="maxAgeSeconds">-1</attribute>
  |             </region>
  | 

Now i am using the 3.0 jar version and want to avail of what was previously known as "no limit". So i set the 2.x format to "-1" which in the 3.0 jar version means no limit.

Get the following stack trace.



  | 
  | org.jboss.cache.CacheException: Unable to invoke method public void org.jboss.cache.RegionManagerImpl.start() on object 
  | 	at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:148)
  | 	at org.jboss.cache.factories.ComponentRegistry$PrioritizedMethod.invoke(ComponentRegistry.java:970)
  | 	at org.jboss.cache.factories.ComponentRegistry.internalStart(ComponentRegistry.java:746)
  | 	at org.jboss.cache.factories.ComponentRegistry.start(ComponentRegistry.java:610)
  | 	at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:355)
  | 	at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:122)
  | 	at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:94)
  | 	at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:76)
  | 	at at.sit.cmds.cache.test.CacheTestClient.evictionTest(CacheTestClient.java:146)
  | 	at at.sit.cmds.cache.test.CacheTestClient.main(CacheTestClient.java:339)
  | Caused by: java.lang.reflect.InvocationTargetException
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:597)
  | 	at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:144)
  | 	... 9 more
  | Caused by: org.jboss.cache.config.ConfigurationException: timeToLive must be configured to a value greater than or equal to 0 (or -1 for unlimited time to live) for org.jboss.cache.eviction.LRUAlgorithm
  | 	at org.jboss.cache.eviction.LRUAlgorithmConfig.validate(LRUAlgorithmConfig.java:144)
  | 	at org.jboss.cache.config.EvictionRegionConfig.validate(EvictionRegionConfig.java:301)
  | 	at org.jboss.cache.RegionManagerImpl.start(RegionManagerImpl.java:129)
  | 	... 14 more
  | 

This bit is the important bit


  | Caused by: org.jboss.cache.config.ConfigurationException: timeToLive must be configured to a value g
  | reater than or equal to 0 (or -1 for unlimited time to live) for org.jboss.cache.eviction.LRUAlgorit
  | hm
  | 

It is set to -1 so it shouldnt complain, however the -1 gets converted to -1000 along the way. 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185641#4185641

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185641



More information about the jboss-user mailing list