In single datasource mode directory init commits when it shouldn't:
org.nuxeo.ecm.directory.DirectoryException: org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled. at org.nuxeo.ecm.directory.sql.SQLDirectory.<init>(SQLDirectory.java:230) at org.nuxeo.ecm.directory.sql.SQLDirectoryProxy.getDirectory(SQLDirectoryProxy.java:50) at org.nuxeo.ecm.directory.sql.SQLDirectoryTestCase.getDirectory(SQLDirectoryTestCase.java:70) at org.nuxeo.ecm.directory.sql.TestSessionsAreClosedAutomatically.fetchUserDirectory(TestSessionsAreClosedAutomatically.java:84) ... Caused by: org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled. at org.postgresql.jdbc2.AbstractJdbc2Connection.commit(AbstractJdbc2Connection.java:813) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.nuxeo.runtime.api.ConnectionHelper$ConnectionHandle.invoke(ConnectionHelper.java:233) at com.sun.proxy.$Proxy30.commit(Unknown Source) at org.nuxeo.ecm.directory.sql.SQLDirectory.<init>(SQLDirectory.java:227) ... 33 more
- depends on
-
NXP-10308 Single-datasource mode to work without XA
- Resolved