Hello
I'm testing 4.0.37 on a real app (on macosx 10.8.5) and I have a 
frequent error that cannot be reproduced in small sample.

Scenario :
  - when I open the home page, that contains many sql and entity manager 
requests, I have no error
  - then I try to login, this starts an ajax call with :
    * entitymanager.find(Status.class,"maintainanceflag"); => ok
    * entitymanager.createQuery("select mb from Memberpro mb"); => ok
    * List<Memberpro> list=(List<Memberpro>)hqr.getResultList();
      => generates the error (see below stacktrace).

I have nowhere closed the Entity Manager, I don't know how to do that ! 
If I go step by step in java code thanks to intellij debugger, the error 
does not appear.

I used to have this error sometimes on night processes with 4.0.13, but 
now it is all the time and in http requests. I cannot find information 
on resin 4 documentation, and nothing on google. The only tutorial I 
found was about resin 3 with amber :)

The entity manager is declared this way in java :

   @Inject public EntityManager m_entitymanager;

and in resin.xml :

         <ejb-server data-source="realty/jdbc" 
create-database-schema="false"/>


Can someone explain what's probably wrong ?
Thanks a lot.




ERR[13-09-30 17:43:39.739] {resin-port-8000-45} 
java.lang.IllegalStateException: Attempting to execute an operation on a 
closed EntityManager.
ERR[13-09-30 17:43:39.739] {resin-port-8000-45}         at 
org.eclipse.persistence.internal.jpa.EntityManagerImpl.verifyOpen(EntityManagerImpl.java:1704)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
org.eclipse.persistence.internal.jpa.QueryImpl.getResultList(QueryImpl.java:390)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
rearequesthandler.JsPro.ProLogin(JsPro.java:340)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
rearequesthandler.JsPro.Service(JsPro.java:48)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
realty.UrlRouter.service(UrlRouter.java:78)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:97)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:109)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.filters.GzipFilter.doFilter(GzipFilter.java:149)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.server.httpcache.ProxyCacheFilterChain.doFilter(ProxyCacheFilterChain.java:170)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:156)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:95)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:289)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:838)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:1346)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:1302)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:1286)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:1194)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.network.listen.TcpSocketLink.handleAcceptTaskImpl(TcpSocketLink.java:993)
ERR[13-09-30 17:43:39.740] {resin-port-8000-45}         at 
com.caucho.network.listen.ConnectionTask.runThread(ConnectionTask.java:117)
ERR[13-09-30 17:43:39.741] {resin-port-8000-45}         at 
com.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:93)
ERR[13-09-30 17:43:39.741] {resin-port-8000-45}         at 
com.caucho.network.listen.SocketLinkThreadLauncher.handleTasks(SocketLinkThreadLauncher.java:169)
ERR[13-09-30 17:43:39.741] {resin-port-8000-45}         at 
com.caucho.network.listen.TcpSocketAcceptThread.run(TcpSocketAcceptThread.java:61)
ERR[13-09-30 17:43:39.741] {resin-port-8000-45}         at 
com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
ERR[13-09-30 17:43:39.741] {resin-port-8000-45}         at 
com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)


-- 
Riccardo Cohen
+33 (0)6 09 83 64 49
Société Realty-Property.com
16 rue de Belle Isle
37100 Tours
France

<http://www.appartement-maison.fr>

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to