I have services deployed in jboss 4.0.1 which use the jboss cache mbean service.

I am using the REPL_SYNC mode and now recieve the following error on all cache 
writes which occur within a transaction. My code NEVER calls a comit() method 
and I can deploy this same code in jboss 4.0.0 using the jboss-cache 1.2 jar 
and do not recieve this error.

Also of interest is the fact that My code appears to continue working in spite 
of this error. Below is the complete stack trace that is appear in my log with 
every transactional cache write.:

11:18:54,287 ERROR [RpcDispatcher] failed invoking method
  | java.lang.UnsupportedOperationException: commit() should not be called on 
TreeCache directly
  |         at org.jboss.cache.TreeCache.commit(TreeCache.java:2729)
  |         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:324)
  |         at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:236)
  |         at 
org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:37)
  |         at 
org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:40)
  |         at 
org.jboss.cache.interceptors.LockInterceptor.invoke(LockInterceptor.java:126)
  |         at 
org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:40)
  |         at 
org.jboss.cache.interceptors.CreateIfNotExistsInterceptor.invoke(CreateIfNotExistsInterceptor.java:47)
  |         at 
org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:40)
  |         at 
org.jboss.cache.interceptors.ReplicationInterceptor.replicate(ReplicationInterceptor.java:210)
  |         at org.jboss.cache.TreeCache._replicate(TreeCache.java:2679)
  |         at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
  |         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:324)
  |         at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:236)
  |         at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:220)
  |         at 
org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:615)
  |         at 
org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:512)
  |         at 
org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:326)
  |         at 
org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:722)
  |         at 
org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:554)
  |         at 
org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:691)
  |         at java.lang.Thread.run(Thread.java:534)

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

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


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to