Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8344679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:26:53+00:00 2026-06-09T06:26:53+00:00

I am using JBoss 4.0.4 GA as application server and EJB 2.x for coding

  • 0

I am using JBoss 4.0.4 GA as application server and EJB 2.x for coding logic and Mysql 5.1 as backend. I recently changed the commit-option in jboss configuration to “B”, since we introduced some JDBC queries together with EJB. My EJB code inturn calls a stored procedure in MySql and I use CallableStatement to execute the stored procedure. I am using Innodb engine in MySQL for tables and jboss datasource is the simplest of configuration which uses . But when I execute the EJB method through a client I get following exception:

Caused by: org.jboss.resource.connectionmanager.JBossLocalXAException:
could not commit local tx; – nested throwable:
(org.jboss.resource.JBossResourceException: SQLException; – nested
throwable: (java.sql.SQLException: No operations allowed after
connection closed.)) at
org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.commit(TxConnectionManager.java:912)
at
org.jboss.tm.TransactionImpl$Resource.commit(TransactionImpl.java:2253)
at
org.jboss.tm.TransactionImpl.commitResources(TransactionImpl.java:1784)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:340) …
29 more

Caused by: org.jboss.resource.JBossResourceException: SQLException; –
nested throwable: (java.sql.SQLException: No operations allowed after
connection closed.) at
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkException(BaseWrapperManagedConnection.java:636)
at
org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.commit(LocalManagedConnection.java:73)
at
org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.commit(TxConnectionManager.java:905)
… 32 more

Caused by: java.sql.SQLException: No operations allowed after
connection closed. at
com.mysql.jdbc.Connection.checkClosed(Connection.java:1842) at
com.mysql.jdbc.Connection.commit(Connection.java:2154) at
org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.commit(LocalManagedConnection.java:69)
… 33 more

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T06:26:55+00:00Added an answer on June 9, 2026 at 6:26 am

    I solved the problem, it was the issue with stored procedure permissions. The data source was configured with user which don’t have rights on stored procedure. After testing with correct rights the code is working and transactions are fine. I tried executing the stored procedure with normal JDBC connection [not using datasource]. This step gave me null pointer exception by which I came to know about the access rights.

    There was one clue in the long stacktrace of exception “The null” which I did not submit with last post, but for me suggested the same above with data source connection. Thanks to anyone who tried to help. I hope this might anyone else in future, was strange error for me.

    org.jboss.tm.JBossTransactionRolledbackException: ***null***; nested exception is: 
    org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=serverip/13308, BranchQual=, localId=13308] status=STATUS_NO_TRANSACTION; - nested throwable: (org.jboss.resource.connectionmanager.JBossLocalXAException: could not commit local tx; - nested throwable: (org.jboss.resource.JBossResourceException: SQLException; - nested throwable: (java.sql.SQLException: No operations allowed after connection closed.))); - nested throwable: (org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=serverip/13308, BranchQual=, localId=13308] status=STATUS_NO_TRANSACTION; - nested throwable: (org.jboss.resource.connectionmanager.JBossLocalXAException: could not commit local tx; - nested throwable: (org.jboss.resource.JBossResourceException: SQLException; - nested throwable: (java.sql.SQLException: No operations allowed after connection closed.)))) 
    at org.jboss.ejb.plugins.TxInterceptorCMT.throwJBossException(TxInterceptorCMT.java:569) 
    at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:506) 
    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:136) 
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648) 
    at org.jboss.ejb.Container.invoke(Container.java:954) 
    at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 
    at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819) 
    at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) 
    at sun.rmi.transport.Transport$1.run(Unknown Source) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at sun.rmi.transport.Transport.serviceCall(Unknown Source) 
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) 
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to run jsf application in myeclipse using jboss web server and following
I have a Spring application deployed in JBoss EAP server, using the following settings:
I'm using: Hibernate MySQL jBoss I have to create an application that allows user
I am using JBoss AS 5 + 6 as an application server, however only
I'm trying to make Jboss Application Server 7.1.0 run as a service using the
This question came to me when developing using Eclipse. I use JBoss Application Server
I am using Log4j with Jboss EJB webservice. I am logging the application flow
I m using jboss as application server. When I deploy my application on server
Im using JBOSS Seam 2.2.1 and I am trying to work with application server
I am running a client/server application using JBoss. How can I connect to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.