New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDBCStateRepository fails with managed DataSource #77

Closed
chkal opened this Issue Feb 21, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@chkal
Member

chkal commented Feb 21, 2014

The JDBCStateRepository will always try to commit the transaction, even managed transactions:

11:10:30,747 ERROR [org.togglz.core.repository.jdbc.JDBCStateRepository] Failed: java.sql.SQLException: You cannot commit during a managed transaction!
    at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:661) [:6.1.0.Final]
    at org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:496) [:6.1.0.Final]
    at org.togglz.core.repository.jdbc.JDBCStateRepository.setFeatureState(JDBCStateRepository.java:253) [:]
    at org.togglz.core.manager.DefaultFeatureManager.setFeatureState(DefaultFeatureManager.java:112) [:]
    at org.togglz.core.manager.LazyResolvingFeatureManager.setFeatureState(LazyResolvingFeatureManager.java:56) [:]
    at org.togglz.console.handlers.edit.EditPageHandler.process(EditPageHandler.java:74) [:]
    at org.togglz.console.TogglzConsoleServlet.service(TogglzConsoleServlet.java:62) [:]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.1.0.Final]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.1.0.Final]

@chkal chkal closed this in 960a47b Feb 24, 2014

chkal added a commit that referenced this issue Feb 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment