[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

spennec do-not-reply at jboss.com
Fri Nov 2 09:39:15 EDT 2007


Hello Manik,

Here is what I hope will help you. Since I'm not too knowledgable about TreeCache's internals, I selected a few logs that I thought were representing of the situation just before the exception.


  | <DEBUG> <14:26:40,328> <Started new local TX as result of remote PREPARE: local TX=Xid=BEA1-018D3B5CD670(42403790),
  | Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=30,activeThread=Thread
  | [Incoming Thread,MyApp-TreeCache-Cluster,10.23.65.28:1716,5,Incoming],SCInfo[domain_MyApp+main-env_MyCompany_MyApp_intMgd02]
  | =(state=active),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=main-env_MyCompany_MyApp_intMgd02
  | +10.23.65.28:6621+domain_MyApp+t3+, XAResources={weblogic.jdbc.wrapper.JTSXAResourceImpl},NonXAResources={})]) (Status=0), 
  | global TX=GlobalTransaction:<10.23.65.38:1214>:72> <App.TxInterceptor            > <org.jboss.cache.interceptors.TxInterceptor.
  | handleRemotePrepare(TxInterceptor.java:205)>
  | 
  | <DEBUG> <14:26:40,328> <creating new tx entry> <App.TxInterceptor> 
  | <org.jboss.cache.interceptors.TxInterceptor.handleRemotePrepare(TxInterceptor.java:239)>
  | 
  | <DEBUG> <14:26:40,328> <Handling optimistic remote prepare GlobalTransaction:<10.23.65.38:1214>:72> <App.TxInterceptor> 
  | <org.jboss.cache.interceptors.TxInterceptor.handleOptimisticPrepare(TxInterceptor.java:372)>
  | 
  | <DEBUG> <14:26:40,328> <Adding Method MethodName: _remove; MethodIdInteger: 5; Args: (GlobalTransaction:<10.23.65.38:1214>:72, 
  | /MyApp/DataType1/testDataType1ForCache400-2, true) to modification list> <App.OptimisticNodeInterceptor> <org.jboss.cache.interceptors.
  | OptimisticNodeInterceptor.addToModificationList(OptimisticNodeInterceptor.java:202)>
  | 
  | Here are around 30 others messages about _remove calls
  | 
  | <DEBUG> <14:26:47,422> <Adding Method MethodName: _put; MethodIdInteger: 3; Args: (GlobalTransaction:<10.23.65.38:1214>:72, 
  | /MyApp/Portfolios/Portfolio_cache, item, {BIG_TOSTRING}
  | <ERROR> <14:26:59,971> <method invocation failed> <App.TxInterceptor> 
  | <org.jboss.cache.interceptors.TxInterceptor.replayModifications(TxInterceptor.java:520)>
  | java.lang.ClassCastException: com.MyCompany.MyApp.cache.CachedValueObject
  |  at org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor.invoke(OptimisticCreateIfNotExistsInterceptor.java:57)
  |  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  |  at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.invoke(OptimisticValidatorInterceptor.java:67)
  |  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  |  at org.jboss.cache.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterceptor.java:99)
  |  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  |  at org.jboss.cache.interceptors.OptimisticReplicationInterceptor.invoke(OptimisticReplicationInterceptor.java:137)
  |  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  |  at org.jboss.cache.interceptors.NotificationInterceptor.invoke(NotificationInterceptor.java:32)
  |  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  |  at org.jboss.cache.interceptors.TxInterceptor.replayModifications(TxInterceptor.java:511)
  |  at org.jboss.cache.interceptors.TxInterceptor.handleOptimisticPrepare(TxInterceptor.java:373)
  |  at org.jboss.cache.interceptors.TxInterceptor.handleRemotePrepare(TxInterceptor.java:250)
  |  at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:100)
  |  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  |  at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:123)
  |  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  |  at org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:62)
  |  at org.jboss.cache.CacheImpl.invokeMethod(CacheImpl.java:3939)
  |  at org.jboss.cache.CacheImpl._replicate(CacheImpl.java:2853)
  |  at sun.reflect.GeneratedMethoMyAppcessor92.invoke(Unknown Source)
  |  at sun.reflect.DelegatingMethoMyAppcessorImpl.invoke(DelegatingMethoMyAppcessorImpl.java:25)
  |  at java.lang.reflect.Method.invoke(Method.java:585)
  |  at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:330)
  |  at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:49)
  |  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  |  at org.jboss.cache.interceptors.OptimisticNodeInterceptor.invoke(OptimisticNodeInterceptor.java:161)
  |  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  |  at org.jboss.cache.interceptors.EvictionInterceptor.invoke(EvictionInterceptor.java:90)
  |  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  |  at org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor.invoke(OptimisticCreateIfNotExistsInterceptor.java:70)
  | <DEBUG> <14:26:59,971> <Finished remote prepare GlobalTransaction:<10.23.65.38:1214>:72> <App.TxInterceptor> 
  | <org.jboss.cache.interceptors.TxInterceptor.handleRemotePrepare(TxInterceptor.java:262)>
  | 
  | 

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

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



More information about the jboss-user mailing list