Re: [Resin-interest] pb with find() in resin 4.0.13

2011-11-09 Thread Riccardo Cohen
The problem occurs only sometimes, I'll send it to you next time :)
Thanks a lot

On 08/11/11 22:48, Alex Rojkov wrote:
 Hello
 I'm using many times the find() call in EntityManager :

 Status st=m_manager.find(Status.class,identifier);

 But with no particular reason, in test or production, the find() call
 stop all processing, there is no exception and any System.out.println()
 Riccardo,

 Can you produce a thread-dump of the server's JVM please and send that to us?

 Thanks,
 Alex

 juste after is simply not called.


 While the server is in this undefined state, the rest of the
 application may work. I tried to add a createQuery call just before the
 find :

 Query qr=m_manager.createQuery(select st from Status st);
 ListStatus  list=(ListStatus)qr.getResultList();

 and the same problem happens at getRestulList(). Nothing happens, no
 exception, no further processing.

 Is there any people that had this problem ? I could see that only in one
 of my applications, not all. Is this a problem with eclispelink ?

 Thanks a lot.
 --
 Riccardo Cohen
 Architecte du Logiciel
 http://www.architectedulogiciel.fr
 BP 77536
 37075 Tours Cedex 2
 +33 (0)6.09.83.64.49
 Membre du réseau http://www.reflexe-conseil-centre.org


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



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


-- 
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
BP 77536
37075 Tours Cedex 2
+33 (0)6.09.83.64.49
Membre du réseau http://www.reflexe-conseil-centre.org


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


Re: [Resin-interest] Clustering and load-on-startup

2011-11-09 Thread Mathias Lagerwall
Hi Alex

Thanks for your reply
I remember seeing this tag in the past but I couldn't find it in the
reference page http://caucho.com/resin-4.0/reference.xtp and I also
thought it was default true for Resin 4.

But anyway it seems as it is default false now and I added it to the
configuration. This resulted in the following behavior.

1. Two nodes up, A and B. Active browser sessions (sticky sessions)
against each of them.
2. Shut down of node A results in active sessions on A is transferred to B.
3. Start of A again (with bind-ports-after-start set to true) results
in A sessions is transferred back to node A immediately at start (the
same as without the new tag).
4. But when accessing with an A session it now doesn't wait for the
servlet to start, instead I get a timeout since the port isn't bound
yet.

So it seems as the bind-ports-after-start doesn't affect the srun ports.

Best regards
Mathias Lagerwall



2011/11/8 Alex Rojkov a...@caucho.com:
 Hi
 I have a problem with clustering in Resin 4.0.23 that I hope someone
 can help me with.

 Mathias,

 Can you try adding bind-ports-after-starttrue/ to server-default?

    server-default
      bind-ports-after-starttrue/bind-ports-after-start


 Thanks,
 Alex


 When I bring a cluster node back online after it has been shut down
 the cluster recognizes it as up and functioning too soon (this can
 be monitored on the caucho-status page). My problem is that I have a
 servlet that is really heavy to start and it has load-on-startup
 set. As it is set up now requests goes to this new node trying to
 access the servlet prior too its startup and they are left waiting. I
 would like to have the cluster node off line until all the
 load-on-startup servlets has started. Is there an existing setting
 that can make this work?

 What I am looking for is something like load-balance-grace-time or
 cluster-off-line-until-load-on-startup-done :)

 Best regards
 Mathias Lagerwall


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



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



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


Re: [Resin-interest] pb with find() in resin 4.0.13

2011-11-09 Thread Riccardo Cohen

Hello again
The problem happened again, and I found an exception in another log file 
(problem with all these logs...)


java.lang.IllegalArgumentException: Unknown entity bean class: class 
reaentities.Status, please verify that this class has been marked with 
the @Entity annotation.
	at 
org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:611)


You'll find joind the full exception and the thread dump, plus the class 
itself. This object Status is marked as @Entity and work very well normally.

Thanks for your help.


On 08/11/11 22:48, Alex Rojkov wrote:

