Return-Path: Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: (qmail 66219 invoked from network); 12 Apr 2009 20:23:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Apr 2009 20:23:38 -0000 Received: (qmail 44077 invoked by uid 500); 12 Apr 2009 20:23:38 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 44008 invoked by uid 500); 12 Apr 2009 20:23:38 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 43998 invoked by uid 99); 12 Apr 2009 20:23:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Apr 2009 20:23:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Apr 2009 20:23:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D8530234C003 for ; Sun, 12 Apr 2009 13:23:14 -0700 (PDT) Message-ID: <40062510.1239567794871.JavaMail.jira@brutus> Date: Sun, 12 Apr 2009 13:23:14 -0700 (PDT) From: "Martin Papy (JIRA)" To: commits@tapestry.apache.org Subject: [jira] Commented: (TAP5-631) ApplicationInitializer not allways executed In-Reply-To: <1842279871.1239126972912.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TAP5-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698270#action_12698270 ] Martin Papy commented on TAP5-631: ---------------------------------- You are right. As soon as I comment the piece of code that calls the Spring service involved, the initializeApplication(context,initilizer) is allways called again... Here I just commented the line >>> aDaoService.initDao(); public void initializeApplication(Context context, ApplicationInitializer initializer) { for (DaoService aDaoService : _lDaoServices) { aDaoService.initDao(); } initializer.initializeApplication(context); } > ApplicationInitializer not allways executed > ------------------------------------------- > > Key: TAP5-631 > URL: https://issues.apache.org/jira/browse/TAP5-631 > Project: Tapestry 5 > Issue Type: Bug > Affects Versions: 5.1.0.0, 5.1.0.1, 5.1.0.2, 5.1.0.3 > Reporter: Martin Papy > Priority: Blocker > Attachments: Planning.zip > > > I noticed something very odd : sometimes the ApplicationInitilizer is not executed. The difference between two launches ? At first sight : none (no code changed, db is always recreated). > What I am sure of : > - ApplicationInitializer ( and my contribution ) is always created : I can see them in logs > - I don't change anything between 2 tries. Just "maven jetty:run" launched from Eclipse, then stop then launched again. > - If I execute the same app with T5.0.18 => No problem : ApplicationInitializer is always launched > - If I switch back to T5.1.0.2 => random phenomenon appears again > At this point... I am not sure it is a real bug... But I don't know were to look at. One thing is important. This behaviour occured after I added Spring/JPA (before that I was using tapestry-hibernate Module). > This are the result of two consecutive launches : > Success : > [INFO] services.PlanningModuleInitializer Create PlanningModuleInitializer > >>>>>>>>>>>>>>>> PlanningModuleInitializer.initializeApplication <<<<<<<<<<<<<<<<<<<<<<< > Hibernate: select count(*) as col_0_0_ from TBL_USER userimpl0_ limit ? > [DEBUG] impl.AbstractDaoImpl Count 'class com.makheia.planning.model.impl.UserImpl' Entities : 0 records > [INFO] impl.UserDaoImpl Initialising UserDao default datas > Hibernate: select userfuncti0_.USERFUNCTION_ID as USERFUNC1_3_3_, [............] > [DEBUG] impl.AbstractDaoImpl Persisting class com.makheia.planning.model.impl.UserImpl - Object : [User [Id=0][FullName=admin admin][Email=admin@localhost]] > [DEBUG] interceptors.TimeStampInterceptor Update [createdDate] value to Mon Apr 06 13:14:47 CEST 2009 > [DEBUG] interceptors.TimeStampInterceptor Update [updatedDate] value to Mon Apr 06 13:14:47 CEST 2009 > [DEBUG] interceptors.TimeStampInterceptor Change TimeStamp before saving [[User [Id=0][FullName=admin admin][Email=admin@localhost]]] : TS = Mon Apr 06 13:14:47 CEST 2009 > Hibernate: insert into TBL_USER (TS_CREATEDDATE, TS_LASTMODIFIEDBY, TS_UPDATEDDATE, USER_ACCOUNT_NON_EXPIRED, USER_ACCOUNT_NON_LOCKED, USER_CREDENTIALS_NON_EXPIRED, USER_EMAIL, USER_ENABLED, USER_FIRSTNAME, USER_GROUP_ID, USER_LASTNAME, USER_PASSWORD, USER_PHONENUMBER, USER_SALUTATION, userFunction, USER_USERNAME) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) > [INFO] spring.SpringModule Spring version 2.5.6 with 58 defined beans. > Failure (launched 10 sec later without changing anything) : > [INFO] services.PlanningModuleInitializer Create PlanningModuleInitializer > [INFO] spring.SpringModule Spring version 2.5.6 with 58 defined beans. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.