Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 95434 invoked from network); 3 Dec 2009 20:00:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Dec 2009 20:00:01 -0000 Received: (qmail 19951 invoked by uid 500); 3 Dec 2009 20:00:01 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 19902 invoked by uid 500); 3 Dec 2009 20:00:01 -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 19889 invoked by uid 99); 3 Dec 2009 20:00:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2009 20:00:00 +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.222.182 as permitted sender) Received: from [209.85.222.182] (HELO mail-pz0-f182.google.com) (209.85.222.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2009 19:59:48 +0000 Received: by pzk12 with SMTP id 12so1574495pzk.13 for ; Thu, 03 Dec 2009 11:59:27 -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=O7NW0PNJeEsRltNMm75ZIKk/6lwz2e8AWjIAMbySDsY=; b=fgc8ZoAryOUWTWZ6rzXLr7id+IjqJphgYQ0+qAOa0y0tikLAi0mccE5UtTZaRSi5DO X17GI/q7sfEbSZ51UUTSvyNWRZGpEe0x+sU49RHti3UkBAVcbN9ZBtE+yBbQ5mSxKU79 3yXyW+xd/GF/HfRjHZsEfAA5yavZLp7lROvAA= 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=rG1BV+ZDV4Qc9z2ngujIiGNi1hbAMbWDPV362hJ6e8QpQTU/Nfo83tqInPzPEk5HD+ spxX7wMaOaSzcs6lRIeI+w5coUUby2zo7p03SSlP+CrCsT+WRdTILMdzywvLIYuXkIUH AK3r4zo0YOGGVHnXtE17SxLwVx9f4nuOqr8YU= MIME-Version: 1.0 Received: by 10.140.148.19 with SMTP id v19mr146726rvd.8.1259870365933; Thu, 03 Dec 2009 11:59:25 -0800 (PST) In-Reply-To: References: <68f4a0e80912030949r188f6b47sf540910a5b32bea6@mail.gmail.com> Date: Thu, 3 Dec 2009 14:59:25 -0500 Message-ID: <68f4a0e80912031159n34f30c41ic544a1ba6d3933b1@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 Ah, I see. I was looking in the wrong part of the stack trace for the error. In any case, David pointed me towards the fact that my system might be the issue. So I rebooted but I'm getting the same error: "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?" I'll try backing up to an old revision and seeing if it works any better for me. Not sure why it would work in some systems and not in others... Ethan On Thu, Dec 3, 2009 at 2:27 PM, David Pollak wrote: > I just built with an anonymous user on a machine with no Postgres or > anything else. =A0"mvn clean test install" worked like a charm. =A0Are yo= u > running another Maven command? > > On Thu, Dec 3, 2009 at 11:21 AM, Richard Hirsch wr= ote: > >> Sorry. I just checked the last Hudosn build ( =A0) and the exception is >> different. It is the one we've had for a while. >> >> 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.newInstance0= (Native >> Method) >> =A0 =A0 =A0 =A0at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA= ccessorImpl.java:39) >> =A0 =A0 =A0 =A0at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons= tructorAccessorImpl.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.jav= a:62) >> =A0 =A0 =A0 =A0at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe= t(AbstractDirectoryTestSuite.java:140) >> =A0 =A0 =A0 =A0at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstr= actDirectoryTestSuite.java:127) >> =A0 =A0 =A0 =A0at org.apache.maven.surefire.Surefire.run(Surefire.java:1= 77) >> =A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Me= thod) >> =A0 =A0 =A0 =A0at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:39) >> =A0 =A0 =A0 =A0at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.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(Suref= ireBooter.java:338) >> =A0 =A0 =A0 =A0at >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java= :997) >> Caused by: java.lang.NullPointerException: Looking for Connection >> Identifier ConnectionIdentifier(lift) but failed to find either a JNDI >> data source with the name lift or a lift connection manager with the >> correct name >> =A0 =A0 =A0 =A0at >> net.liftweb.mapper.DB$$anonfun$3$$anonfun$apply$8.apply(DB.scala:102) >> >> Still Ethan is correct in saying that this other exception occures in >> the build process. One reason may the use of S.? in the =A0User.scala >> file. This was a change that I recently made. >> >> =A0 =A0 at >> org.apache.esme.model.User$.org$apache$esme$model$User$$profileChanged(U= ser.scala:64) >> >> D. >> >> On Thu, Dec 3, 2009 at 7:52 PM, Richard Hirsch >> wrote: >> > I had the same problem yesterday. Don't know where it came from - >> > since I didn't change the test files. I agree with Ethan that it is >> > the same problem in Hudson. I'd like to get it solved, because then we >> > can follow the tests in a "clean" environment that Hudson represents. >> > >> > D. >> > >> > On Thu, Dec 3, 2009 at 7:18 PM, David Pollak >> > wrote: >> >> I just pulled the latest sources and did a build. =A0All works just f= ine. >> >> >> >> Do you have something else running on port 8989? >> >> >> >> 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 confir= m? >> >>> We can then identify what check-in broke the build and fix it. >> >>> >> >>> Failure is below, which seems to match the failure occurring in Huds= on. >> >>> >> >>> 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:4= 5) >> >>> =A0 =A0 =A0 =A0at sun.reflect.NativeConstructorAccessorImpl.newInsta= nce0(Native >> >>> Method) >> >>> =A0 =A0 =A0 =A0at >> >>> >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA= ccessorImpl.java:39) >> >>> =A0 =A0 =A0 =A0at >> >>> >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons= tructorAccessorImpl.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:3= 7) >> >>> =A0 =A0 =A0 =A0at >> org.specs.runner.JUnitSuiteRunner.run(JUnitSuiteRunner.scala:45) >> >>> =A0 =A0 =A0 =A0at >> >>> >> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.jav= a:62) >> >>> =A0 =A0 =A0 =A0at >> >>> >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe= t(AbstractDirectoryTestSuite.java:140) >> >>> =A0 =A0 =A0 =A0at >> >>> >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstr= actDirectoryTestSuite.java:127) >> >>> =A0 =A0 =A0 =A0at org.apache.maven.surefire.Surefire.run(Surefire.ja= va:177) >> >>> =A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ= e Method) >> >>> =A0 =A0 =A0 =A0at >> >>> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:39) >> >>> =A0 =A0 =A0 =A0at >> >>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.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(Suref= ireBooter.java:338) >> >>> =A0 =A0 =A0 =A0at >> >>> >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java= :997) >> >>> Caused by: java.lang.IllegalStateException: Attempted to use resourc= e >> >>> bundles outside of an initialized S scope. S only usable when >> >>> initialized, such as during request processing. Did you call S.? fro= m >> >>> 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(U= ser.scala:64) >> >>> =A0 =A0 =A0 =A0at org.apache.esme.model.User$$anonfun$1.apply(User.s= cala:50) >> >>> =A0 =A0 =A0 =A0at org.apache.esme.model.User$$anonfun$1.apply(User.s= cala:50) >> >>> =A0 =A0 =A0 =A0at >> >>> >> net.liftweb.mapper.MetaMapper$$anonfun$eachField$2.apply(MetaMapper.scal= a:1177) >> >>> =A0 =A0 =A0 =A0at >> >>> >> net.liftweb.mapper.MetaMapper$$anonfun$eachField$2.apply(MetaMapper.scal= a: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.scal= a:424) >> >>> =A0 =A0 =A0 =A0at net.liftweb.util.DynoVar$class.run(ThreadGlobal.sc= ala:91) >> >>> =A0 =A0 =A0 =A0at net.liftweb.mapper.DB$currentConn$.run(DB.scala:41= 1) >> >>> =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.sca= la: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.= 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 >