Hello
I'm using many times the find() call in EntityManager :

Status st=m_manager.find(Status.class,identifier);

But with no particular reason, in test or production, the find() call
stop all processing, there is no exception and any System.out.println()

Riccardo,

Can you produce a thread-dump of the server's JVM please and send that to us?

Thanks,
Alex


juste after is simply not called.




While the server is in this undefined state, the rest of the
application may work. I tried to add a createQuery call just before the
find :

Query qr=m_manager.createQuery(select st from Status st);
ListStatus  list=(ListStatus)qr.getResultList();

and the same problem happens at getRestulList(). Nothing happens, no
exception, no further processing.

Is there any people that had this problem ? I could see that only in one
of my applications, not all. Is this a problem with eclispelink ?

Thanks a lot.
--
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
BP 77536
37075 Tours Cedex 2
+33 (0)6.09.83.64.49
Membre du réseau http://www.reflexe-conseil-centre.org


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




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



--
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
BP 77536
37075 Tours Cedex 2
+33 (0)6.09.83.64.49
Membre du réseau http://www.reflexe-conseil-centre.org
java.lang.IllegalArgumentException: Unknown entity bean class: class 
reaentities.Status, please verify that this class has been marked with the 
@Entity annotation.
at 
org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:611)
at 
org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:495)
at 
com.caucho.env.jpa.EntityManagerJtaProxy.find(EntityManagerJtaProxy.java:226)
at realty.Globalaction.get_maintainance(Globalaction.java:759)
at realty.Flexaccountpro.loginuser(Flexaccountpro.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:302)
at 
com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:198)
at 
com.caucho.hessian.server.HessianServlet.invoke(HessianServlet.java:398)
at 
com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:378)
at 
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:109)
at 
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:183)
at 
com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:95)
at 
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:287)
at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:792)
at 
com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:675)
at 
com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:637)
at 
com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:588)
at 
com.caucho.network.listen.TcpSocketLink$AcceptTask.doTask(TcpSocketLink.java:1175)
at 
com.caucho.network.listen.TcpSocketLink$ConnectionReadTask.runThread(TcpSocketLink.java:1108)
at 
com.caucho.network.listen.TcpSocketLink$AcceptTask.run(TcpSocketLink.java:1142)
at com.caucho.env.thread.ResinThread.runTasks(ResinThread.java:182)
at com.caucho.env.thread.ResinThread.run(ResinThread.java:126)
com.caucho.transaction.RollbackExceptionWrapper: Transaction can't commit 
because it has been marked rolled back
  javax.transaction.RollbackException: Transaction marked rollback-only
at 
com.caucho.transaction.TransactionImpl.commit(TransactionImpl.java:821)
at 

Re: [Resin-interest] pb with find() in resin 4.0.13

2011-11-09 Thread Alex Rojkov
 Hello again
 The problem happened again, and I found an exception in another log file 
 (problem with all these logs...)
 
 java.lang.IllegalArgumentException: Unknown entity bean class: class 
 reaentities.Status, please verify that this class has been marked with the 
 @Entity annotation.
   at 
 org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:611)
Can you check if the web-app was reloaded before the exception? 

I recollect having seen the issue in earlier versions of Resin 4. The issue 
arouse  when webapplication or entity class was reloaded  (you can force a 
reload to check).

The issue should be fixed in later versions. The test case that reproduces the 
webapp with persistent context reload issue was created after 4.0.13.

