File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Transaction problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Transaction problem" Watch "Transaction problem" New topic

Transaction problem

Shenaz Assu
Ranch Hand

Joined: Sep 21, 2007
Posts: 32
Could any please help me with the following exception??

javax.jms.JMSException: Could not create a session: javax.resource.ResourceException: Transaction is not active: tx
=TransactionImpl:XidImpl[FormatId=257, GlobalId=awsdev201/118096, BranchQual=, localId= at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.allocateConnection( at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.createSession( at com.alcatel.util.jms.JmsUtil.sendRequestsOnDestination(
at at sun.reflect.GeneratedMethodAccessor598.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.jboss.invocation.Invocation.performCall(
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(
at org.jboss.ejb.plugins.LogInterceptor.invoke(
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(
at org.jboss.ejb.Container.invoke(
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(
at org.jboss.jms.asf.StdServerSession.onMessage(
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3749

It's pretty clear you're trying to invoke a method that requires a transaction without declaring one. Please provide more information about this issue.

[OCA 8 Book] [Blog]
I agree. Here's the link:
subject: Transaction problem
It's not a secret anymore!