|
Mantis - Resin
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 5263 | minor | always | 10-30-12 10:48 | 11-11-14 15:33 | |
|
|
|||||
| Reporter: | ferg | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | |||
| Product Build: | Resolution: | unable to reproduce | |||
| Projection: | none | ||||
| ETA: | none | Fixed in 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. |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| There are no notes attached to this issue. |