Hi all

I see that the SQL logging has been merged in into the 1.1-SNAPSHOT.
I am finding on a reload the following exception is logged in the
console.

java.lang.ClassCastException:
net.liftweb.mapper.LoggedPreparedStatement cannot be cast to
java.lang.String
        at bootstrap.liftweb.Boot$$anonfun$boot$3.apply(Boot.scala:70)
        at net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
        at net.liftweb.mapper.DB$$anonfun$runLogger$1.apply(DB.scala:181)
        at scala.List.foreach(List.scala:841)
        at net.liftweb.mapper.DB$.runLogger(DB.scala:181)
        at net.liftweb.mapper.DB$.exec(DB.scala:301)
        at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
$35.apply(MetaMapper.scala:1432)
        at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2$$anonfun$apply
$35.apply(MetaMapper.scala:1430)
        at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
(DB.scala:375)
        at net.liftweb.mapper.DB$$anonfun$runPreparedStatement$1.apply
(DB.scala:372)
        at net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:241)
        at net.liftweb.util.Helpers$.calcTime(Helpers.scala:29)
        at net.liftweb.mapper.DB$.runPreparedStatement(DB.scala:372)
        at net.liftweb.mapper.DB$.prepareStatement(DB.scala:316)
        at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
(MetaMapper.scala:1429)
        at net.liftweb.mapper.KeyedMetaMapper$$anonfun$findDb$2.apply
(MetaMapper.scala:1423)
        at net.liftweb.mapper.DB$.use(DB.scala:389)
        at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
1422)
        at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
        at net.liftweb.mapper.KeyedMetaMapper$class.findDb(MetaMapper.scala:
1418)
        at org.harrow.findaholidaylet.model.User$.findDb(User.scala:22)
        at net.liftweb.mapper.KeyedMetaMapper$class.find(MetaMapper.scala:
1415)
        at org.harrow.findaholidaylet.model.User$.find(User.scala:22)
        at org.harrow.findaholidaylet.model.User$.createAdminUser(User.scala:
28)
        at bootstrap.liftweb.Boot.boot(Boot.scala:89)
        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:1087)
        at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply
(LiftRules.scala:1087)
        at net.liftweb.util.Full.map(Box.scala:330)
        at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:1087)
        at net.liftweb.http.provider.HTTPProvider$class.bootLift
(HTTPProvider.scala:69)
        at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:507)
        at net.liftweb.http.provider.servlet.ServletFilterProvider$class.init
(ServletFilterProvider.scala:19)
        at net.liftweb.http.LiftFilter.init(LiftServlet.scala:507)
        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:658)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
        at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1250)
        at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:517)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
467)
        at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart
(Jetty6PluginWebAppContext.java:124)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo.restartWebApp
(AbstractJettyRunMojo.java:458)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.filesChanged
(AbstractJettyRunMojo.java:419)
        at org.mortbay.util.Scanner.reportBulkChanges(Scanner.java:486)
        at org.mortbay.util.Scanner.reportDifferences(Scanner.java:352)
        at org.mortbay.util.Scanner.scan(Scanner.java:280)
        at org.mortbay.util.Scanner$1.run(Scanner.java:232)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
[INFO] Restart completed at Tue Sep 15 19:50:31 BST 2009

I'm running on Derby if that helps.

-- Ewan

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

Reply via email to