Hello,
I'm trying to instantiate TreeCacheMBean inside a MDB.
all works fine but anonymous wrote : SOMETIMES console writes
the following error : (is a configuration problem???).
Put down error an configuration service xml ::

anonymous wrote : error
16:01:22,813 ERROR [CacheLoaderInterceptor] failed committing transaction to 
cache loader
java.io.EOFException
        at 
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2165)
        at 
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2631)
        at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
        at java.io.ObjectInputStream.(ObjectInputStream.java:253)
        at 
org.jboss.cache.loader.FileCacheLoader.loadAttributes(FileCacheLoader.java:340)
        at org.jboss.cache.loader.FileCacheLoader.put(FileCacheLoader.java:94)
        at org.jboss.cache.loader.FileCacheLoader.put(FileCacheLoader.java:135)
        at 
org.jboss.cache.loader.FileCacheLoader.commit(FileCacheLoader.java:194)
        at 
org.jboss.cache.interceptors.CacheLoaderInterceptor$SynchronizationHandler.afterCompletion(CacheLoaderInterceptor.java:263)
        at 
org.jboss.tm.TransactionImpl.doAfterCompletion(TransactionImpl.java:1418)
        at 
org.jboss.tm.TransactionImpl.completeTransaction(TransactionImpl.java:1090)
        at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:349)
        at org.jboss.tm.TxManager.commit(TxManager.java:200)
        at 
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:341)
        at 
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:871)
        at 
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159)
        at org.jboss.mq.SpySession.run(SpySession.java:347)
        at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
        at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
        at java.lang.Thread.run(Thread.java:534)

anonymous wrote : Configuration mbean service

<?xml version="1.0" encoding="UTF-8"?>

<!-- ===================================================================== -->
<!--                                                                       -->
<!--  Sample TreeCache Service Configuration                               -->
<!--                                                                       -->
<!-- ===================================================================== -->



    


    <!-- ==================================================================== 
-->
    <!-- Defines TreeCache configuration                                      
-->
    <!-- ==================================================================== 
-->

    

        jboss:service=Naming
        jboss:service=TransactionManager

        <!--
            Configure the TransactionManager
        -->
        <!--org.jboss.cache.JBossTransactionManagerLookup
-->

        <!--
            Node locking level : SERIALIZABLE
                                 REPEATABLE_READ (default)
                                 READ_COMMITTED
                                 READ_UNCOMMITTED
                                 NONE
        -->
        NONE

        <!--
             Valid modes are LOCAL
                             REPL_ASYNC
                             REPL_SYNC
        -->
        LOCAL


       <!--
       Just used for async repl: use a replication queue
       -->
       false

       <!--
       Replication interval for replication queue (in ms)
       -->
       60000

       <!--
       Max number of elements which trigger replication
       -->
       100


        <!-- Name of cluster. Needs to be the same for all clusters, in order
             to find each other
        -->
        TreeCache-Cluster

        <!-- JGroups protocol stack properties. Can also be a URL,
             e.g. file:/home/bela/default.xml
           
        -->
        
            
                <!-- UDP: if you have a multihomed machine,
                set the bind_addr attribute to the appropriate NIC IP address 
-->
                <!-- UDP: On Windows machines, because of the media sense 
feature
                 being broken with multicast (even after disabling media sense)
                 set the loopback attribute to true -->
                <UDP mcast_addr="230.8.8.8" mcast_port="56677"
                    ip_ttl="32" ip_mcast="true"
                    mcast_send_buf_size="80000" mcast_recv_buf_size="150000"
                    ucast_send_buf_size="80000" ucast_recv_buf_size="150000"
                    loopback="false"/>
                <PING timeout="2000" num_initial_members="3"
                    up_thread="false" down_thread="false"/>
                <MERGE2 min_interval="10000" max_interval="20000"/>
                <FD shun="true" up_thread="true" down_thread="true"/>
                <VERIFY_SUSPECT timeout="1500"
                    up_thread="false" down_thread="false"/>
                <pbcast.NAKACK gc_lag="50" 
retransmit_timeout="600,1200,2400,4800"
                    max_xmit_size="8192" up_thread="false" down_thread="false"/>
               <UNICAST timeout="600,1200,2400" window_size="100" 
min_threshold="10"
                  down_thread="false"/>
               <pbcast.STABLE desired_avg_gossip="20000"
                    up_thread="false" down_thread="false"/>
                <FRAG frag_size="8192"
                    down_thread="false" up_thread="false"/>
                <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
                    shun="true" print_local_addr="true"/>
                <pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/>
            
        


        <!--
            The max amount of time (in milliseconds) we wait until the
            initial state (ie. the contents of the cache) are retrieved from
            existing members in a clustered environment
        -->
        5000

        <!--
            Number of milliseconds to wait until all responses for a
            synchronous call have been received.
        -->
        10000

        <!-- Max number of milliseconds to wait for a lock acquisition -->
        15000


        <!-- Name of the eviction policy class. Not supported now. -->
        


      org.jboss.cache.loader.FileCacheLoader
       D:\resources\cachestore
       false
       /
       <!--
       false
       true
       -->
    



   <!--  Uncomment to get a graphical view of the TreeCache MBean above -->
   <!--   -->
   <!--      jboss.cache:service=TreeCache-->
   <!--      jboss.cache:service=TreeCache-->
   <!--   -->








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

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


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to