[jboss-user] [JBossCache] - Unknown magic number 10

annette do-not-reply at jboss.com
Tue May 15 15:41:41 EDT 2007


I want to replicate data in a JBoss cache cluster containing two caches.
The caches reside on two machines belonging to the same subnet (32.132.132.103 and 32.132.132.153)

Date are not replicated. Instead I receive a RuntimeException Caused by: java.lang.Exception: Unknown magic number 10

(note: when using two caches on the same machine 32.132.132.103, replication works fine)

Here are service.xml and received stack:


<?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.DummyTransactionManagerLookup 
- <!--             Isolation level : SERIALIZABLE
                              REPEATABLE_READ (default)
                              READ_COMMITTED
                              READ_UNCOMMITTED
                              NONE
        
  --> 
  REPEATABLE_READ 
- <!--              Valid modes are LOCAL
                             REPL_ASYNC
                             REPL_SYNC
                             INVALIDATION_ASYNC
                             INVALIDATION_SYNC
        
  --> 
  REPL_SYNC 
- <!--         Just used for async repl: use a replication queue
        
  --> 
  false 
- <!--             Replication interval for replication queue (in ms)
        
  --> 
  0 
- <!--             Max number of elements which trigger replication
        
  --> 
  0 
- <!--  Name of cluster. Needs to be the same for all clusters, in order
             to find each other
        
  --> 
  TreeCache-Cluster-T7 
- <!--  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, e.g bind_addr="192.168.0.2"
                
  --> 
- <!--  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="228.1.2.3" mcast_port="10485" ip_ttl="1" ip_mcast="true" receive_on_all_interfaces="true" mcast_send_buf_size="150000" mcast_recv_buf_size="80000" ucast_send_buf_size="150000" ucast_recv_buf_size="80000" 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" />
  --> 
  <FD_SOCK /> 
  <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="true" down_thread="true" /> 
  
  
- <!--          Whether or not to fetch state on joining a cluster
         NOTE this used to be called FetchStateOnStartup and has been renamed to be more descriptive.
        
  --> 
  true 
- <!--             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
        
  --> 
  15000 
- <!--             Number of milliseconds to wait until all responses for a
            synchronous call have been received.
        
  --> 
  15000 
- <!--  Max number of milliseconds to wait for a lock acquisition 
  --> 
  10000 
- <!--  Name of the eviction policy class. 
  --> 
  org.jboss.cache.aop.eviction.AopLRUPolicy 
- <!--   Specific eviction policy configurations. This is LRU 
  		
  --> 
- 
- 
  5 
- <!--   Cache wide default 
  				
  --> 
- 
  10000 
  0 
  0 
  
  
  
- <!--           Indicate whether to use region based marshalling or not. Set this to true if you are running under a scoped
          class loader, e.g., inside an application server. Default is "false".
       
  --> 
  false 
  
- <!--   Uncomment to get a graphical view of the TreeCache MBean above 
  --> 
- <!--    
  --> 
- <!--       jboss.cache:service=TreeCache
  --> 
- <!--       jboss.cache:service=TreeCache
  --> 
- <!--    
  --> 
  





[5/15/07 10:36:44:648 CEST] 00000064 JBossLasttest 3   *** JBossLasttest - getObject() - /aop/person1 null
[5/15/07 10:36:44:981 CEST] 00000064 SystemErr     R   log4j:WARN No appenders could be found for logger (org.jboss.serial.util.HashStringUtil).
[5/15/07 10:36:44:981 CEST] 00000064 SystemErr     R   log4j:WARN Please initialize the log4j system properly.
[5/15/07 10:36:45:988 CEST] 00000064 DummyTransact E org.jboss.cache.transaction.DummyTransaction notifyBeforeCompletion beforeCompletion() failed for tx=org.jboss.cache.transaction.DummyTransaction at 1215f64e, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<32.132.132.103:51867>:1, tx=org.jboss.cache.transaction.DummyTransaction at 1215f64e)]
                                 java.lang.RuntimeException: 
	at org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1163)
	at org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:75)
	at org.jboss.cache.transaction.DummyTransaction.notifyBeforeCompletion(DummyTransaction.java:247)
	at org.jboss.cache.transaction.DummyTransaction.commit(DummyTransaction.java:54)
	at org.jboss.cache.transaction.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:61)
	at org.jboss.cache.aop.PojoCache.endTransaction(PojoCache.java:702)
	at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:489)
	at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:426)
	at de.huk.jboss.last.JBossLasttest.putObject(JBossLasttest.java:232)
	at de.huk.jboss.last.JBossLasttest.get(JBossLasttest.java:91)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
	at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
	at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:178)
	at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:141)
	at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:433)
	at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:398)
	at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)
	at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:203)
	at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:226)
	at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:151)
	at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
	at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:226)
	at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:226)
	at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:283)
	at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:719)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
	at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:89)
	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1924)
	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
Caused by: java.lang.Exception: Unknown magic number 10
	at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallObject(TreeCacheMarshaller140.java:419)
	at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallMethodCall(TreeCacheMarshaller140.java:435)
	at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallObject(TreeCacheMarshaller140.java:388)
	at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallMethodCall(TreeCacheMarshaller140.java:435)
	at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallObject(TreeCacheMarshaller140.java:388)
	at org.jboss.cache.marshall.TreeCacheMarshaller140.objectFromStream(TreeCacheMarshaller140.java:137)
	at org.jboss.cache.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:167)
	at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:254)
	at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:650)
	at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:535)
	at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:358)
	at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:775)
	at org.jgroups.JChannel.up(JChannel.java:1091)
	at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:377)
	at org.jgroups.stack.ProtocolStack.receiveUpEvent(ProtocolStack.java:393)
	at org.jgroups.stack.Protocol.passUp(Protocol.java:538)
	at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:158)
	at org.jgroups.stack.UpHandler.run(Protocol.java:60)

[5/15/07 10:36:46:010 CEST] 00000064 TreeCache     W org.jboss.cache.aop.PojoCache endTransaction PojoCache.endTransaction(): rolling back transaction with exception: javax.transaction.RollbackException: outcome is false status: 1




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

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



More information about the jboss-user mailing list