[JBoss Messaging] - Failed to replay transaction
by John Heijm
John Heijm [http://community.jboss.org/people/jheijm] created the discussion
"Failed to replay transaction"
To view the discussion, visit: http://community.jboss.org/message/594927#594927
--------------------------------------------------------------
JBoss is attempting to recover existing prepared transactions by redelivering unhandled messages and acknowledgements on the appropriate channels (from TransactionRepository#recoverPreparedTransactions javadocs). The queue that was bound to the channel id specified is no longer defined.
I have two questions:
1) How can this happen? There are three nodes in this cluster.
2) How can I remove these transactions or force them to recover? This same message keeps repeating for the same 3 ids over and over and over again).
Thanks a lot.
Here is my stack trace:
2011-03-21 11:23:47,285 WARN -> (Thread-6) [TransactionRepository] Failed to replay transaction (XID: MessagingXid (24348582 bq:45.55.52.99.102.55.49.52.57.58.99.52.53.51.58.52.100.55.54.56.55.52.98.58.51.51.48.101.57.49 fo
rmatID:131075 gtxid:49.45.45.55.52.99.102.55.49.52.57.58.99.52.53.51.58.52.100.55.54.56.55.52.98.58.51.51.48.101.57.48, LocalID: 21293346538722831) during recovery.
java.lang.IllegalStateException: Cannot find binding for channel id 751
at org.jboss.messaging.core.impl.tx.TransactionRepository.handleAcks(TransactionRepository.java:377)
at org.jboss.messaging.core.impl.tx.Transaction.loadState(Transaction.java:357)
at org.jboss.messaging.core.impl.tx.TransactionRepository.recoverPreparedTransactions(TransactionRepository.java:149)
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.getPreparedTransactions(ServerConnectionEndpoint.java:539)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$getPreparedTransactions$aop(ConnectionAdvised.java:106)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$getPreparedTransactions_8083036720366990761.invokeNext(ConnectionAdvised$getPreparedTransactions_8083036720366990761.java)
at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$getPreparedTransactions_8083036720366990761.invokeNext(ConnectionAdvised$getPreparedTransactions_8083036720366990761.java)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.getPreparedTransactions(ConnectionAdvised.java)
at org.jboss.jms.wireformat.ConnectionGetPreparedTransactionsRequest.serverInvoke(ConnectionGetPreparedTransactionsRequest.java:67)
at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:866)
at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101)
at org.jboss.remoting.Client.invoke(Client.java:1640)
at org.jboss.remoting.Client.invoke(Client.java:554)
at org.jboss.remoting.Client.invoke(Client.java:542)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$getPreparedTransactions$aop(ClientConnectionDelegate.java:265)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$getPreparedTransactions_8083036720366990761.invokeNext(ClientConnectionDelegate$getPreparedTransactions_8083036720366990761.java)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$getPreparedTransactions_8083036720366990761.invokeNext(ClientConnectionDelegate$getPreparedTransactions_8083036720366990761.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$getPreparedTransactions_8083036720366990761.invokeNext(ClientConnectionDelegate$getPreparedTransactions_8083036720366990761.java)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.getPreparedTransactions(ClientConnectionDelegate.java)
at org.jboss.jms.tx.ResourceManager.recover(ResourceManager.java:575)
at org.jboss.jms.tx.MessagingXAResource.recover(MessagingXAResource.java:281)
at org.jboss.jms.server.recovery.MessagingXAResourceWrapper.recover(MessagingXAResourceWrapper.java:110)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecovery(XARecoveryModule.java:746)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.resourceInitiatedRecovery(XARecoveryModule.java:685)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkSecondPass(XARecoveryModule.java:179)
at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWork(PeriodicRecovery.java:237)
at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:163)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/594927#594927]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[jBPM] - Connecting Console with Guvnor
by Demian Calcaprina
Demian Calcaprina [http://community.jboss.org/people/calca] created the discussion
"Connecting Console with Guvnor"
To view the discussion, visit: http://community.jboss.org/message/611043#611043
--------------------------------------------------------------
Hi All,
I am trying to connect Guvnor with the jbpm console. It is almost working, but now I am facing one problem.
I have my processes, rules and process images in a package "org.test..".
When go to the process part of the console, I can see the deployed processes and create instances. However, I cannot see the process image (it says there is no image).
Checking the logs I find that, first, the definitions point to the right package:
INFO 20-06 13:18:14,021 (NilAuthenticator.java:authenticate:35) All users are guests.INFO 20-06 13:18:14,021 (RepositoryServlet.java:allowUser:114) admin authenticated for rest apiINFO 20-06 13:18:14,022 (PackageDeploymentServlet.java:execute:141) PackageName: org.testINFO 20-06 13:18:14,022 (PackageDeploymentServlet.java:execute:142) PackageVersion: LATESTINFO 20-06 13:18:14,022 (PackageDeploymentServlet.java:execute:143) PackageIsLatest: trueINFO 20-06 13:18:14,022 (PackageDeploymentServlet.java:execute:144) PackageIsSource: false[2011-06-20 13:18:14,300:debug] KnowledgeAgent obtaining pkg resource=[UrlResource path=' http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/org.... http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/org....']
http://community.jboss.org/message/611043#611043#611043/2011-06-20 13:18:14,300:debug Connecting Console with Guvnor KnowledgeAgent mapping resource=[UrlResource path=' http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/org.... http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/org....'] to KnowledgeDefinition=[Rule name=Exceeds, agendaGroup=MAIN, salience=0, no-loop=false]
However, the log continues and I can see many exceptions like this:
java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defa... http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defa...
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
at java.net.URL.openStream(URL.java:1010)
at org.jbpm.integration.console.graph.GraphViewerPluginImpl.getDiagramURL(GraphViewerPluginImpl.java:255)
If I check the following code:
org.jbpm.integration.console.graph.GraphViewerPluginImpl:
public URL getDiagramURL(String id) {
...
sb.append(" http:// http://");
sb.append(properties.get("jbpm.console.server.host"));
sb.append(":").append(new Integer(properties.getProperty("jbpm.console.server.port")));
* sb.append("/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST/");*
sb.append(URLEncoder.encode(id, "UTF-8"));
sb.append("-image.png");
}
It there a way to indicate the console to use not the default packages for png and also drl (AbstractFormDispatcher has the same logic)
Thanks
Demian
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/611043#611043]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[JBoss Tools] - 64 bit xulrunner - has anyone got one, or detailed steps to build one?
by Steve Kohler
Steve Kohler [http://community.jboss.org/people/sck] created the discussion
"64 bit xulrunner - has anyone got one, or detailed steps to build one?"
To view the discussion, visit: http://community.jboss.org/message/560316#560316
--------------------------------------------------------------
Hi All,
Has anyone got a resolution to the xulrunner (JBoss tools) problem for 64 bit windows? I found the following how to:
"Q: How do I build the 64-bit version of SWT GTK?
A: Follow these steps to extract the 64-bit SWT GTK source code from CVS and produce your own build:
0.1. Start Eclipse and retrieve the org.eclipse.swt, org.eclipse.swt.gtk.linux.x86_64 and org.eclipse.swt.tools projects from dev.eclipse.org (see How to use SWT from CVS, use .classpath_gtk as the .classpath file in the org.eclipse.swt project).
0.2. Convert SWT's Java and C code from its 32-bit form to 64-bit: * To convert the Java code in-place, go to the build.xml ant script in the org.eclipse.swt.gtk.linux.x86_64 project and run its "replace.32.to.64" target. Once this target has completed you must refresh (F5) the org.eclipse.swt project in order to pick up the changes. * To convert and build the C code, run the "buildNatives" target in the same build.xml file. Refresh (F5) the org.eclipse.swt.gtk.linux.x86_64 project when this target has completed, to pick up the new libraries.
0.3. You're done! The org.eclipse.swt.gtk.linux.x86_64 project will now contain the 64-bit native libraries, and if you're interested, the 64-bit source code will now be available in the org.eclipse.swt.gtk.linux.x86_64/src folder."
It sounds easy, but I've had the following problems:
1. Can't get to the CVS repository from eclipse. (I've tried the dev.eclipse.org site with /cvsroot/eclipse anonymous and a set of newer parameters listed on the eclipse website.) This may be a firewall problem but I'm not sure.
2. Attempted to use the SWT .zip file downloaded from eclipse and unzipped as the basis for a project to follow above steps after creating project, but can't seem to get that to do what it's suppose to either. I have fooled around with the build.xml, tweaking and running the targets individually, but no success yet and can't help wondering if it's really supposed to be this complicated, or if I'm missing something that I'm just not seeing. Also, when I extracted the inner src.zip file (to the same level as the zip file itself for lack of any instructions), there were numerous "ActionErrors cannot be resolved to a type" messages after I refreshed the project.
Has anyone actually created a 64 bit xulrunner that can be used by the JBoss tool plugins? If so can you point me to the instructions and/or an actual working example or steps that will really work?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/560316#560316]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[jBPM] - HTTP Status 404 - /jbpm-console/
by Sameer Kumar
Sameer Kumar [http://community.jboss.org/people/sameer82] created the discussion
"HTTP Status 404 - /jbpm-console/"
To view the discussion, visit: http://community.jboss.org/message/609697#609697
--------------------------------------------------------------
Hi,
I have downloaded https://hudson.jboss.org/jenkins/job/jBPM5/lastSuccessfulBuild/artifact/j... jbpm-5.1-SNAPSHOT-installer.zip from the following path " https://hudson.jboss.org/jenkins/job/jBPM5/lastSuccessfulBuild/artifact/j... https://hudson.jboss.org/jenkins/job/jBPM5/lastSuccessfulBuild/artifact/j...".
Then continued with installation and starting the services successfully using
ant install.demo and ant start.demo.
The following sample project is throwing 404 error:
" http://localhost:8080/jbpm-console http://localhost:8080/jbpm-console".
While building I am getting the following error:
[unchecked] unchecked cast
[javac] found : java.lang.Object
[javac] required: java.util.Map<java.lang.String,org.jbpm.task.User>
[javac] Map<String, User> users = ( Map<String, User> ) eval( reader, vars );
[javac] ^
[javac] /home/mantis/jbpm5/task-service/src/org/jbpm/DemoTaskService.java:54: warning: [unchecked] unchecked cast
[javac] found : java.lang.Object
[javac] required: java.util.Map<java.lang.String,org.jbpm.task.Group>
[javac] Map<String, Group> groups = ( Map<String, Group> ) eval( reader, vars );
Please suggest how to proceed.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/609697#609697]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[Performance Tuning] - Failover performance
by Ron K
Ron K [http://community.jboss.org/people/ronsen] created the discussion
"Failover performance"
To view the discussion, visit: http://community.jboss.org/message/612069#612069
--------------------------------------------------------------
Since the ability (ejb) to failover relies on the client side(if im not mistaken), the failover on a node crashing shouldnt be measurable or?
The client downloads the dp-object and handles it itsself, so will there be a measurable "delay" if a servercrash occurs and it fails over to another node?
My test was to deploy an ejb on 3 nodes and send counting numbers to the cluster. Whenever a node receives a number, it writes the receivment to the database whereas the database adds a timestamp, so that the times wont change according to the server clocks.
So, whenever a failover occurs, there should be a measureable delay between No. X and Y, just in case it causes some.
The result was, that theres (with nanosecs) actually none...
Did I understand anything wrong or does a measureable delay only occurs if theres anything has to be restored from replicated data?
Thanks in advance,
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612069#612069]
Start a new discussion in Performance Tuning at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months