Please create a ticket with a reproduceable example at
http://github.com/dpp/liftweb/issues
It might be best to fork http://github.com/dpp/lift_1_1_sample/tree/master in
order to create a reproduceable example.

On Thu, Jul 30, 2009 at 10:47 AM, Tim N <[email protected]> wrote:

>
> I am using an H2 database for my lift app. If I start with a clean
> database and let schemifier create the tables, the tables get created
> ok, but then I get a "java.util.NoSuchElementException: key not found:
> fsite_users" where fsite_users is my User table. The table is created
> and the app runs fine after ward. If I set schemifier to only validate
> the db, I get the same error, so it seems to me like it's the code
> that tries to verify the schema is where the problem lies. I thought
> it might be a case issue, so I tried it with all uppercase table
> names, but I got the same problem. I also tried this with various
> versions of lift.
>
> Any Ideas?
>
> OS: Ubuntu 9.04
> Scala: 2.7.5
> Lift: 1.1-SNAPSHOT
> H2: 1.1.116
>
> Here is the log:
>
> [info] == jetty-run ==
> 2009-07-30 12:10:29.875::INFO:  Logging to STDERR via
> org.mortbay.log.StdErrLog
> [info] jetty-7.0.0.pre5
> [info] NO JSP Support for /, did not find
> org.apache.jasper.servlet.JspServlet
> INFO - CREATE TABLE fsite_users (id BIGINT NOT NULL AUTO_INCREMENT ,
> firstname VARCHAR(32) , lastname VARCHAR(32) , email VARCHAR(48) ,
> locale VARCHAR(16) , timezone VARCHAR(32) , password_pw VARCHAR(48) ,
> password_slt VARCHAR(20) , superuser BOOLEAN , validated BOOLEAN ,
> uniqueid VARCHAR(32))
> INFO - CREATE TABLE fsite_user_ext_sess (id BIGINT NOT NULL
> AUTO_INCREMENT , experation BIGINT , userid VARCHAR(64) , cookieid
> VARCHAR(32))
> INFO - CREATE TABLE fsite_flm_leagues (name VARCHAR(32) , id BIGINT
> NOT NULL AUTO_INCREMENT , hidden BOOLEAN , active BOOLEAN)
> INFO - CREATE TABLE fsite_flm_teams (name VARCHAR(32) , id BIGINT NOT
> NULL AUTO_INCREMENT , league_id BIGINT)
> INFO - CREATE TABLE fsite_flm_owners (id BIGINT NOT NULL
> AUTO_INCREMENT , user_id BIGINT , hidden BOOLEAN , commissioner
> BOOLEAN , team_id BIGINT)
> INFO - CREATE TABLE fsite_sports (name VARCHAR(32) , id BIGINT NOT
> NULL AUTO_INCREMENT)
> INFO - CREATE TABLE fsite_sport_leagues (name VARCHAR(32) , id BIGINT
> NOT NULL AUTO_INCREMENT , sport_id BIGINT , abbr VARCHAR(12) ,
> currentseason INTEGER)
> INFO - CREATE TABLE fsite_sport_players (id BIGINT NOT NULL
> AUTO_INCREMENT , league_id BIGINT , firstname VARCHAR(32) , lastname
> VARCHAR(32) , namesuffix VARCHAR(3) , middlename VARCHAR(32))
> INFO - CREATE TABLE fsite_sport_teams (name VARCHAR(32) , id BIGINT
> NOT NULL AUTO_INCREMENT , league_id BIGINT , abbr VARCHAR(12))
> ERROR - Failed to Boot
> java.util.NoSuchElementException: key not found: fsite_users
>        at scala.collection.Map$class.default(Map.scala:169)
>        at scala.collection.mutable.HashMap.default(HashMap.scala:33)
>        at scala.collection.Map$class.apply(Map.scala:80)
>        at scala.collection.mutable.HashMap.apply(HashMap.scala:33)
>        at net.liftweb.mapper.Schemifier$$anonfun$6$$anonfun$apply$7.apply
> (Schemifier.scala:189)
>        at net.liftweb.mapper.Schemifier$$anonfun$6$$anonfun$apply$7.apply
> (Schemifier.scala:189)
>        at
> net.liftweb.mapper.Schemifier$.net$liftweb$mapper$Schemifier$$using
> (Schemifier.scala:43)
>        at net.liftweb.mapper.Schemifier$$anonfun$6.apply(Schemifier.scala:
> 189)
>        at net.liftweb.mapper.Schemifier$$anonfun$6.apply(Schemifier.scala:
> 184)
>        at scala.List.flatMap(List.scala:1132)
>        at net.liftweb.mapper.Schemifier$.net$liftweb$mapper$Schemifier$
> $ensureColumns(Schemifier.scala:183)
>        at
> net.liftweb.mapper.Schemifier$$anonfun$schemify$1$$anonfun$2.apply
> (Schemifier.scala:61)
>        at
> net.liftweb.mapper.Schemifier$$anonfun$schemify$1$$anonfun$2.apply
> (Schemifier.scala:61)
>        at scala.List.foldLeft(List.scala:1066)
>        at net.liftweb.mapper.Schemifier$$anonfun$schemify$1.apply
> (Schemifier.scala:61)
>        at net.liftweb.mapper.Schemifier$$anonfun$schemify$1.apply
> (Schemifier.scala:54)
>        at net.liftweb.mapper.DB$.use(DB.scala:317)
>        at net.liftweb.mapper.Schemifier$.schemify(Schemifier.scala:53)
>        at net.liftweb.mapper.Schemifier$.schemify(Schemifier.scala:36)
>        at bootstrap.liftweb.Boot.boot(Boot.scala:62)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
> (ClassHelpers.scala:408)
>        at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply
> (ClassHelpers.scala:406)
>        at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
> (LiftRules.scala:1096)
>        at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
> (LiftRules.scala:1096)
>        at net.liftweb.util.Full.map(Box.scala:330)
>        at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:1096)
>        at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:556)
>        at net.liftweb.http.LiftFilter.init(LiftServlet.scala:530)
>        at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:
> 97)
>        at org.mortbay.component.AbstractLifeCycle.start
> (AbstractLifeCycle.java:50)
>        at org.mortbay.jetty.servlet.ServletHandler.initialize
> (ServletHandler.java:617)
>        at org.mortbay.jetty.servlet.Context.startContext(Context.java:160)
>        at org.mortbay.jetty.webapp.WebAppContext.startContext
> (WebAppContext.java:1215)
>        at org.mortbay.jetty.handler.ContextHandler.doStart
> (ContextHandler.java:548)
>        at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
> 348)
>        at org.mortbay.component.AbstractLifeCycle.start
> (AbstractLifeCycle.java:50)
>        at org.mortbay.jetty.handler.HandlerWrapper.doStart
> (HandlerWrapper.java:130)
>        at org.mortbay.jetty.Server.doStart(Server.java:222)
>        at org.mortbay.component.AbstractLifeCycle.start
> (AbstractLifeCycle.java:50)
>        at sbt.LazyJettyRun$.apply(WebApp.scala:159)
>        at sbt.JettyRun$.runJetty$1(WebApp.scala:46)
>        at sbt.JettyRun$.liftedTree1$1(WebApp.scala:55)
>        at sbt.JettyRun$.run(WebApp.scala:53)
>        at sbt.JettyRun$.apply(WebApp.scala:34)
>        at sbt.WebScalaProject$$anonfun$jettyRunTask$1.apply
> (ScalaProject.scala:327)
>        at sbt.WebScalaProject$$anonfun$jettyRunTask$1.apply
> (ScalaProject.scala:327)
>        at sbt.TaskManager$Task.invoke(TaskManager.scala:62)
>        at sbt.impl.RunTask.runTask(RunTask.scala:78)
>        at sbt.impl.RunTask.sbt$impl$RunTask$$runIfNotRoot(RunTask.scala:63)
>        at
> sbt.impl.RunTask$$anonfun$runTasksExceptRoot$3.apply(RunTask.scala:
> 49)
>        at
> sbt.impl.RunTask$$anonfun$runTasksExceptRoot$3.apply(RunTask.scala:
> 49)
>        at sbt.Distributor$Run$Worker$$anonfun$2.apply(ParallelRunner.scala:
> 130)
>        at sbt.Distributor$Run$Worker$$anonfun$2.apply(ParallelRunner.scala:
> 130)
>        at sbt.Control$.trapUnit(Control.scala:19)
>        at sbt.Distributor$Run$Worker.run(ParallelRunner.scala:130)
> [info] Started [email protected]:8080
>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to