JBAS-7195: On executing readonly query, WrappedConnection.checkTransactionStatus...
When using jboss 4.2.3 with our app, we got an error of this sort (not exact):
Cannot Execute query.....Transaction status marked rollback
Caused by: jboss.util.NestedSQLException
Scenario when the above error happens:
a) User submits request from a web page
b) A jta transaction is started in a filter
c) From UI layer, transaction is propagated to service layer with "Propation Required" setting.
d) Service layer throws an exception (validation) and transaction is marked for rollback. Note that it is marked for rollback and not rolledback
e) The ui layer now prepares the view which requires some db queries to be executed. As soon as the first query is tried to be executed, the above exception is thrown.
I tried the above same steps with jboss 4.2.1 and it works fine. On further probing, found that in jboss 4.2.3, there was a change made as part of:
Branches in review
Issues Raised From Comments