Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 75195 invoked from network); 16 Dec 2004 23:17:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Dec 2004 23:17:52 -0000 Received: (qmail 51251 invoked by uid 500); 16 Dec 2004 23:17:48 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 51230 invoked by uid 500); 16 Dec 2004 23:17:48 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 51214 invoked by uid 99); 16 Dec 2004 23:17:47 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of crumley@gmail.com designates 64.233.170.192 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.192) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 16 Dec 2004 15:16:02 -0800 Received: by rproxy.gmail.com with SMTP id a41so1451670rng for ; Thu, 16 Dec 2004 15:15:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=qoX6xJulJYnkyOCyxdly+nUWd2y0yRuOcqqw4s4DlOqT5i28muk7jRUANOYo/vuqcbh1nUTl+DJ6KXavXVeRZPul3gVj334JlkO8/3L2mcVazhJRaLvPa9TLUFreNibH1OudLb48hawQvV4At1oZ62z8U3jnU2e9wKjYA5MiLQU= Received: by 10.38.73.46 with SMTP id v46mr1955rna; Thu, 16 Dec 2004 15:15:42 -0800 (PST) Received: by 10.38.76.73 with HTTP; Thu, 16 Dec 2004 15:15:42 -0800 (PST) Message-ID: Date: Thu, 16 Dec 2004 17:15:42 -0600 From: Ryan Crumley Reply-To: Ryan Crumley To: Jakarta Commons Users List Subject: Re: ClassCastException with betwixt 0.6 In-Reply-To: <6106EF55-4FB1-11D9-8652-003065DC754C@blueyonder.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <9D0BE4F8-4D59-11D9-B02B-003065DC754C@blueyonder.co.uk> <8D4499BF-4E7D-11D9-8817-003065DC754C@blueyonder.co.uk> <6106EF55-4FB1-11D9-8652-003065DC754C@blueyonder.co.uk> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks a bunch for helping me out. I was able to get the example working. It seems my problem was related to classpath and not using the correct dependencies. I ran "ant get-deps" to create target/lib and copied those jars to my sandbox lib directory. After doing that the example code ran as expected. Maven looks very interesting. Up until this point I had only used ant as a build tool. Again thanks for the tips and patience. ryan On Thu, 16 Dec 2004 22:25:23 +0000, robert burrell donkin wrote: > hi ryan > > On 16 Dec 2004, at 05:19, Ryan Crumley wrote: > > > I was quite excited that the problem may have been found however I > > changed the code so that the configuration object is shared between > > the writer and reader and I am still receiving a null object back from > > the reader. The new code is listed below. > > > > The output when running the program is: > > > > out: > id="1"/> > > null > > hmmm... > > i've run the same code against CVS HEAD in eclipse and i get: > > out: > > [org.apache.commons.betwixt.PersonBean: age=24 name=ryan c] > > > > I am still at a loss why this simple example is not working. The only > > thing I can think of (unless someone sees a problem with the code I am > > using below) is that my jar versions are not correct. However I used > > the same jars that maven appears to use when running regression (which > > passes). Any ideas on where to go next? > > this seems very strange. > > i suspect that it's a problem with the classpath: an old jar getting in > or something. if you have CVS HEAD checked out then an easy way to test > this hypothesis is to add your code as a test case into src/test. > provided that it's named TestXXX then maven will automatically find it > and run it (as a unit test). (we generally use test driven development > on betwixt so this is the way that all new code starts and so it's the > way that we're most confident about the configuration). > > FYI maven builds into target. running maven should generate a > commons-betwixt-0.6.1-dev.jar in there. that's the actual library code. > the test classes are built into test-classes. > > - robert > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org