[JBossCache] - Re: NPE when using optimistic locking with JbossCache 1.4.0.
by kgrjb
i still get data node is newer ... problem.
JBossCache 1.4.1.CR1 [optimistic lock - invalidation sync]
Hibernate 3.2
JBoss 4.0.5.GA
java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=zzz52.zzzint.com/1919, BranchQual=, localId=1919] status=STATUS_NO_TRANSACTION; - nested throwable: (java.lang.RuntimeException: )
at org.jboss.aspects.tx.TxPolicy.handleEndTransactionException(TxPolicy.java:198)
at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:180)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:211)
at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
at sun.reflect.GeneratedMethodAccessor336.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=zzz52.zzzint.com/1919, BranchQual=, localId=1919] status=STATUS_NO_TRANSACTION; - nested throwable: (java.lang.RuntimeException: )
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:372)
at org.jboss.tm.TxManager.commit(TxManager.java:240)
at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
... 57 more
Caused by: java.lang.RuntimeException:
at org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1091)
at org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:75)
at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1491)
at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1110)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:324)
... 59 more
Caused by: org.jboss.cache.CacheException: DataNode [/zzz/zzzint/zzz/domain/model] version org.hibernate.cache.OptimisticTreeCache$DataVersionAdapter@2f5b6cc8 [current=21, previous=21, src=SingleTableEntityPersister(zzz.zzzint.zzz.domain.model.PlayerPart)] is newer than workspace node org.hibernate.cache.OptimisticTreeCache$DataVersionAdapter@79a067a8 [current=3, previous=3, src=SingleTableEntityPersister(zzz.zzzint.zzz.domain.model.Part)]
at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.simpleValidate(OptimisticValidatorInterceptor.java:127)
at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.validateNodes(OptimisticValidatorInterceptor.java:101)
at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.invoke(OptimisticValidatorInterceptor.java:66)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterceptor.java:95)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.InvalidationInterceptor.invoke(InvalidationInterceptor.java:60)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java:804)
at org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1069)
... 63 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999333#3999333
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999333
19 years, 3 months
[JBoss Messaging] - Re: Does anyone have a clustered oracle service xml file?
by batter
Well I got it almost up and running. The messaging system comes up and by the output it looks like queues and topics are created:
22:13:36,145 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
| 22:13:37,536 INFO [ServerPeer] JBoss Messaging 1.2.0.Beta1 server [1] started
| 22:13:38,031 INFO [STDOUT]
| -------------------------------------------------------
| GMS: address is 127.0.0.1:2281
| -------------------------------------------------------
| 22:13:40,072 INFO [DefaultClusteredPostOffice] ClusteredPostOffice[1:Clustered JMS:127.0.0.1:2281] got new view: [127.0.0.1:2281|0] [127.0.0.1:2281]
| 22:13:40,087 INFO [STDOUT]
| -------------------------------------------------------
| GMS: address is 127.0.0.1:2284
| -------------------------------------------------------
| 22:13:42,113 INFO [DefaultPostOffice] PostOffice Clustered JMS nodeId=1 condition=queue.DLQ queueName=DLQ channelId=0 selector=null
| 22:13:42,128 INFO [DefaultPostOffice] PostOffice Clustered JMS nodeId=1 condition=queue.testQueue queueName=testQueue channelId=1 selector=null
| 22:13:42,128 INFO [DefaultPostOffice] PostOffice Clustered JMS nodeId=1 condition=queue.A queueName=A channelId=2 selector=null
| 22:13:42,128 INFO [DefaultPostOffice] PostOffice Clustered JMS nodeId=1 condition=queue.B queueName=B channelId=3 selector=null
| 22:13:42,128 INFO [DefaultPostOffice] PostOffice Clustered JMS nodeId=1 condition=queue.C queueName=C channelId=4 selector=null
| 22:13:42,128 INFO [DefaultPostOffice] PostOffice Clustered JMS nodeId=1 condition=queue.D queueName=D channelId=5 selector=null
| 22:13:42,144 INFO [DefaultPostOffice] PostOffice Clustered JMS nodeId=1 condition=queue.ex queueName=ex channelId=6 selector=null
| 22:13:42,144 INFO [DefaultPostOffice] PostOffice Clustered JMS nodeId=1 condition=queue.testDistributedQueue queueName=testDistributedQueue channelId=7 selec
| tor=null
| 22:13:42,577 INFO [ConnectionFactory] Connector socket://15.2.119.192:4457 has leasing enabled, lease period 10000 milliseconds
| 22:13:42,577 INFO [ConnectionFactory] [/ConnectionFactory, /XAConnectionFactory, java:/ConnectionFactory, java:/XAConnectionFactory] deployed
| 22:13:42,592 INFO [PagingChannelSupport] Channel 0 loading 0 references
| 22:13:42,592 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 22:13:42,592 INFO [TopicService] Topic[/topic/testTopic] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 22:13:42,592 INFO [TopicService] Topic[/topic/securedTopic] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 22:13:42,592 INFO [TopicService] Topic[/topic/testDurableTopic] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 22:13:42,607 INFO [PagingChannelSupport] Channel 1 loading 0 references
| 22:13:42,607 INFO [QueueService] Queue[/queue/testQueue] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 22:13:42,607 INFO [PagingChannelSupport] Channel 2 loading 0 references
| 22:13:42,607 INFO [QueueService] Queue[/queue/A] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 22:13:42,623 INFO [PagingChannelSupport] Channel 3 loading 0 references
| 22:13:42,623 INFO [QueueService] Queue[/queue/B] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 22:13:42,623 INFO [PagingChannelSupport] Channel 4 loading 0 references
| 22:13:42,638 INFO [QueueService] Queue[/queue/C] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 22:13:42,638 INFO [PagingChannelSupport] Channel 5 loading 0 references
| 22:13:42,638 INFO [QueueService] Queue[/queue/D] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 22:13:42,638 INFO [PagingChannelSupport] Channel 6 loading 0 references
| 22:13:42,654 INFO [QueueService] Queue[/queue/ex] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 22:13:42,654 INFO [PagingChannelSupport] Channel 7 loading 0 references
| 22:13:42,654 INFO [QueueService] Queue[/queue/testDistributedQueue] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 22:13:42,654 INFO [TopicService] Topic[/topic/testDistributedTopic] started, fullSize=75000, pageSize=2000, downCacheSize=2000
but the EJB3Timerservice fails (I selected clustered EJB3 when installing jboss):
22:13:42,731 WARN [ServiceController] Problem starting service jboss.ejb:service=EJBTimerService,persistencePolicy=database
| java.lang.IllegalStateException: Cannot find datasource meta data: jboss.jdbc:datasource=DefaultDS,service=metadata
I will try and figure out tomorrow what to hack where :-)
The way I got here was using the clustered mysql config file as starting point, installed mysql and successfully ran it up against that DB, then I went back and 'fixed' the sql so it would work with oracle.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999327#3999327
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999327
19 years, 3 months
[JBoss jBPM] - Re: invoke called, but our invoker is disconnected
by alex.guizar@jboss.com
The cause of the problem is your remote Axis-based service returning a SOAP envelope that does not adhere to BP 1.1. The developerWorks article you referenced confirms this.
In the thread you mention, I confirmed that the part accessors should have a namespace associated with them. I said that because a sample SOAP envelope in WSDL 1.1 implied it:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
| <soapenv:Body>
| <m:GetLastTradePriceResponse xmlns:m="Some-URI">
| <m:price>34.5</m:price>
| </m:GetLastTradePriceResponse>
| </soapenv:Body>
| </soapenv:Envelope>
Notice the part accessor m:price is bound to a namespace.
While fixing the problem, I found BP 1.1 specifies that part accessors have no namespace associated with them. This must be why SOAP stacks that predate BP 1.1 (such as Axis 1.x) write part accessors bound to a namespace.
I see two solutions:
update the remote SOAP stack so that it produces BP-1.1 envelopes
allow jBPM BPEL to read pre-BP-1.1 envelopes
Please file a feature request in JIRA if the former is definitely not possible.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999326#3999326
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999326
19 years, 3 months
[JBoss Seam] - seam generate-entities yields java.lang.StackOverflowError
by awhitford
Running seam generate-entities against a SQL Server schema with handful of entities yields me a failure:
| BUILD FAILED
| java.lang.StackOverflowError
| at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
| at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
| at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
| at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
| at org.apache.tools.ant.Main.runBuild(Main.java:668)
| at org.apache.tools.ant.Main.startAnt(Main.java:187)
| at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
| at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
| Caused by: java.lang.StackOverflowError
| at freemarker.ext.beans.BeansWrapper.introspectClass(BeansWrapper.java:660)
| at freemarker.ext.beans.BeanModel.<init>(BeanModel.java:134)
| at freemarker.ext.beans.StringModel.<init>(StringModel.java:90)
| at freemarker.ext.beans.StringModel$1.create(StringModel.java:75)
| at freemarker.ext.util.ModelCache.getInstance(ModelCache.java:113)
| at freemarker.ext.beans.BeansWrapper.wrap(BeansWrapper.java:393)
| at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:584)
| at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:252)
| at freemarker.ext.beans.BeanModel.get(BeanModel.java:177)
| at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
| at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
| at freemarker.core.Dot._getAsTemplateModel(Dot.java:74)
| at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
| at freemarker.core.ListLiteral.getModelList(ListLiteral.java:119)
| at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89)
| at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
| at freemarker.core.ListLiteral.getModelList(ListLiteral.java:119)
| at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89)
| at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
| at freemarker.core.Assignment.accept(Assignment.java:90)
| at freemarker.core.Environment.visit(Environment.java:196)
| ...REMOVED...
| at freemarker.core.MixedContent.accept(MixedContent.java:92)
| at freemarker.core.Environment.visit(Environment.java:196)
| at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
| at freemarker.core.Environment.visit(Environment.java:196)
| at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
| at freemarker.core.Environment.visit(Environment.java:351)
| at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
| at freemarker.core.Environment.visit(Environment.java:196)
| at freemarker.core.Environment.include(Environment.java:1375)
| at freemarker.core.Include.accept(Include.java:155)
| at freemarker.core.Environment.visit(Environment.java:196)
| at freemarker.core.MixedContent.accept(MixedContent.java:92)
| at freemarker.core.Environment.visit(Environment.java:196)
|
Any idea as to what is wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999308#3999308
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999308
19 years, 3 months