Subject: ERROR: SET AUTOCOMMIT TO OFF is no longer support
Posted By: chemi Post Date: 12/28/2005 5:03:29 AM
I have the following error when I try to start a transaction with a postgres database.

java.sql.SQLException: ERROR:  SET AUTOCOMMIT TO OFF is no longer supported

My code has a wonderful behaviour until a few moments. The only thing that I made is to install JBoss. The code always works fine with Tomcat 5.0 with jdbc and spring. Althought I have installed JBoss it´s not running.

The part of code in SQLException is thrown:

      DefaultTransactionDefinition def = new DefaultTransactionDefinition();
      def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);

      PlatformTransactionManager ptm = transactionTemplate.
                                                        getTransactionManager();
      TransactionStatus status = ptm.getTransaction(def);

Please for your help anybody


Go to topic 37812

Return to index page 409
Return to index page 408
Return to index page 407
Return to index page 406
Return to index page 405
Return to index page 404
Return to index page 403
Return to index page 402
Return to index page 401
Return to index page 400