[JBossCache] - Re: Exception thrown when calling remove during after-comple
by rworsnop
"steve.ebersole(a)jboss.com" wrote : I sometimes get this issue when I use JBC. Of course the original stack trace would be completely useless, so instead here is some random stack trace based on some pseudo-code I wrote based on my assumptions about the code...
|
|
Steve,
I didn't include the Hibernate stack trace because I was asking a question in the JBoss Cache forum, not the Hibernate forum.
Anyway, hope this helps:
org.hibernate.cache.CacheException: org.jboss.cache.CacheException: Must be in a valid transaction _remove; id:5(null, /com/medq/test/C, true)
| at org.hibernate.cache.OptimisticTreeCache.clear(OptimisticTreeCache.java:169)
| at org.hibernate.cache.TransactionalCache.clear(TransactionalCache.java:124)
| at org.hibernate.impl.SessionFactoryImpl.evictEntity(SessionFactoryImpl.java:832)
| at org.hibernate.action.BulkOperationCleanupAction.evictEntityRegions(BulkOperationCleanupAction.java:132)
| at org.hibernate.action.BulkOperationCleanupAction.afterTransactionCompletion(BulkOperationCleanupAction.java:111)
| at org.hibernate.engine.ActionQueue.afterTransactionCompletion(ActionQueue.java:170)
| at org.hibernate.impl.SessionImpl.afterTransactionCompletion(SessionImpl.java:424)
| at org.hibernate.jdbc.JDBCContext.afterTransactionCompletion(JDBCContext.java:225)
| at org.hibernate.transaction.CacheSynchronization.afterCompletion(CacheSynchronization.java:85)
| at org.jboss.cache.transaction.DummyTransaction.notifyAfterCompletion(DummyTransaction.java:270)
| at org.jboss.cache.transaction.DummyTransaction.commit(DummyTransaction.java:64)
| at org.jboss.cache.transaction.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:61)
| at com.medq.test.TestHibernate.main(TestHibernate.java:24)
| Caused by: org.jboss.cache.CacheException: Must be in a valid transaction _remove; id:5(null, /com/medq/test/C, true)
| at org.jboss.cache.interceptors.OptimisticNodeInterceptor.invoke(OptimisticNodeInterceptor.java:66)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.EvictionInterceptor.invoke(EvictionInterceptor.java:88)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor.invoke(OptimisticCreateIfNotExistsInterceptor.java:69)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.invoke(OptimisticValidatorInterceptor.java:84)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterceptor.java:126)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.OptimisticReplicationInterceptor.invoke(OptimisticReplicationInterceptor.java:147)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:365)
| at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:160)
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
| at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:183)
| at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5776)
| at org.jboss.cache.TreeCache.remove(TreeCache.java:3855)
| at org.jboss.cache.TreeCache.remove(TreeCache.java:3438)
| at org.hibernate.cache.OptimisticTreeCache.clear(OptimisticTreeCache.java:166)
| ... 12 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029454#4029454
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029454
19Â years, 1Â month
[JBoss Messaging] - Not able to subscribe to a temporary topic
by sp4rt4n029
I try to create a temporary topic in a topic publisher and subscribe it using Seam Remoting, I get the following error:
| java.lang.IllegalArgumentException: Cannot subscribe to a topic that is not allowed. Topic [JMS_TT1] is not an allowed topic.
| at org.jboss.seam.remoting.messaging.SubscriptionRegistry.subscribe(SubscriptionRegistry.java:136)
| at org.jboss.seam.remoting.messaging.SubscriptionRequest.subscribe(SubscriptionRequest.java:22)
| at org.jboss.seam.remoting.SubscriptionHandler.handle(SubscriptionHandler.java:78)
| at org.jboss.seam.remoting.SeamRemotingServlet.doPost(SeamRemotingServlet.java:77)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:619)
|
thanks for the help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029447#4029447
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029447
19Â years, 1Â month
[Remoting] - Not able to subscribe to a temporary topic
by sp4rt4n029
I try to create a temporary topic in a topic publisher and subscribe it using Seam Remoting, I get the following error:
| java.lang.IllegalArgumentException: Cannot subscribe to a topic that is not allowed. Topic [JMS_TT2] is not an allowed topic.
| at org.jboss.seam.remoting.messaging.SubscriptionRegistry.subscribe(SubscriptionRegistry.java:136)
| at org.jboss.seam.remoting.messaging.SubscriptionRequest.subscribe(SubscriptionRequest.java:22)
| at org.jboss.seam.remoting.SubscriptionHandler.handle(SubscriptionHandler.java:78)
| at org.jboss.seam.remoting.SeamRemotingServlet.doPost(SeamRemotingServlet.java:77)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:619)
|
thanks for the help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029441#4029441
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029441
19Â years, 1Â month
[JBoss Seam] - @Startup depends
by monkeyden
I have the following APPLICATION scoped component which I want to startup when the app starts. As you can see, in the create method, I want to add the injected messages Map to permCache but despite the depends attribute, "messages" is not available. Is the value of depends a Seam component name? Do I need to use components.xml to do this? I'd like to see more documentation on components.xml. I feel like I could be doing much more with it.
@Startup(depends={"org.jboss.seam.core.facesMessages"})
| @Name("appState")
| @Scope(APPLICATION)
| public class NEMApplicationState {
|
| @In
| private Map<String, String> messages;
|
| private static WeakHashMap tempCache;
|
| private static HashMap permCache;
|
| @Create
| public void create(){
| NEMApplicationState.tempCache = new WeakHashMap<Object, Object>();
|
| NEMApplicationState.permCache = new HashMap<Object, Object>();
|
| permCache.put(NEMApplicationState.START_TIME_CTX_NAME, new Date());
|
| permCache.put(NEMApplicationState.MESSAGES_CTX_NAME, messages);
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029439#4029439
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029439
19Â years, 1Â month