Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 89007 invoked from network); 6 Dec 2009 13:58:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Dec 2009 13:58:18 -0000 Received: (qmail 32240 invoked by uid 500); 6 Dec 2009 13:58:18 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 32178 invoked by uid 500); 6 Dec 2009 13:58:17 -0000 Mailing-List: contact esme-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: esme-dev@incubator.apache.org Delivered-To: mailing list esme-dev@incubator.apache.org Received: (qmail 32168 invoked by uid 99); 6 Dec 2009 13:58:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Dec 2009 13:58:16 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hirsch.dick@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Dec 2009 13:58:13 +0000 Received: by fg-out-1718.google.com with SMTP id e12so894254fga.0 for ; Sun, 06 Dec 2009 05:57:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=OpX8QTAR+tgfumhkgnQJfx7f/SvWguqsYBmfB2YkDUc=; b=Jsq6fhGK+Lbaqlp/alJh5L+415l6xfR8GDWouIoeeRC2/1IMRILcSbgdCf9BRSgW06 wjDAU7kOZGZuOAlpqro+eX+FUEXd0xnvjKi6cWM4sa0TN9VVPINqvxoBm0Ri+A5qpkHM WpsR13797So4VpnZNhYQ1aIzQvYbMEzrWjHHs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=H8uf9E+QYzZiJKzekab5XB9mP99Vafme2esQP1oY521m0A00ZBADtLptW3Q7CZnlEo Hq/KSioNqbkl0LjJLMAFzudzkYi2z4iB408FbeLp6ODcrUdY16cZ68dN99RDUunzQcFf VB9R9VaK30WVeKi8DYOAYcktN8kvXxHyNTXBY= MIME-Version: 1.0 Received: by 10.102.168.11 with SMTP id q11mr1689415mue.135.1260107872077; Sun, 06 Dec 2009 05:57:52 -0800 (PST) In-Reply-To: <68f4a0e80912041052m732de355r473dc06a602662a6@mail.gmail.com> References: <68f4a0e80912030949r188f6b47sf540910a5b32bea6@mail.gmail.com> <68f4a0e80912040535s5f3825b5w1a6115a98f1c5182@mail.gmail.com> <68f4a0e80912040932x478f4cd2we817c580c8dd8e14@mail.gmail.com> <68f4a0e80912041052m732de355r473dc06a602662a6@mail.gmail.com> Date: Sun, 6 Dec 2009 14:57:52 +0100 Message-ID: Subject: Re: Tests failing to run with "mvn clean test" - trunk/server revision 886861 From: Richard Hirsch To: esme-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable @Ethan - I'm asuming that is the problem on Hudson. Would be great if we can solve this. Could you take a look and see if you find the maven conf=EDguration to allow in-memory usage. I looked but didn't find anything. On Fri, Dec 4, 2009 at 7:52 PM, Ethan Jewett wrote: > Would that fix the issue with Hudson as well? I'll look into that a bit. > > Ethan > > On Fri, Dec 4, 2009 at 12:18 PM, David Pollak > wrote: >> On Fri, Dec 4, 2009 at 9:32 AM, Ethan Jewett wrote: >> >>> I'm not following. >>> >>> My local repo exactly matched the trunk branch as of when my email was >>> sent. I'd deleted my entire local repo and checked out from Apache SVN >>> multiple times while trying to debug, so any local changes should be >>> fairly well killed off :-) >>> >>> It's working fine at the moment for me. >>> >>> My concern is why Dick's build & test aren't working. If he can't >>> build, none of my patches get checked in! ;-) >>> >> >> The problem is likely that the machine he's testing on doesn't grant >> filesystem write access so the DB can't be accessed. =A0I'd suggest >> configuring things for that maven machine to use the in-memory version o= f >> H2. >> >> >>> >>> Thanks, >>> Ethan >>> >>> On Fri, Dec 4, 2009 at 11:17 AM, David Pollak >>> wrote: >>> > On Fri, Dec 4, 2009 at 5:35 AM, Ethan Jewett wro= te: >>> > >>> >> I'm up to date on the latest revision and it seems to be working fin= e, >>> >> at least as far as the tests are concerned. >>> >> >>> > >>> > Ethan, >>> > >>> > You have code that is not part of the repo. =A0Please make sure you a= dd >>> > "import net.liftweb.common._" to each of the Scala files and all will= be >>> > good. >>> > >>> > Thanks, >>> > >>> > David >>> > >>> > >>> >> >>> >> Ethan >>> >> >>> >> On Thu, Dec 3, 2009 at 5:01 PM, David Pollak >>> >> wrote: >>> >> > Fixes are up in the repo >>> >> > >>> >> > On Thu, Dec 3, 2009 at 2:15 PM, David Pollak >>> >> > wrote: >>> >> > >>> >> >> Okay, >>> >> >> >>> >> >> I reproduced the issue (I guess for some reason my git svn versio= n of >>> >> ESME >>> >> >> is not up to date... sigh). >>> >> >> >>> >> >> The issue is exactly as the error indicates. =A0The particular li= ne >>> >> >> (User.scala: 64) is calling S.? outside of a request context. =A0= This >>> >> means >>> >> >> there is no way to tell what the localization string should be >>> because >>> >> there >>> >> >> is no "S state". =A0The underlying cause is that the User is bein= g >>> created >>> >> >> outside the scope of an HTTP request. =A0We need to do something = a tad >>> >> funky >>> >> >> with the initialization code. =A0I'll look into it. >>> >> >> >>> >> >> Thanks, >>> >> >> >>> >> >> David >>> >> >> >>> >> >> >>> >> >> On Thu, Dec 3, 2009 at 9:49 AM, Ethan Jewett >>> >> wrote: >>> >> >> >>> >> >>> Hi all, >>> >> >>> >>> >> >>> Currently tests are failing to run for me with a "mvn clean test= " in >>> >> >>> the trunk server on the latest revision (886861). Can someone >>> confirm? >>> >> >>> We can then identify what check-in broke the build and fix it. >>> >> >>> >>> >> >>> Failure is below, which seems to match the failure occurring in >>> Hudson. >>> >> >>> >>> >> >>> Thanks, >>> >> >>> Ethan >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> 2009-12-03 12:45:51.137:INFO::Started SocketConnector@0.0.0.0:89= 89 >>> >> >>> org.apache.maven.surefire.booter.SurefireExecutionException: nul= l; >>> >> >>> nested exception is java.lang.ExceptionInInitializerError: null >>> >> >>> java.lang.ExceptionInInitializerError >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> org.apache.esme.lib.MsgParserSpecsAsTest.(MsgParseTest.scala:45) >>> >> >>> =A0 =A0 =A0 =A0at >>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >>> >> >>> Method) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor= AccessorImpl.java:39) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon= structorAccessorImpl.java:27) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> java.lang.reflect.Constructor.newInstance(Constructor.java:513) >>> >> >>> =A0 =A0 =A0 =A0at java.lang.Class.newInstance0(Class.java:355) >>> >> >>> =A0 =A0 =A0 =A0at java.lang.Class.newInstance(Class.java:308) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> org.specs.runner.JUnitSuiteRunner.testSuite(JUnitSuiteRunner.scala:37) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> org.specs.runner.JUnitSuiteRunner.run(JUnitSuiteRunner.scala:45) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.ja= va:62) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestS= et(AbstractDirectoryTestSuite.java:140) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abst= ractDirectoryTestSuite.java:127) >>> >> >>> =A0 =A0 =A0 =A0at org.apache.maven.surefire.Surefire.run(Surefir= e.java:177) >>> >> >>> =A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke0(N= ative >>> Method) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja= va:39) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso= rImpl.java:25) >>> >> >>> =A0 =A0 =A0 =A0at java.lang.reflect.Method.invoke(Method.java:59= 7) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Sure= fireBooter.java:338) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.jav= a:997) >>> >> >>> Caused by: java.lang.IllegalStateException: Attempted to use >>> resource >>> >> >>> bundles outside of an initialized S scope. S only usable when >>> >> >>> initialized, such as during request processing. Did you call S.? >>> from >>> >> >>> Boot? >>> >> >>> =A0 =A0 =A0 =A0at net.liftweb.http.S$.resourceBundles(S.scala:61= 1) >>> >> >>> =A0 =A0 =A0 =A0at net.liftweb.http.S$.$qmark(S.scala:637) >>> >> >>> =A0 =A0 =A0 =A0at net.liftweb.http.S$.$qmark(S.scala:655) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> org.apache.esme.model.User$.org$apache$esme$model$User$$profileChanged(= User.scala:64) >>> >> >>> =A0 =A0 =A0 =A0at org.apache.esme.model.User$$anonfun$1.apply(Us= er.scala:50) >>> >> >>> =A0 =A0 =A0 =A0at org.apache.esme.model.User$$anonfun$1.apply(Us= er.scala:50) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> net.liftweb.mapper.MetaMapper$$anonfun$eachField$2.apply(MetaMapper.sca= la:1177) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> >> >>> net.liftweb.mapper.MetaMapper$$anonfun$eachField$2.apply(MetaMapper.sca= la:1177) >>> >> >>> =A0 =A0 =A0 =A0at scala.List.foreach(List.scala:841) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> net.liftweb.mapper.MetaMapper$class.eachField(MetaMapper.scala:1= 177) >>> >> >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.MetaMapper$class.net >>> >> >>> $liftweb$mapper$MetaMapper$$_afterSave(MetaMapper.scala:1190) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> net.liftweb.mapper.MetaMapper$$anonfun$15.apply(MetaMapper.scala:706) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> >>> net.liftweb.mapper.MetaMapper$$anonfun$15.apply(MetaMapper.scala:643) >>> >> >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.DB$$anonfun$use$1.apply(DB.= scala:424) >>> >> >>> =A0 =A0 =A0 =A0at net.liftweb.util.DynoVar$class.run(ThreadGloba= l.scala:91) >>> >> >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.DB$currentConn$.run(DB.scal= a:411) >>> >> >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.DB$.use(DB.scala:421) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> net.liftweb.mapper.MetaMapper$class.save(MetaMapper.scala:642) >>> >> >>> =A0 =A0 =A0 =A0at org.apache.esme.model.User$.save(User.scala:49= ) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> net.liftweb.mapper.Mapper$$anonfun$save$1.apply(Mapper.scala:88) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> net.liftweb.mapper.Mapper$$anonfun$save$1.apply(Mapper.scala:88) >>> >> >>> =A0 =A0 =A0 =A0at >>> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:67) >>> >> >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.Safe$.runSafe(Safe.scala:44= ) >>> >> >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.Mapper$class.runSafe(Mapper= .scala:54) >>> >> >>> =A0 =A0 =A0 =A0at org.apache.esme.model.User.runSafe(User.scala:= 181) >>> >> >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.Mapper$class.save(Mapper.sc= ala:87) >>> >> >>> =A0 =A0 =A0 =A0at org.apache.esme.model.User.save(User.scala:181= ) >>> >> >>> =A0 =A0 =A0 =A0at >>> org.apache.esme.JettyTestServer$.start(JettySetup.scala:65) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> >>> org.apache.esme.lib.MsgParserSpecs$.(MsgParseTest.scala:49= ) >>> >> >>> =A0 =A0 =A0 =A0at >>> >> org.apache.esme.lib.MsgParserSpecs$.(MsgParseTest.scala) >>> >> >>> =A0 =A0 =A0 =A0... 19 more >>> >> >>> [ERROR] There are test failures. >>> >> >>> >>> >> >> >>> >> >> >>> >> >> >>> >> >> -- >>> >> >> Lift, the simply functional web framework http://liftweb.net >>> >> >> Beginning Scala http://www.apress.com/book/view/1430219890 >>> >> >> Follow me: http://twitter.com/dpp >>> >> >> Surf the harmonics >>> >> >> >>> >> > >>> >> > >>> >> > >>> >> > -- >>> >> > Lift, the simply functional web framework http://liftweb.net >>> >> > Beginning Scala http://www.apress.com/book/view/1430219890 >>> >> > Follow me: http://twitter.com/dpp >>> >> > Surf the harmonics >>> >> > >>> >> >>> > >>> > >>> > >>> > -- >>> > Lift, the simply functional web framework http://liftweb.net >>> > Beginning Scala http://www.apress.com/book/view/1430219890 >>> > Follow me: http://twitter.com/dpp >>> > Surf the harmonics >>> > >>> >> >> >> >> -- >> Lift, the simply functional web framework http://liftweb.net >> Beginning Scala http://www.apress.com/book/view/1430219890 >> Follow me: http://twitter.com/dpp >> Surf the harmonics >> >