0 Replies Latest reply on Jan 23, 2008 2:17 PM by tads

    Could not register Synchronization

    tads Newbie

      Hi all,

      I´m using JBoss 3.2.6, Hibernate 2 and Oracle 9.2.0.4
      on Red hat Enterprise 4.
      Before, the application was working fine, but, after the server
      was migrated to a VMware in this same server, reducing memory from
      4GB to 2GB, I got an error.

      With this migration, now I´m getting the following exception:

      2008-01-21 00:00:10,411 ERROR [br.com.pamcary.j2ee.pamcard.dao.web.access.HibernateAccessDAO] Method listMessageQueues:
      net.sf.hibernate.TransactionException: Could not register Synchronization
       at net.sf.hibernate.transaction.JTATransaction.begin(JTATransaction.java:173)
       at net.sf.hibernate.transaction.JTATransactionFactory.beginTransaction(JTATransactionFactory.java:58)
       at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2227)
       at br.com.hst.database.DataSource.createQuery(DataSource.java:440)
       at br.com.pamcary.j2ee.pamcard.dao.web.access.HibernateAccessDAO.listMessageQueues(HibernateAccessDAO.java:2739)
       at br.com.pamcary.jee.pamcard.scheduler.mail.PamcardSchedulerMail.execute(PamcardSchedulerMail.java:148)
       at br.com.pamcary.jee.pamcard.scheduler.mail.PamcardSchedulerMail.perform(PamcardSchedulerMail.java:113)
       at br.com.pamcary.jee.pamcard.scheduler.PamcardScheduler.perform(PamcardScheduler.java:189)
       at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1222)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
       at $Proxy9.handleNotification(Unknown Source)
       at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104)
       at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87)
       at javax.management.timer.Timer.sendNotifications(Timer.java:442)
       at javax.management.timer.Timer.access$000(Timer.java:31)
       at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:613)
       at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164)
       at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:240)
      Caused by: javax.transaction.RollbackException: Already marked for rollback
       at org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:704)
       at net.sf.hibernate.transaction.JTATransaction.begin(JTATransaction.java:169)
       ... 20 more
      


      I´ve increased transactionTimeOut, but the error occurs again.

      I didn´t understand ´cause the server is the same, but now it´s
      into a VMWare. Could be this the problem?

      Thank U very much!!!!

      []´s