| Subject: | Re: Getting started with Bootstrap |
|---|---|
| Date: | Thu, 06 Dec 2012 21:48:55 +0100 |
| From: | Peter Petersson <peterss...@gmail.com> |
| To: | Carlos Montemui�o <carlos.m...@gmail.com> |
Hi Peter, one quick question: are you using in-memory db or Posgresql?
El 06/12/2012 21:05, "Peter Petersson" <peterss...@gmail.com> escribi�:
I am running container:start and the TestDataMaker object at least runs createDefaultUserData but It seem like the rest of the development db test data is not injected like createAndGroupStudents ?
It seems that most (if not all) of the errors I can see originates from the following, for instance, accessing the students page the snippet tries to set a default select but cant find the (current year) value
Message: java.util.NoSuchElementException: key not found: 2012
� � � � scala.collection.MapLike$class.default(MapLike.scala:225)
� � � � scala.collection.immutable.MapLike$$anon$2.default(MapLike.scala:108)
� � � � scala.collection.MapLike$class.apply(MapLike.scala:135)
� � � � scala.collection.immutable.MapLike$$anon$2.apply(MapLike.scala:108)
� � � � scala.Option.map(Option.scala:133)
� � � � com.dbschools.mgb.snippet.Selectors.groupSelectValues(Selectors.scala:36)
� � � � com.dbschools.mgb.snippet.Selectors.<init>(Selectors.scala:32)
� � � � com.dbschools.mgb.snippet.Students.<init>(Students.scala:20)
Am I missing some initiation step? I can see a main method in TestDataMaker and the following line in build.sbt
fullRunTask(TaskKey[Unit]("load-sample-data", "Loads sample data"), Compile, "com.dbschools.mgb.TestDataMaker")
but even if i run "load-sample-data" from sbt before container:start the error persists.
best regards
� Peter Petersson
On 11/25/2012 04:13 AM, Dave Briccetti wrote:
Peter, thanks for agreeing to help us get started with Bootstrap. What�s the first step? Want to have a call to discuss, or do you want to jump in and change some files? --
--
Perhaps Dave has some data in his Postgresql that's not in scripts.
-------- Original Message --------
Subject: Re: Getting started with Bootstrap Date: Thu, 06 Dec 2012 21:48:55 +0100 From: Peter Petersson <peterss...@gmail.com> To: Carlos Montemuiño <carlos.m...@gmail.com>
The defaults as set up in default.props the h2 in memory db
best regards
Peter Petersson
On 12/06/2012 09:20 PM, Carlos Montemuiño wrote:
Hi Peter, one quick question: are you using in-memory db or Posgresql?
El 06/12/2012 21:05, "Peter Petersson" <peterss...@gmail.com> escribió:
I am running container:start and the TestDataMaker object at least runs createDefaultUserData but It seem like the rest of the development db test data is not injected like createAndGroupStudents ?
It seems that most (if not all) of the errors I can see originates from the following, for instance, accessing the students page the snippet tries to set a default select but cant find the (current year) value
Message: java.util.NoSuchElementException: key not found: 2012
scala.collection.MapLike$class.default(MapLike.scala:225)
scala.collection.immutable.MapLike$$anon$2.default(MapLike.scala:108)
scala.collection.MapLike$class.apply(MapLike.scala:135)
scala.collection.immutable.MapLike$$anon$2.apply(MapLike.scala:108)
scala.Option.map(Option.scala:133)
com.dbschools.mgb.snippet.Selectors.groupSelectValues(Selectors.scala:36)
com.dbschools.mgb.snippet.Selectors.<init>(Selectors.scala:32)
com.dbschools.mgb.snippet.Students.<init>(Students.scala:20)
Am I missing some initiation step? I can see a main method in TestDataMaker and the following line in build.sbt
fullRunTask(TaskKey[Unit]("load-sample-data", "Loads sample data"), Compile, "com.dbschools.mgb.TestDataMaker")
but even if i run "load-sample-data" from sbt before container:start the error persists.
best regards
Peter Petersson
On 11/25/2012 04:13 AM, Dave Briccetti wrote:
--Peter, thanks for agreeing to help us get started with Bootstrap. What’s the first step? Want to have a call to discuss, or do you want to jump in and change some files? --
--