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

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


Here is my 3.0.x format file


  | <?xml version="1.0" encoding="UTF-8"?>
  | <jbosscache xmlns="urn:jboss:jbosscache-core:config:3.0">
  | <locking isolationLevel="NONE" lockAcquisitionTimeout="15000"/>
  | <clustering mode="replication" clusterName="CMDS-Cluster">
  | <async/>
  | <stateRetrieval fetchInMemoryState="false" timeout="20000"/>
  | <jgroupsConfig>
  | <UDP discard_incompatible_packets="true" enable_bundling="false" enable_diagnostics="true" ip_ttl="2" loopback="false" max_bundle_size="64000" max_bundle_timeout="30" 
  | 	mcast_addr="228.10.10.10" mcast_port="45588" mcast_recv_buf_size="25000000" mcast_send_buf_size="640000" oob_thread_pool.enabled="true" oob_thread_pool.keep_alive_time="10000" oob_thread_pool.max_threads="4" oob_thread_pool.min_threads="1" oob_thread_pool.queue_enabled="true" oob_thread_pool.queue_max_size="10" oob_thread_pool.rejection_policy="Run" 
  | 	 thread_naming_pattern="pl" thread_pool.enabled="true" thread_pool.keep_alive_time="30000" thread_pool.max_threads="25" thread_pool.min_threads="1" thread_pool.queue_enabled="true" thread_pool.queue_max_size="10" thread_pool.rejection_policy="Run" tos="8" ucast_recv_buf_size="20000000" ucast_send_buf_size="640000" use_concurrent_stack="true" use_incoming_packet_handler="true"/>
  | <PING num_initial_members="3" timeout="2000"/>
  | <MERGE2 max_interval="30000" min_interval="10000"/>
  | <FD_SOCK/>
  | <FD max_tries="5" shun="true" timeout="10000"/>
  | <VERIFY_SUSPECT timeout="1500"/>
  | <pbcast.NAKACK discard_delivered_msgs="true" gc_lag="0" retransmit_timeout="300,600,1200,2400,4800" use_mcast_xmit="false"/>
  | <UNICAST timeout="300,600,1200,2400,3600"/>
  | <pbcast.STABLE desired_avg_gossip="50000" max_bytes="400000" stability_delay="1000"/>
  | <pbcast.GMS join_timeout="5000" print_local_addr="true" shun="false" view_ack_collection_timeout="5000" view_bundling="true"/>
  | <FRAG2 frag_size="60000"/>
  | <pbcast.STREAMING_STATE_TRANSFER/>
  | <pbcast.FLUSH timeout="0"/>
  | </jgroupsConfig>
  | </clustering>
  | <eviction wakeUpInterval="3000">
  | <default algorithmClass="org.jboss.cache.eviction.ExpirationAlgorithm" eventQueueSize="200000">
  | <property name="maxNodes" value="5000000"/>
  | </default>
  | <region name="/evictiontest/LRU" algorithmClass="org.jboss.cache.eviction.LRUAlgorithm" eventQueueSize="200000">
  | <property name="maxNodes" value="3"/>
  | <property name="timeToLive" value="-1"/>
  | <property name="maxAge" value="-1"/>
  | </region>
  | </eviction>
  | <loaders>
  | <loader class="org.jboss.cache.loader.ClusteredCacheLoader">
  | <properties>
  | timeout=15000
  | </properties>
  | </loader>
  | </loaders>
  | </jbosscache>
  | 

which causes this exception for me 

anonymous wrote : 
  | 
  | java.lang.NullPointerException
  | 	at org.jboss.cache.config.parsing.XmlConfigurationParser2x.getMBeanElement(XmlConfigurationParser2x.java:207)
  | 	at org.jboss.cache.config.parsing.XmlConfigurationParser2x.parseStream(XmlConfigurationParser2x.java:104)
  | 	at org.jboss.cache.config.parsing.XmlConfigurationParser2x.parseFile(XmlConfigurationParser2x.java:90)
  | 	at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:90)
  | 	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:338)
  | 
  | 

How i create the cache is posted earlier.


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

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



More information about the jboss-user mailing list