Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 73918 invoked from network); 17 Apr 2007 05:55:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2007 05:55:59 -0000 Received: (qmail 20200 invoked by uid 500); 17 Apr 2007 05:56:05 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 20163 invoked by uid 500); 17 Apr 2007 05:56:04 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 20151 invoked by uid 99); 17 Apr 2007 05:56:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2007 22:56:04 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [203.202.1.123] (HELO barge.anchor.net.au) (203.202.1.123) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2007 22:55:57 -0700 Received: from [127.0.0.1] (dsl-58-6-32-215.nsw.westnet.com.au [58.6.32.215]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by barge.anchor.net.au (Postfix) with ESMTP id B2F2B10101 for ; Tue, 17 Apr 2007 15:56:15 +1000 (EST) Message-ID: <4624605E.6090707@backstagetech.com.au> Date: Tue, 17 Apr 2007 15:51:26 +1000 From: Scott Eade User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Apache Torque Developers List Subject: ECM Issue (Was: Re: [jira] Resolved: (TORQUE-68) DatabaseMap remains empty if Torque is stopped and restarted, causes NPEs) References: <30454439.1176553816702.JavaMail.jira@brutus> <20070415015229.L70611@minotaur.apache.org> <46224F40.6020909@apache.org> In-Reply-To: <46224F40.6020909@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thomas Vandahl wrote: > Thomas Fischer wrote: > >> Sorry for not knowing what I'm talking about, but does this also fix the >> Turbine problem ? >> > > No it doesn't. I tried to set up the original environment to reproduce > the failure but everything works for me. Scott promised to provide me > with more information from his setup RSN. However I don't think the two > problems are directly related. > I have reconstructed my environment today and with 3.3.RC2 it is certainly still running into the problem whereby TorqueComponent is decommissioned by avalon immediately following initialization thus: 2007-04-17 15:09:06,796 INFO [main ] services.BaseServiceBroker - Start Initializing service (early): AvalonComponentService 2007-04-17 15:09:06,828 DEBUG [main ] avaloncomponent.TurbineAvalonComponentService - Config File: S:\eclipse-workspace\cmes-dev\src\main\webapp\WEB-INF\conf\componentConfiguration.xml 2007-04-17 15:09:06,828 DEBUG [main ] avaloncomponent.TurbineAvalonComponentService - Role File: S:\eclipse-workspace\cmes-dev\src\main\webapp\WEB-INF\conf\roleConfiguration.xml 2007-04-17 15:09:06,890 DEBUG [main ] avalon - added Role org.apache.torque.avalon.Torque with shorthand torque for org.apache.torque.avalon.TorqueComponent 2007-04-17 15:09:06,921 DEBUG [main ] avaloncomponent.TurbineAvalonComponentService - Application Root is S:\eclipse-workspace\cmes-dev\src\main\webapp 2007-04-17 15:09:06,921 DEBUG [main ] avalon - looking up shorthand torque, returning org.apache.torque.avalon.Torque 2007-04-17 15:09:06,921 DEBUG [main ] avalon - Adding component (org.apache.torque.avalon.Torque = org.apache.torque.avalon.TorqueComponent) 2007-04-17 15:09:06,937 DEBUG [main ] avalon - Attempting to get Handler for role [org.apache.torque.avalon.Torque] 2007-04-17 15:09:06,953 DEBUG [main ] avalon - Handler type = org.apache.avalon.excalibur.component.DefaultComponentHandler 2007-04-17 15:09:07,000 DEBUG [main ] avalon - ComponentHandler initialized for: org.apache.torque.avalon.TorqueComponent 2007-04-17 15:09:07,015 DEBUG [main ] avalon - ComponentFactory creating new instance of org.apache.torque.avalon.TorqueComponent. 2007-04-17 15:09:07,015 DEBUG [main ] avalon - no logger attribute available, using standard logger 2007-04-17 15:09:07,015 DEBUG [main ] avalon - configure(torque:::@file:/S:/eclipse-workspace/cmes-dev/src/main/webapp/WEB-INF/conf/componentConfiguration.xml:9:10) 2007-04-17 15:09:07,015 DEBUG [main ] avalon - Config File is S:\eclipse-workspace\cmes-dev\src\main\webapp\WEB-INF/conf/Torque.properties 2007-04-17 15:09:07,015 DEBUG [main ] avalon - initialize() 2007-04-17 15:09:07,015 DEBUG [main ] torque.TorqueInstance -ad52 2007-04-17 15:09:07,015 DEBUG [main ] torque.TorqueInstance - init(org.apache.commons.configur init(S:\eclipse-workspace\cmes-dev\src\main\webapp\WEB-INF/conf/Torque.properties) 2007-04-17 15:09:07,015 DEBUG [main ] torque.TorqueInstance - Config Object is org.apache.commons.configuration.PropertiesConfiguration@1c8ation.PropertiesConfiguration@1c8ad52) 2007-04-17 15:09:07,015 DEBUG [main ] torque.TorqueInstance - setConfiguration(org.apache.commons.configuration.PropertiesConfiguration@1c8ad52) 2007-04-17 15:09:07,015 DEBUG [main ] torque.TorqueInstance - initialize() 2007-04-17 15:09:07,031 DEBUG [main ] torque.TorqueInstance - setConfiguration(org.apache.commons.configuration.SubsetConfiguration@128453c) 2007-04-17 15:09:07,031 DEBUG [main ] torque.TorqueInstance - initAdapters(org.apache.commons.configuration.SubsetConfiguration@128453c) 2007-04-17 15:09:07,078 DEBUG [main ] torque.TorqueInstance - Adding postgresql -> ppdb as Adapter 2007-04-17 15:09:07,093 DEBUG [main ] torque.TorqueInstance - initDataSourceFactories(org.apache.commons.configuration.SubsetConfiguration@128453c) 2007-04-17 15:09:07,093 DEBUG [main ] torque.TorqueInstance - handle: ppdb DataSourceFactory: org.apache.torque.dsfactory.SharedPoolDataSourceFactory 2007-04-17 15:09:07,109 DEBUG [main ] torque.TorqueInstance - getConfiguration() = org.apache.commons.configuration.SubsetConfiguration@128453c 2007-04-17 15:09:07,109 DEBUG [main ] dsfactory.AbstractDataSourceFactory - Starting initCPDS 2007-04-17 15:09:07,125 DEBUG [main ] torque.TorqueInstance - getConfiguration() = org.apache.commons.configuration.SubsetConfiguration@128453c 2007-04-17 15:09:07,125 DEBUG [main ] dsfactory.AbstractDataSourceFactory - applyConfiguration(org.apache.commons.configuration.SubsetConfiguration@904f75, org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@5098f9) 2007-04-17 15:09:07,125 DEBUG [main ] dsfactory.AbstractDataSourceFactory - applyConfiguration(org.apache.commons.configuration.SubsetConfiguration@b1bed2, org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@5098f9) 2007-04-17 15:09:07,250 DEBUG [main ] dsfactory.AbstractDataSourceFactory - setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@5098f9, driver, org.postgresql.Driver) 2007-04-17 15:09:07,250 DEBUG [main ] dsfactory.AbstractDataSourceFactory - setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@5098f9, url, jdbc:postgresql://127.0.0.1:5432/cmesdev) 2007-04-17 15:09:07,250 DEBUG [main ] dsfactory.AbstractDataSourceFactory - setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@5098f9, user, torque) 2007-04-17 15:09:07,250 DEBUG [main ] dsfactory.AbstractDataSourceFactory - setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@5098f9, password, (value not logged)) 2007-04-17 15:09:07,250 DEBUG [main ] dsfactory.SharedPoolDataSourceFactory - Starting initJdbc2Pool 2007-04-17 15:09:07,265 DEBUG [main ] torque.TorqueInstance - getConfiguration() = org.apache.commons.configuration.SubsetConfiguration@128453c 2007-04-17 15:09:07,265 DEBUG [main ] dsfactory.AbstractDataSourceFactory - applyConfiguration(org.apache.commons.configuration.SubsetConfiguration@cf17c3, org.apache.commons.dbcp.datasources.SharedPoolDataSource@2130c2) 2007-04-17 15:09:07,265 DEBUG [main ] dsfactory.AbstractDataSourceFactory - applyConfiguration(org.apache.commons.configuration.SubsetConfiguration@c9f93f, org.apache.commons.dbcp.datasources.SharedPoolDataSource@2130c2) 2007-04-17 15:09:07,281 DEBUG [main ] dsfactory.AbstractDataSourceFactory - setSimpleProperty(org.apache.commons.dbcp.datasources.SharedPoolDataSource@2130c2, maxActive, 10) 2007-04-17 15:09:07,281 DEBUG [main ] dsfactory.AbstractDataSourceFactory - setSimpleProperty(org.apache.commons.dbcp.datasources.SharedPoolDataSource@2130c2, testOnBorrow, true) 2007-04-17 15:09:07,281 DEBUG [main ] dsfactory.AbstractDataSourceFactory - setSimpleProperty(org.apache.commons.dbcp.datasources.SharedPoolDataSource@2130c2, validationQuery, SELECT 1) 2007-04-17 15:09:07,281 DEBUG [main ] torque.TorqueInstance - Adding the DatasourceFactory from database ppdb onto database default 2007-04-17 15:09:07,281 INFO [main ] avaloncomponent.TurbineAvalonComponentService - Lookup for Component org.apache.torque.avalon.Torque successful 2007-04-17 15:09:07,281 DEBUG [main ] avalon - ComponentFactory decommissioning instance of org.apache.torque.avalon.TorqueComponent. 2007-04-17 15:09:07,281 DEBUG [main ] avalon - dispose() 2007-04-17 15:09:07,281 INFO [main ] services.BaseServiceBroker - Finish Initializing service (early): AvalonComponentService Relevant configuration (tell me if you need anything more): ---- pom.xml ---- org.apache.db.torque runtime 3.3-RC2 jar compile ---- TurbineResources.properties ---- services.AvalonComponentService.classname=org.apache.turbine.services.avaloncomponent.TurbineAvalonComponentService services.AvalonComponentService.componentConfiguration = WEB-INF/conf/componentConfiguration.xml services.AvalonComponentService.componentRoles = WEB-INF/conf/roleConfiguration.xml services.AvalonComponentService.lookup = org.apache.torque.avalon.Torque ---- componentConfiguration.xml ---- WEB-INF/conf/Torque.properties ---- roleConfiguration.xml ---- ---- Torque.properties ---- torque.earlyInit = true torque.database.default = ppdb torque.database.ppdb.adapter = postgresql torque.dsfactory.ppdb.factory = org.apache.torque.dsfactory.SharedPoolDataSourceFactory torque.dsfactory.ppdb.pool.maxActive = 10 torque.dsfactory.ppdb.pool.testOnBorrow = true torque.dsfactory.ppdb.pool.validationQuery = SELECT 1 torque.dsfactory.ppdb.connection.driver = org.postgresql.Driver torque.dsfactory.ppdb.connection.url = jdbc:postgresql://127.0.0.1:5432/cmesdev torque.dsfactory.ppdb.connection.user = torque torque.dsfactory.ppdb.connection.password = ******** torque.manager.useCache = true So because Torque is shutting down immediately after initialization, any attempt to retrieve data results in an exception that is ultimately caused by: org.apache.torque.TorqueException: Torque is not initialized Unfortunately I have also run into problems with the work around which was using your ACSYaafiComponentService class and Yaafi. This one is even more enigmatic than the ECM issue - I cannot even say that it relates to the mentioned configuration, all I know is that when I deployed to production the system would after some time become unresponsive (no problems are apparent in my development and staging environments and the problem is certainly not load related). I have nothing whatsoever to go on - very frustrating. Anyway, this is a totally different issue. Let me know if the above enables you to reproduce the problem I am hitting. I'll cut myself a snapshot of the runtime trunk and try again and then have a crack at isolating it with my own hellowworld. Thanks for the help and patience, Scott --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org