Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 62778 invoked from network); 23 Jul 2009 02:52:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jul 2009 02:52:13 -0000 Received: (qmail 37109 invoked by uid 500); 23 Jul 2009 02:53:18 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 37073 invoked by uid 500); 23 Jul 2009 02:53:18 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 37065 invoked by uid 99); 23 Jul 2009 02:53:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 02:53:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [66.196.25.214] (HELO smtp.mclaneat.com) (66.196.25.214) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 02:53:07 +0000 Received: from MATSVEC14.mclane.local ([192.168.10.33]) by MATSVEHT12.mclane.local ([192.168.10.36]) with mapi; Wed, 22 Jul 2009 21:52:45 -0500 From: Russell Collins To: "'user@geronimo.apache.org'" Date: Wed, 22 Jul 2009 21:52:44 -0500 Subject: RE: Geronimo Sleeping Thread-Topic: Geronimo Sleeping Thread-Index: AcoLLzwmbIHlXgOSQJaH07oWYFw3rQACJmfgAAIYWtA= Message-ID: <69BEFCE5AAEBCA44B1301AD2360E83C79F7D5076E5@MATSVEC14.mclane.local> References: <69BEFCE5AAEBCA44B1301AD2360E83C79F7D5076DB@MATSVEC14.mclane.local> <69BEFCE5AAEBCA44B1301AD2360E83C79F7D5076E1@MATSVEC14.mclane.local> <69BEFCE5AAEBCA44B1301AD2360E83C79F7D5076E4@MATSVEC14.mclane.local> In-Reply-To: <69BEFCE5AAEBCA44B1301AD2360E83C79F7D5076E4@MATSVEC14.mclane.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_69BEFCE5AAEBCA44B1301AD2360E83C79F7D5076E5MATSVEC14mcla_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_69BEFCE5AAEBCA44B1301AD2360E83C79F7D5076E5MATSVEC14mcla_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable One more thing that may help. Here is my setup procedure @Before public void setUp() throws Exception { try { m_context =3D new InitialContext(TestSetup.get().getServe= rProperties()); m_entity =3D (IEntityEmdsRemote) m_context.lookup("Entity= EmdsRemote"); } catch(NamingException namingException) { namingException.printStackTrace(); } } The context is in a properties file that looks like this: java.naming.factory.initial=3Dorg.apache.openejb.client.RemoteInitialContex= tFactory java.naming.provider.url=3Dejbd://172.16.55.17:4201 Once again, it does not work the first time after a deployment. After that= , it works fine. Russell Collins Sr. Software Engineer McLane Advanced Technology "Do or do not, there is no try." - Yoda From: Russell Collins [mailto:Russell.Collins@mclaneat.com] Sent: Wednesday, July 22, 2009 9:06 PM To: 'user@geronimo.apache.org' Subject: RE: Geronimo Sleeping I am running a Junit test. Example @Test public void ReturnEntityByPrimaryKeyTest() { PkEntity oPkEntity =3D new PkEntity(); oPkEntity.setId("908210"); oPkEntity.setType("CUS"); oPkEntity.setBusinessType("1"); try { Assert.assertNotNull(this.m_entity.ReturnEntity(oPkEntity= )); } catch(Exception ex) { fail(ex.toString()); } } When I run this test right after build and deploy, it errors out. It tells= me junit.framework.AssertionFailedError: at com.mds.ecommerce.base.EntityEmdsT= est.ReturnEntityByPrimaryKeyTest(EntityEmdsTest.java:73) The subsequent tests run fine. When I rerun this same test, Russell Collins Sr. Software Engineer McLane Advanced Technology "Do or do not, there is no try." - Yoda From: David Jencks [mailto:david_jencks@yahoo.com] Sent: Wednesday, July 22, 2009 7:47 PM To: user@geronimo.apache.org Subject: Re: Geronimo Sleeping More details would be good.... for instance, "does not get the ejb object" = mean you get null or an exception? I personally have never seen anything l= ike this; a sample to reproduce it would be extremely helpful. thanks david jencks On Jul 22, 2009, at 5:24 PM, Russell Collins wrote: **Update** This is most notable when I do a deployment. First, the existi= ng application is undeployed and removed and then the newly compiled applic= ation (EAR) is deployed to the application server. Russell Collins Sr. Software Engineer McLane Advanced Technology "Do or do not, there is no try." - Yoda From: Russell Collins [mailto:Russell.Collins@mclaneat.com] Sent: Wednesday, July 22, 2009 2:36 PM To: 'user@geronimo.apache.org' Subject: Geronimo Sleeping I am having a some interesting behavior with Geronimo and I wondering if th= is can be remedied. It seems that the Geronimo server is falling asleep wh= en it has been inactive for a while. I am running unit tests with Junit 4 = bringing back Remote ejb objects. During the first call, the first ejb ret= rieval does not get the ejb object. The rest of the calls are fine even wh= en re-running the first call that originally failed. It seems as though Ge= ronimo is closing a connection and then timing out while it reopens a conne= ct that has been closed (maybe this is totally false). If anyone can point= me in the right direction, I would greatly appreciate it. Russell Collins --_000_69BEFCE5AAEBCA44B1301AD2360E83C79F7D5076E5MATSVEC14mcla_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

