DEBUG [javax.management.timer.Timer] sendNotification() fail
munugotik1 Oct 5, 2005 12:37 PMHi all,
i am using Scheduler in JBoss and the Scheduler will be repeated until server is stopped. the Scheduler task is picking up invoices from database and writing to Quickbooks(if invoices are available to write to Quickbooks) after arround 600 repetions of Scheduler i am getting java.lang.OutOfMemoryError. the following is the stack from log file:
2005-10-01 07:45:50,518 ERROR [STDERR] java.lang.OutOfMemoryError
2005-10-01 07:45:50,709 INFO [uk.co.safesolutions.sos.qbint.util.QBSendReqUtil] B4 opening rp.closeConnection
2005-10-01 07:45:50,719 INFO [uk.co.safesolutions.sos.qbint.util.QBSendReqUtil] B4 successfully closed rp
2005-10-01 07:45:50,719 INFO [uk.co.safesolutions.sos.qbint.qb.dao.QBResponse] In QBResponse QBXML Response Status Code : 0
2005-10-01 07:45:50,719 INFO [uk.co.safesolutions.sos.qbint.qb.dao.AddInvoiceToQB] In AddInvoice qbxmlResponse : after qbxmlResponse
2005-10-01 07:45:50,719 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] in addInvoiceToQB ...statusCode is 0
2005-10-01 07:45:50,719 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] In getDAOManager,
2005-10-01 07:45:50,719 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] In constructor, exiting...
after the above error it still continued and after couple of statements it thrown error :
2005-10-01 07:45:55,705 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQuickBookScheduler ended ....looking for new Invoice
2005-10-01 07:45:55,705 DEBUG [javax.management.timer.Timer] sendNotification() failed for listener: org.jboss.mx.server.NotificationListenerProxy@b34b1
java.lang.OutOfMemoryError
2005-10-01 07:46:00,001 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQuickBookScheduler started ....looking for new Invoice
2005-10-01 07:46:00,001 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQBScheduler b4 sosDao initialize...
2005-10-01 07:46:00,001 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] In getDAOManager,
2005-10-01 07:46:00,001 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] In constructor, exiting...
2005-10-01 07:46:00,001 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] entering getNewInvoiceForQB...
2005-10-01 07:46:00,001 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] enetered in initSession
2005-10-01 07:46:00,001 DEBUG [com.digitelenetworks.common.util.JNDIUtil] getting connection from DS : SosDS...
2005-10-01 07:46:00,001 DEBUG [net.sf.hibernate.impl.SessionImpl] opened session
2005-10-01 07:46:00,061 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] the first available invoice to add QB is...: 1599-113
2005-10-01 07:46:00,061 DEBUG [net.sf.hibernate.impl.SessionImpl] search: uk.co.safesolutions.sos.dao.hibernate.Invoice
2005-10-01 07:46:00,061 DEBUG [net.sf.hibernate.impl.SessionImpl] criteria: [invoiceId=1599-113]
2005-10-01 07:46:00,061 DEBUG [net.sf.hibernate.impl.SessionImpl] flushing session
2005-10-01 07:46:00,061 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushing entities and processing referenced collections
2005-10-01 07:46:00,061 DEBUG [net.sf.hibernate.impl.SessionImpl] Processing unreferenced collections
2005-10-01 07:46:00,061 DEBUG [net.sf.hibernate.impl.SessionImpl] Scheduling collection removes/(re)creates/updates
2005-10-01 07:46:00,061 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushed: 0 insertions, 0 updates, 0 deletions to 0 objects
2005-10-01 07:46:00,061 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2005-10-01 07:46:00,061 DEBUG [net.sf.hibernate.impl.SessionImpl] Dont need to execute flush
2005-10-01 07:46:00,061 DEBUG [net.sf.hibernate.impl.BatcherImpl] about to open: 3 open PreparedStatements, 0 open ResultSets
2005-10-01 07:46:01,923 DEBUG [net.sf.hibernate.impl.SessionImpl] running Session.finalize()
2005-10-01 07:46:01,923 DEBUG [net.sf.hibernate.impl.SessionImpl] running Session.finalize()
2005-10-01 07:46:01,923 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] enetered in closedb
2005-10-01 07:46:01,923 DEBUG [net.sf.hibernate.impl.SessionImpl] closing session
2005-10-01 07:46:01,923 DEBUG [net.sf.hibernate.impl.SessionImpl] disconnecting session
2005-10-01 07:46:01,923 DEBUG [net.sf.hibernate.impl.SessionImpl] transaction completion
2005-10-01 07:46:01,923 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] closed session
2005-10-01 07:46:01,923 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] closed connection
2005-10-01 07:46:01,923 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] existing getNewInvoiceForQB...
2005-10-01 07:46:01,923 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQuickBookScheduler ended ....looking for new Invoice
2005-10-01 07:46:01,923 DEBUG [javax.management.timer.Timer] sendNotification() failed for listener: org.jboss.mx.server.NotificationListenerProxy@b34b1
java.lang.OutOfMemoryError
2005-10-01 07:46:10,004 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQuickBookScheduler started ....looking for new Invoice
2005-10-01 07:46:10,004 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQBScheduler b4 sosDao initialize...
2005-10-01 07:46:10,004 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] In getDAOManager,
2005-10-01 07:46:10,004 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] In constructor, exiting...
2005-10-01 07:46:10,004 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] entering getNewInvoiceForQB...
2005-10-01 07:46:10,004 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] enetered in initSession
2005-10-01 07:46:10,004 DEBUG [com.digitelenetworks.common.util.JNDIUtil] getting connection from DS : SosDS...
2005-10-01 07:46:10,004 DEBUG [net.sf.hibernate.impl.SessionImpl] opened session
2005-10-01 07:46:10,054 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] the first available invoice to add QB is...: 1599-113
2005-10-01 07:46:10,054 DEBUG [net.sf.hibernate.impl.SessionImpl] search: uk.co.safesolutions.sos.dao.hibernate.Invoice
2005-10-01 07:46:10,054 DEBUG [net.sf.hibernate.impl.SessionImpl] criteria: [invoiceId=1599-113]
2005-10-01 07:46:10,054 DEBUG [net.sf.hibernate.impl.SessionImpl] flushing session
2005-10-01 07:46:10,054 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushing entities and processing referenced collections
2005-10-01 07:46:10,054 DEBUG [net.sf.hibernate.impl.SessionImpl] Processing unreferenced collections
2005-10-01 07:46:10,054 DEBUG [net.sf.hibernate.impl.SessionImpl] Scheduling collection removes/(re)creates/updates
2005-10-01 07:46:10,064 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushed: 0 insertions, 0 updates, 0 deletions to 0 objects
2005-10-01 07:46:10,064 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2005-10-01 07:46:10,064 DEBUG [net.sf.hibernate.impl.SessionImpl] Dont need to execute flush
2005-10-01 07:46:10,064 DEBUG [net.sf.hibernate.impl.BatcherImpl] about to open: 4 open PreparedStatements, 0 open ResultSets
2005-10-01 07:46:12,117 DEBUG [net.sf.hibernate.impl.SessionImpl] running Session.finalize()
2005-10-01 07:46:12,117 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] enetered in closedb
2005-10-01 07:46:12,117 DEBUG [net.sf.hibernate.impl.SessionImpl] closing session
2005-10-01 07:46:12,117 DEBUG [net.sf.hibernate.impl.SessionImpl] disconnecting session
2005-10-01 07:46:12,117 DEBUG [net.sf.hibernate.impl.SessionImpl] transaction completion
2005-10-01 07:46:12,117 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] closed session
2005-10-01 07:46:12,117 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] closed connection
2005-10-01 07:46:12,117 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] existing getNewInvoiceForQB...
2005-10-01 07:46:12,117 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQuickBookScheduler ended ....looking for new Invoice
2005-10-01 07:46:12,117 DEBUG [javax.management.timer.Timer] sendNotification() failed for listener: org.jboss.mx.server.NotificationListenerProxy@b34b1
java.lang.OutOfMemoryError
2005-10-01 07:46:20,007 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQuickBookScheduler started ....looking for new Invoice
2005-10-01 07:46:20,007 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQBScheduler b4 sosDao initialize...
2005-10-01 07:46:20,007 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] In getDAOManager,
2005-10-01 07:46:20,007 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] In constructor, exiting...
2005-10-01 07:46:20,007 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] entering getNewInvoiceForQB...
2005-10-01 07:46:20,007 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] enetered in initSession
2005-10-01 07:46:20,007 DEBUG [com.digitelenetworks.common.util.JNDIUtil] getting connection from DS : SosDS...
2005-10-01 07:46:20,007 DEBUG [net.sf.hibernate.impl.SessionImpl] opened session
2005-10-01 07:46:20,057 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] the first available invoice to add QB is...: 1599-113
2005-10-01 07:46:20,057 DEBUG [net.sf.hibernate.impl.SessionImpl] search: uk.co.safesolutions.sos.dao.hibernate.Invoice
2005-10-01 07:46:20,057 DEBUG [net.sf.hibernate.impl.SessionImpl] criteria: [invoiceId=1599-113]
2005-10-01 07:46:20,057 DEBUG [net.sf.hibernate.impl.SessionImpl] flushing session
2005-10-01 07:46:20,057 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushing entities and processing referenced collections
2005-10-01 07:46:20,057 DEBUG [net.sf.hibernate.impl.SessionImpl] Processing unreferenced collections
2005-10-01 07:46:20,057 DEBUG [net.sf.hibernate.impl.SessionImpl] Scheduling collection removes/(re)creates/updates
2005-10-01 07:46:20,057 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushed: 0 insertions, 0 updates, 0 deletions to 0 objects
2005-10-01 07:46:20,057 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2005-10-01 07:46:20,057 DEBUG [net.sf.hibernate.impl.SessionImpl] Dont need to execute flush
2005-10-01 07:46:20,057 DEBUG [net.sf.hibernate.impl.BatcherImpl] about to open: 5 open PreparedStatements, 0 open ResultSets
2005-10-01 07:46:21,920 DEBUG [net.sf.hibernate.impl.SessionImpl] running Session.finalize()
2005-10-01 07:46:21,920 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] enetered in closedb
2005-10-01 07:46:21,920 DEBUG [net.sf.hibernate.impl.SessionImpl] closing session
2005-10-01 07:46:21,920 DEBUG [net.sf.hibernate.impl.SessionImpl] disconnecting session
2005-10-01 07:46:21,920 DEBUG [net.sf.hibernate.impl.SessionImpl] transaction completion
2005-10-01 07:46:21,920 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] closed session
2005-10-01 07:46:21,920 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] closed connection
2005-10-01 07:46:21,920 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] existing getNewInvoiceForQB...
2005-10-01 07:46:21,920 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQuickBookScheduler ended ....looking for new Invoice
2005-10-01 07:46:21,920 DEBUG [javax.management.timer.Timer] sendNotification() failed for listener: org.jboss.mx.server.NotificationListenerProxy@b34b1
java.lang.OutOfMemoryError
2005-10-01 07:46:30,009 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQuickBookScheduler started ....looking for new Invoice
2005-10-01 07:46:30,009 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQBScheduler b4 sosDao initialize...
2005-10-01 07:46:30,009 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] In getDAOManager,
2005-10-01 07:46:30,009 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] In constructor, exiting...
2005-10-01 07:46:30,009 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] entering getNewInvoiceForQB...
2005-10-01 07:46:30,009 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] enetered in initSession
2005-10-01 07:46:30,009 DEBUG [com.digitelenetworks.common.util.JNDIUtil] getting connection from DS : SosDS...
2005-10-01 07:46:30,009 DEBUG [net.sf.hibernate.impl.SessionImpl] opened session
2005-10-01 07:46:30,059 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] the first available invoice to add QB is...: 1599-113
2005-10-01 07:46:30,059 DEBUG [net.sf.hibernate.impl.SessionImpl] search: uk.co.safesolutions.sos.dao.hibernate.Invoice
2005-10-01 07:46:30,059 DEBUG [net.sf.hibernate.impl.SessionImpl] criteria: [invoiceId=1599-113]
2005-10-01 07:46:30,059 DEBUG [net.sf.hibernate.impl.SessionImpl] flushing session
2005-10-01 07:46:30,059 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushing entities and processing referenced collections
2005-10-01 07:46:30,059 DEBUG [net.sf.hibernate.impl.SessionImpl] Processing unreferenced collections
2005-10-01 07:46:30,059 DEBUG [net.sf.hibernate.impl.SessionImpl] Scheduling collection removes/(re)creates/updates
2005-10-01 07:46:30,059 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushed: 0 insertions, 0 updates, 0 deletions to 0 objects
2005-10-01 07:46:30,059 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2005-10-01 07:46:30,059 DEBUG [net.sf.hibernate.impl.SessionImpl] Dont need to execute flush
2005-10-01 07:46:30,059 DEBUG [net.sf.hibernate.impl.BatcherImpl] about to open: 6 open PreparedStatements, 0 open ResultSets
2005-10-01 07:46:31,921 DEBUG [net.sf.hibernate.impl.SessionImpl] running Session.finalize()
2005-10-01 07:46:31,921 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] enetered in closedb
2005-10-01 07:46:31,921 DEBUG [net.sf.hibernate.impl.SessionImpl] closing session
2005-10-01 07:46:31,921 DEBUG [net.sf.hibernate.impl.SessionImpl] disconnecting session
2005-10-01 07:46:31,921 DEBUG [net.sf.hibernate.impl.SessionImpl] transaction completion
2005-10-01 07:46:31,921 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] closed session
2005-10-01 07:46:31,921 WARN [uk.co.safesolutions.sos.dao.SosDaoManager] closed connection
2005-10-01 07:46:31,921 INFO [uk.co.safesolutions.sos.dao.SosDaoManager] existing getNewInvoiceForQB...
2005-10-01 07:46:31,921 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQuickBookScheduler ended ....looking for new Invoice
2005-10-01 07:46:31,921 DEBUG [javax.management.timer.Timer] sendNotification() failed for listener: org.jboss.mx.server.NotificationListenerProxy@b34b1
java.lang.OutOfMemoryError
2005-10-01 07:46:40,001 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQuickBookScheduler started ....looking for new Invoice
2005-10-01 07:46:40,001 INFO [uk.co.safesolutions.sos.qbint.eventListeners.SafeSyncQuickBookScheduler] SafeSyncQBScheduler b4 sosDao initialize...
2005-10-01 07:46:40,001 INFO [uk.co.safesolutions.sos.dao.SosDaoMan
Can any one throw some light if you come across these situations.
Thanks
Kotesh.