[JBossMQ] - Re: Deadlock race-condition committing JBossMQ txn
by janush
Adrian, I applied the changes from JBAS-5801 because I had illegal monitor state exceptions in JBoss 4.2.3 too.
But, java.lang.IllegalMonitorStateException appears again, in another method:
| java.lang.IllegalMonitorStateException
| at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:127)
| at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1175)
| at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431)
| at org.jboss.resource.adapter.jms.JmsManagedConnection.unlock(JmsManagedConnection.java:416)
| at org.jboss.resource.adapter.jms.JmsXAResource.end(JmsXAResource.java:76)
| at org.jboss.resource.connectionmanager.xa.JcaXAResourceWrapper.end(JcaXAResourceWrapper.java:58)
| at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.endSuspendedRMs(TransactionImple.java:1529)
| at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commit(TransactionImple.java:235)
| at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:501)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:361)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| at org.jboss.ejb.Container.invoke(Container.java:960)
| at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
| at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
|
Is the only way to avoid it is to use track-connection-by-tx?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229036#4229036
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229036
16 years, 12 months
[JBoss jBPM] - Trying to catch SMTP exception, but leads to SQL exception..
by frinux
Hi,
I'm trying to catch the exception thrown when the SMTP fails. I added an exception handler to my mail node :
<exception-handler exception-class="java.lang.Exception">
| <action name="InvalidEmailAddressExceptionHandler" class="logica.actions.InvalidEmailAddressExceptionHandler"></action>
| </exception-handler>
|
Here is my action :
public class InvalidEmailAddressExceptionHandler implements ActionHandler {
|
| private static final long serialVersionUID = 1L;
|
| public void execute(ExecutionContext executionContext) {
| System.out.println("wrong email");
|
| }
|
| }
I reach this part of code, but just after this, I get an exception:
59516 [http-8080-Processor25] WARN org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks ==
| 59625 [http-8080-Processor25] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 22001
| 59625 [http-8080-Processor25] ERROR org.hibernate.util.JDBCExceptionReporter - Data truncation: Data too long for column 'EXCEPTION_' at row 1
| 06:39:44,234 ERROR WSCreerDemande:175 - error when processing creerDemande : org.jbpm.graph.def.DelegationException: could not insert: [org.jbpm.graph.log.ActionLog]
| org.jbpm.graph.def.DelegationException: could not insert: [org.jbpm.graph.log.ActionLog]
The entire exception is here:
http://pastebin.com/m3b2df339
I nearly understand that the data sent to the MySQL database leads to an overflow when logging the exception.
Allthough, the EXCEPTION_ column in jbpm_log is a VARCHAR(4000), and the exception it contains has only 2592 chars. Maybe the problem is not the size, but the text inserted? (charset?!)
How can I fix the problem? (and what is exactly the problem?)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229030#4229030
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229030
16 years, 12 months