One more thing that may help.  Here is my setup procedu= re

 

 

      @Before

      public void setUp() = throws Exception=

      {

      =       try

      =       {

      =             m_contex= t =3D new InitialC= ontext(TestSetu= p.get().= getServe= rProperties());

      =             m_entity =3D (IEntityEmdsRemote) m_context.lookup("En= tityEmdsRemote");<= span style=3D'font-size:10.0pt;font-family:"Courier New"'>

 

      =       }

      =       catch(NamingEx= ception namingException)

      =       {

      =             namingEx= ception.printSta= ckTrace();=

      =       }

      }

The context is in a properties file that looks like this:

 

java.naming.factory.initial=3Dorg.apac= he.openejb.client.RemoteInitialContextFactory

java.naming.provider.url=3Dejbd://172.16= .55.17:4201

 

Once again, it does not work the first time after a deployment.  After that, it works fine.

 

Russell Collins

Sr. Software Engineer

McLane Advanced Technology

 

"Do or do not, there is no try." - Yoda=

 

From: Russell Colli= ns [mailto:Russell.Collins@mclaneat.com]
Sent: Wednesday, July 22, 2009 9:06 PM
To: 'user@geronimo.apache.org'
Subject: RE: Geronimo Sleeping

 

I am running a Junit test.  Example

 

 

      @Test

      public void ReturnEn= tityByPrimaryKeyTest()<= span style=3D'font-size:10.0pt;font-family:"Courier New"'>

      {

      =       PkEntity oPkEntity= =3D new PkEntity= ();=

      =      

      =       oPkEntity.setId("908210");

      =       oPkEntity.setType("CUS");

      =       oPkEntity.setBusinessType("1");<= span style=3D'font-size:10.0pt;font-family:"Courier New"'>

      =      

      =       try

      =       {

      =             Assert.assertNo= tNull(this.m_entity.= ReturnEn= tity(oPkEntity= ));

      =       }

      =       catch(Exceptio= n ex)

      =       {

      =             fail(ex.toString= ());

      =       }

      }

When I run this test right after build = and deploy, it errors out.  It tells me

 

junit.framework.AssertionFailedError: a= t com.mds.ecommerce.base.EntityEmdsTest.ReturnEntityByPrimaryKeyTest(EntityEm= dsTest.java:73)

 

The subsequent tests run fine.  Wh= en I rerun this same test,

      <= /b>

 

 

Russell Collins

Sr. Software Engineer

McLane Advanced Technology

 

"Do or do not, there is no try." - Yoda=

 

From: David Jencks [mailto:david_jencks@yahoo.com]
Sent: Wednesday, July 22, 2009 7:47 PM
To: user@geronimo.apache.org
Subject: Re: Geronimo Sleeping

 

More details would be good.... for instance, "doe= s not get the ejb object" mean you get null or an exception?  I persona= lly have never seen anything like this; a sample to reproduce it would be extre= mely helpful.

 

thanks

david jencks

 

 

On Jul 22, 2009, at 5:24 PM, Russell Collins wrote:

 

**Update**  This is most notable when I do a deployment.  First, the existing application is undeployed and removed= and then the newly compiled application (EAR) is deployed to the application server.

 

 

Russell Collins

Sr. Software Engineer

McLane Advanced Technology

 

"Do or do not, there is no try." - Yoda<= o:p>

 

From:&n= bsp;Ru= ssell Collins [mailto:Russell.Col= lins@mclaneat.com] 
Sent: Wednesday, Jul= y 22, 2009 2:36 PM
To: 'user@geronimo.apache.org' Subject: Geronimo Sl= eeping
<= o:p>

 

I am having a some interesting behavior with Geronimo and I wondering if this can be remedied.  It seems that the Geronimo server = is falling asleep when it has been inactive for a while.  I am running un= it tests with Junit 4 bringing back Remote ejb objects.  During the first call, the first ejb retrieval does not get the ejb object.  The rest o= f the calls are fine even when re-running the first call that originally failed.  It seems as though Geronimo is closing a connection and then timing out while it reopens a connect that has been closed (maybe this is totally false).  If anyone can point me in the right direction, I woul= d greatly appreciate it.

 

 

Russell Collins

 

--_000_69BEFCE5AAEBCA44B1301AD2360E83C79F7D5076E5MATSVEC14mcla_--