Ok, I've run "mvn clean jetty:run" and it works now. Thanks.
On 3 sep, 03:16, David Pollak <feeder.of.the.be...@gmail.com> wrote: > On Wed, Sep 2, 2009 at 3:55 PM, José María <josemariar...@gmail.com> wrote: > > > SOLVED > > > lazy val id = S.param("id").flatMap(Helpers.asLong) openOr -1L > > > I changed it to: > > > lazy val pagina = S.param("numero").openOr("1").toInt > > This is a bad pattern. It will lead to an exception is the parameter > "numero" cannot be parsed as an Int. Exceptions should only be encouraged > in places where there is an unexpected situation (e.g., your database goes > down), not in a situation where you have input that cannot logically be > turned into a number. > > The reason, as Tim pointed out, that you got the exception was the class > changed in a way that JavaRebel couldn't handle. Just stop JavaRebel, do a > "mvn clean install" and restart JavaRebel. > > > > > > > Yes, I'm using JavaRebel > > > On 2 sep, 20:58, Timothy Perrett <timo...@getintheloop.eu> wrote: > > > Are you using JavaRebel? Try doing a clean before jetty:run > > > > Cheers, Tim > > > > On 2 Sep 2009, at 20:57, José María wrote: > > > > > On 2 sep, 17:27, David Pollak <feeder.of.the.be...@gmail.com> wrote: > > > > >> Try: > > > > >> lazy val id = S.param("id").flatMap(Helpers.asLong) openOr -1L > > > > > I get: > > > > > Exception occured while processing /marca/162 > > > > > Message: java.lang.IncompatibleClassChangeError > > > > net.liftweb.util.Full.flatMap(Box.scala:332) > > > > demo.helloworld.snippet.MarcaInfo$$M$1be0ea1b.id > > (MarcaInfo.scala:23) > > > > demo.helloworld.snippet.MarcaInfo$$A$1be0ea1b.id(<generated>) > > > > demo.helloworld.snippet.MarcaInfo.id(Marca.scala) > > > > demo.helloworld.snippet.MarcaInfo$$M$1be0ea1b.marca(MarcaInfo.scala: > > > > 29) > > > > demo.helloworld.snippet.MarcaInfo$$A$1be0ea1b.marca(<generated>) > > > > demo.helloworld.snippet.MarcaInfo.marca(Marca.scala) > > > > demo.helloworld.snippet.MarcaInfo$$M$1be0ea1b.datos(MarcaInfo.scala: > > > > 94) > > > > demo.helloworld.snippet.MarcaInfo$$A$1be0ea1b.datos(<generated>) > > > > demo.helloworld.snippet.MarcaInfo.datos(Marca.scala) > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scalahttp://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 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 -~----------~----~----~----~------~----~------~--~---