Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 42731 invoked from network); 30 Mar 2007 01:30:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Mar 2007 01:30:58 -0000 Received: (qmail 84849 invoked by uid 500); 30 Mar 2007 01:30:56 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 84832 invoked by uid 500); 30 Mar 2007 01:30:56 -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 84811 invoked by uid 99); 30 Mar 2007 01:30:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 18:30:55 -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; Thu, 29 Mar 2007 18:30:47 -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 DDBB8100F6 for ; Fri, 30 Mar 2007 11:30:44 +1000 (EST) Message-ID: <460C679C.9020407@backstagetech.com.au> Date: Fri, 30 Mar 2007 11:27:56 +1000 From: Scott Eade User-Agent: Thunderbird 2.0b2 (Windows/20070116) MIME-Version: 1.0 To: Apache Torque Developers List Subject: Re: Torque 3.3.RC2 problem with turbine applications References: <45F63C92.8040708@backstagetech.com.au> <45F6D52F.1060200@tewisoft.de> <45F6E32C.3010900@brekke.org> <45F7A2E8.3050208@tewisoft.de> <460BD4BF.3040001@backstagetech.com.au> <460C0E33.7050103@apache.org> In-Reply-To: <460C0E33.7050103@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: > Scott Eade wrote: > >> With torque-3.3.RC2 it starts getting the NPEs immediately from BasePeer >> line 1632: >> ColumnMap[] columnMaps = dbMap.getTable(table).getColumns(); >> >> Would you have any suggestions as to what my problem might be? >> > > Yes, this made me reopen TORQUE-68. As you know, the Peer classes have > static constructors. If Tomcat unserializes session objects these are > called and try to register their MapBuilder with an (at that point) > uninitialized Torque instance. When initialized with the Avalon > container a new TorqueInstance is created and the MapBuilders need to be > rebuilt so I wrote some code to copy them from one instance to another. > > Unfortunately I checked for Torque.isInit() which in that special, above > mentioned case is not true. This is fixed in SVN by now. You can work > around the issue by either switching off the reloading of session data > in Tomcat or by calling MapInit.init() at some > point before any call to Torque but after initialization. > Or I assume by building and using a snapshot. I will give that a shot. Thanks for this info and fix - very helpful. > Do you have any more information on the ECM issue? My problem is that I > have no access to such an environment anymore. I'd try to setup one if > it still really matters... > Well I guess it may well matter to some. In my case, as long as the MapBuilders issue above is resolved, I am pushing ahead with ACSYaafiComponentService - it would definitely be a good idea to raise the profile of this class, commit it, document it, etc. I guess we could argue that this is the path forward. OTOH there may be some people that want to transition on their own time schedule, so it would be nice if the ECM issue could be resolved. I am thinking that it should be fairly easy to set up a dummy Turbine project using its META plugin and then update the Torque dependency to 3.3.RC2 to hit the problem. Scott --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org