| Anonymous | Login | Signup for a new account | 11-10-2026 23:10 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0005263 | [Resin] | minor | always | 10-30-12 10:48 | 11-11-14 15:33 | ||||
| Reporter | ferg | View Status | public | ||||||
| Assigned To | ferg | ||||||||
| Priority | normal | Resolution | unable to reproduce | ||||||
| Status | closed | Product Version | |||||||
| Summary | 0005263: entity-manager closed from scheduled-task | ||||||||
| Description |
(rep by Riccardo Cohen) I'm running resin 4.0.13, on linux debian/sun jdk. I have some cron jobs launched by resin.xml configuration <scheduled-task>. They work perfectly on my macosx (they are launched every minute for testing purpose).On the production server some cron jobs work all right while others have a strange error ; java.lang.IllegalStateException: Attempting to execute an operation on a closed EntityManager. Â Â Â at org.eclipse.persistence.internal.jpa.EntityManagerImpl.verifyOpen(EntityManagerImpl.java:1563) Â Â Â at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:693) Â Â Â at realty.Globalaction.reload_orgtables(Globalaction.java:947) Â Â Â at reacron.Cleancache.CleanOrgCache(Cleancache.java:33) Â Â Â at reacron.Cleancache.run(Cleancache.java:23) Â Â Â at com.caucho.server.util.ScheduledThreadPool$TaskFuture.run(ScheduledThreadPool.java:591) Â Â Â at com.caucho.env.thread.ResinThread.runTasks(ResinThread.java:182) Â Â Â at com.caucho.env.thread.ResinThread.run(ResinThread.java:126) This is the code at Globalaction.java:947 Query qr=m_manager.createQuery("select on from OrgNetwork on"); List<OrgNetwork> lst=(List<OrgNetwork>)qr.getResultList(); <=== this line is 947 I suspect that at night time there is no particular activity on the server, but why other cron jobs work all right? m_manager is created by the resin.xml conf : Â <ejb-server data-source="realty/jdbc" create-database-schema="false"/> I wonder why it is "closed"sometimes. I even don't know how to close it. |
||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| There are no notes attached to this issue. |
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
26 total queries executed. 24 unique queries executed. |