Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 67037 invoked from network); 4 Dec 2009 13:35:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Dec 2009 13:35:44 -0000 Received: (qmail 9130 invoked by uid 500); 4 Dec 2009 13:35:44 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 9073 invoked by uid 500); 4 Dec 2009 13:35:44 -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 9063 invoked by uid 99); 4 Dec 2009 13:35:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 13:35:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of esjewett@gmail.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pw0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 13:35:33 +0000 Received: by pwj21 with SMTP id 21so2175222pwj.20 for ; Fri, 04 Dec 2009 05:35:12 -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=3nly4qA5Ujk/SAi2AehRkbOHM5jY9yy6EZ9Itn94G0w=; b=plX2a+tViLk3CFR1nzalwchxpEfDGTeVz/XapoloxqX/mgOQ2eZP0h6r+9bNFc6HYm tgQv/Nrqk+Sza9bvyYVW9asXdmm4J8zSHDgHPDFTnNrUm0l4OUKHXpFuYict3LLo1i40 R1JYaGgJEDCsMEg178sI/DA6eysJAZ7GJvvzo= 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=Wixn49RVdyn0rbttI8tfVQsqvID8nhdOlxGSfiBFpDGcBkyncTjPCyC27WiJpWGvYB dzT7pCit4+Bzt5pedMxKtAp4zg1pmtrqnQKYImCpYJWZNYByu5g03FCYtIClhkUZElyY 3Gnf0ziaJRXWidGIctHoP6jM2aDAATJGEfHvk= MIME-Version: 1.0 Received: by 10.140.202.12 with SMTP id z12mr220289rvf.112.1259933712097; Fri, 04 Dec 2009 05:35:12 -0800 (PST) In-Reply-To: References: <68f4a0e80912030949r188f6b47sf540910a5b32bea6@mail.gmail.com> Date: Fri, 4 Dec 2009 07:35:12 -0600 Message-ID: <68f4a0e80912040535s5f3825b5w1a6115a98f1c5182@mail.gmail.com> Subject: Re: Tests failing to run with "mvn clean test" - trunk/server revision 886861 From: Ethan Jewett To: esme-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I'm up to date on the latest revision and it seems to be working fine, at least as far as the tests are concerned. 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 version of ES= ME >> is not up to date... sigh). >> >> The issue is exactly as the error indicates. =A0The particular line >> (User.scala: 64) is calling S.? outside of a request context. =A0This me= ans >> there is no way to tell what the localization string should be because t= here >> is no "S state". =A0The underlying cause is that the User is being creat= ed >> outside the scope of an HTTP request. =A0We need to do something a tad f= unky >> 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:8989 >>> org.apache.maven.surefire.booter.SurefireExecutionException: null; >>> 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.newInstance= 0(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(JUnitSuiteRunne= r.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(Surefire.java:= 177) >>> =A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M= ethod) >>> =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:597) >>> =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:611) >>> =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(User.scal= a:50) >>> =A0 =A0 =A0 =A0at org.apache.esme.model.User$$anonfun$1.apply(User.scal= a: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:1177) >>> =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:4= 24) >>> =A0 =A0 =A0 =A0at net.liftweb.util.DynoVar$class.run(ThreadGlobal.scala= :91) >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.DB$currentConn$.run(DB.scala:411) >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.DB$.use(DB.scala:421) >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.MetaMapper$class.save(MetaMapper.s= cala: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(Mappe= r.scala:88) >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.Mapper$$anonfun$save$1.apply(Mappe= r.scala:88) >>> =A0 =A0 =A0 =A0at net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.sca= la: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.scala:87) >>> =A0 =A0 =A0 =A0at org.apache.esme.model.User.save(User.scala:181) >>> =A0 =A0 =A0 =A0at org.apache.esme.JettyTestServer$.start(JettySetup.sca= la:65) >>> =A0 =A0 =A0 =A0at >>> org.apache.esme.lib.MsgParserSpecs$.(MsgParseTest.scala:49) >>> =A0 =A0 =A0 =A0at org.apache.esme.lib.MsgParserSpecs$.(MsgParse= Test.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 >