Thanks,
Alex

 
 You'll find joind the full exception and the thread dump, plus the class 
 itself. This object Status is marked as @Entity and work very well normally.
 Thanks for your help.
 
 
 On 08/11/11 22:48, Alex Rojkov wrote:
 Hello
 I'm using many times the find() call in EntityManager :
 
 Status st=m_manager.find(Status.class,identifier);
 
 But with no particular reason, in test or production, the find() call
 stop all processing, there is no exception and any System.out.println()
 Riccardo,
 
 Can you produce a thread-dump of the server's JVM please and send that to us?
 
 Thanks,
 Alex
 
 juste after is simply not called.
 
 
 While the server is in this undefined state, the rest of the
 application may work. I tried to add a createQuery call just before the
 find :
 
 Query qr=m_manager.createQuery(select st from Status st);
 ListStatus  list=(ListStatus)qr.getResultList();
 
 and the same problem happens at getRestulList(). Nothing happens, no
 exception, no further processing.
 
 Is there any people that had this problem ? I could see that only in one
 of my applications, not all. Is this a problem with eclispelink ?
 
 Thanks a lot.
 --
 Riccardo Cohen
 Architecte du Logiciel
 http://www.architectedulogiciel.fr
 BP 77536
 37075 Tours Cedex 2
 +33 (0)6.09.83.64.49
 Membre du réseau http://www.reflexe-conseil-centre.org
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 -- 
 Riccardo Cohen
 Architecte du Logiciel
 http://www.architectedulogiciel.fr
 BP 77536
 37075 Tours Cedex 2
 +33 (0)6.09.83.64.49
 Membre du réseau http://www.reflexe-conseil-centre.org
 exception.txtthreaddump.txtStatus.java___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest



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


Re: [Resin-interest] pb with find() in resin 4.0.13

2011-11-09 Thread Riccardo Cohen
For this time it was after a reload. But on the server there was no 
reload. I'll check the new version of resin later on.
Thanks for the info.

On 09/11/11 17:21, Alex Rojkov wrote:
 Hello again
 The problem happened again, and I found an exception in another log file 
 (problem with all these logs...)

 java.lang.IllegalArgumentException: Unknown entity bean class: class 
 reaentities.Status, please verify that this class has been marked with the 
 @Entity annotation.
  at 
 org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:611)
 Can you check if the web-app was reloaded before the exception?

 I recollect having seen the issue in earlier versions of Resin 4. The issue 
 arouse  when webapplication or entity class was reloaded  (you can force a 
 reload to check).

 The issue should be fixed in later versions. The test case that reproduces 
 the webapp with persistent context reload issue was created after 4.0.13.

 Thanks,
 Alex


 You'll find joind the full exception and the thread dump, plus the class 
 itself. This object Status is marked as @Entity and work very well normally.
 Thanks for your help.


 On 08/11/11 22:48, Alex Rojkov wrote:
 Hello
 I'm using many times the find() call in EntityManager :

 Status st=m_manager.find(Status.class,identifier);

 But with no particular reason, in test or production, the find() call
 stop all processing, there is no exception and any System.out.println()
 Riccardo,

 Can you produce a thread-dump of the server's JVM please and send that to 
 us?

 Thanks,
 Alex

 juste after is simply not called.


 While the server is in this undefined state, the rest of the
 application may work. I tried to add a createQuery call just before the
 find :

 Query qr=m_manager.createQuery(select st from Status st);
 ListStatus   list=(ListStatus)qr.getResultList();

 and the same problem happens at getRestulList(). Nothing happens, no
 exception, no further processing.

 Is there any people that had this problem ? I could see that only in one
 of my applications, not all. Is this a problem with eclispelink ?

 Thanks a lot.
 --
 Riccardo Cohen
 Architecte du Logiciel
 http://www.architectedulogiciel.fr
 BP 77536
 37075 Tours Cedex 2
 +33 (0)6.09.83.64.49
 Membre du réseau http://www.reflexe-conseil-centre.org


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



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


 --
 Riccardo Cohen
 Architecte du Logiciel
 http://www.architectedulogiciel.fr
 BP 77536
 37075 Tours Cedex 2
 +33 (0)6.09.83.64.49
 Membre du réseau http://www.reflexe-conseil-centre.org
 exception.txtthreaddump.txtStatus.java___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest



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


-- 
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
BP 77536
37075 Tours Cedex 2
+33 (0)6.09.83.64.49
Membre du réseau http://www.reflexe-conseil-centre.org


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


[Resin-interest] how can i restart a single web-app

2011-11-09 Thread peng yao
Hi, My resin root directory have many web-apps,  how can i restart a single
web-app? Thanks
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest