On Tue, Jan 5, 2010 at 12:10 PM, Mads Hartmann <[email protected]> wrote:

> I've got this in my pom.xml
>
>   <dependency>
>      <groupId>net.liftweb</groupId>
>      <artifactId>lift-core</artifactId>
>      <version>1.0</version>
>    </dependency>
>

Ah hah!

I'd strongly recommend you upgrade to Lift 1.1-M8.  It's faster, more stable
and better supported than 1.0.



>
> On Jan 5, 8:54 pm, David Pollak <[email protected]> wrote:
> > On Tue, Jan 5, 2010 at 11:51 AM, Mads Hartmann <[email protected]>
> wrote:
> > > Sure thing, it's quite long though :)
> >
> > > Just one thing, i added the following for it to compile (I want to
> > > return List[User] not List[TagUser] : .map(_.user.obj.open_!)
> >
> > > So in all it looks like this
> >
> > > def getTopUsers(in: Int) :List[User] = {
> >
> > >    TagUser.findAll(By(TagUser.tag, this.id), In(TagUser.user, User.id,
> > > OrderBy(User.followers_count, Descending), MaxRows[User](in)))
> > >          .map(_.user.obj.open_!)
> >
> > > }
> >
> > What version of Lift?
> >
> >
> >
> >
> >
> > > Exception occured while processing /
> > > Message: java.lang.NullPointerException
> > >        net.liftweb.mapper.In$$anon$3.<init>(MetaMapper.scala:1206)
> > >        net.liftweb.mapper.In$.apply(MetaMapper.scala:1200)
> > >        scalableKvidr.model.Tag.getTopUsers(Tag.scala:38)
> > >
>  scalableKvidr.snippet.TagsSnippets$$anonfun$frontpageTags$1.apply
> > > (TagsSnippets.scala:71)
> > >
>  scalableKvidr.snippet.TagsSnippets$$anonfun$frontpageTags$1.apply
> > > (TagsSnippets.scala:68)
> > >        scala.List.flatMap(List.scala:1125)
> > >
>  scalableKvidr.snippet.TagsSnippets.frontpageTags(TagsSnippets.scala:
> > > 67)
> > >        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >        sun.reflect.NativeMethodAccessorImpl.invoke
> > > (NativeMethodAccessorImpl.java:39)
> > >        sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > (DelegatingMethodAccessorImpl.java:25)
> > >        java.lang.reflect.Method.invoke(Method.java:597)
> >
> > >  net.liftweb.util.ClassHelpers$$anonfun$net$liftweb$util$ClassHelpers$
> > > $_invokeMethod$2$$anonfun$apply$7.apply(ClassHelpers.scala:352)
> > >
>  net.liftweb.util.ControlHelpers$class.tryo(ControlHelpers.scala:40)
> > >        net.liftweb.util.Helpers$.tryo(Helpers.scala:29)
> > >
>  net.liftweb.util.ControlHelpers$class.tryo(ControlHelpers.scala:55)
> > >        net.liftweb.util.Helpers$.tryo(Helpers.scala:29)
> >
> > >  net.liftweb.util.ClassHelpers$$anonfun$net$liftweb$util$ClassHelpers$
> > > $_invokeMethod$2.apply(ClassHelpers.scala:352)
> >
> > >  net.liftweb.util.ClassHelpers$$anonfun$net$liftweb$util$ClassHelpers$
> > > $_invokeMethod$2.apply(ClassHelpers.scala:352)
> > >        scala.Iterator$$anon$14.next(Iterator.scala:267)
> > >        scala.Iterator$class.find(Iterator.scala:462)
> > >        scala.Iterator$$anon$14.find(Iterator.scala:265)
> > >        net.liftweb.util.ClassHelpers$class.net
> $liftweb$util$ClassHelpers$
> > > $_invokeMethod(ClassHelpers.scala:353)
> > >
>  net.liftweb.util.ClassHelpers$class.invokeMethod(ClassHelpers.scala:
> > > 285)
> > >        net.liftweb.util.Helpers$.invokeMethod(Helpers.scala:29)
> > >
>  net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33$$anonfun
> > > $apply$36$$anonfun$apply$38.apply(LiftSession.scala:723)
> > >
>  net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33$$anonfun
> > > $apply$36$$anonfun$apply$38.apply(LiftSession.scala:705)
> > >        net.liftweb.util.EmptyBox.openOr(Box.scala:372)
> > >
>  net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33$$anonfun
> > > $apply$36.apply(LiftSession.scala:705)
> > >
>  net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33$$anonfun
> > > $apply$36.apply(LiftSession.scala:705)
> > >        net.liftweb.util.EmptyBox.openOr(Box.scala:372)
> > >        net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33.apply
> > > (LiftSession.scala:704)
> > >        net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33.apply
> > > (LiftSession.scala:704)
> > >        net.liftweb.http.S$.doSnippet(S.scala:725)
> >
> > >  net.liftweb.http.LiftSession$$anonfun$17.apply(LiftSession.scala:702)
> >
> > >  net.liftweb.http.LiftSession$$anonfun$17.apply(LiftSession.scala:701)
> > >        net.liftweb.util.Full.map(Box.scala:330)
> > >        net.liftweb.http.LiftSession.net$liftweb$http$LiftSession$
> > > $processSnippet(LiftSession.scala:701)
> > >        net.liftweb.http.LiftSession$$anonfun$_defaultLiftTagProcessing
> > > $1.apply(LiftSession.scala:793)
> > >        net.liftweb.http.LiftSession$$anonfun$_defaultLiftTagProcessing
> > > $1.apply(LiftSession.scala:777)
> > >        net.liftweb.util.NamedPF.apply(NamedPartialFunction.scala:30)
> > >        net.liftweb.util.NamedPF$.apply(NamedPartialFunction.scala:76)
> > >
>  net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1$
> > > $anonfun$apply$49.apply(LiftSession.scala:808)
> > >
>  net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1$
> > > $anonfun$apply$49.apply(LiftSession.scala:808)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> > >        net.liftweb.http.S$.setVars(S.scala:623)
> > >        net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude
> > > $1.apply(LiftSession.scala:808)
> > >        net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude
> > > $1.apply(LiftSession.scala:805)
> > >        scala.Seq$class.flatMap(Seq.scala:294)
> > >        scala.xml.NodeSeq.flatMap(NodeSeq.scala:34)
> > >        net.liftweb.http.LiftSession.processSurroundAndInclude
> > > (LiftSession.scala:804)
> > >        net.liftweb.http.LiftSession.net$liftweb$http$LiftSession$
> > > $processSurroundElement(LiftSession.scala:948)
> > >        net.liftweb.http.LiftSession$$anonfun$_defaultLiftTagProcessing
> > > $1.apply(LiftSession.scala:784)
> > >        net.liftweb.http.LiftSession$$anonfun$_defaultLiftTagProcessing
> > > $1.apply(LiftSession.scala:777)
> > >        net.liftweb.util.NamedPF.apply(NamedPartialFunction.scala:30)
> > >        net.liftweb.util.NamedPF$.apply(NamedPartialFunction.scala:76)
> > >
>  net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1$
> > > $anonfun$apply$49.apply(LiftSession.scala:808)
> > >
>  net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1$
> > > $anonfun$apply$49.apply(LiftSession.scala:808)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> > >        net.liftweb.http.S$.setVars(S.scala:623)
> > >        net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude
> > > $1.apply(LiftSession.scala:808)
> > >        net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude
> > > $1.apply(LiftSession.scala:805)
> > >        scala.Seq$class.flatMap(Seq.scala:294)
> > >        scala.xml.NodeSeq.flatMap(NodeSeq.scala:34)
> > >        net.liftweb.http.LiftSession.processSurroundAndInclude
> > > (LiftSession.scala:804)
> > >
>  net.liftweb.http.LiftSession$$anonfun$8.apply(LiftSession.scala:462)
> > >
>  net.liftweb.http.LiftSession$$anonfun$8.apply(LiftSession.scala:462)
> > >        net.liftweb.util.Full.map(Box.scala:330)
> > >
>  net.liftweb.http.LiftSession.processRequest(LiftSession.scala:462)
> > >        net.liftweb.http.LiftServlet.net$liftweb$http$LiftServlet$
> > > $dispatchStatefulRequest(LiftServlet.scala:244)
> > >
>  net.liftweb.http.LiftServlet$$anonfun$2.apply(LiftServlet.scala:176)
> > >
>  net.liftweb.http.LiftServlet$$anonfun$2.apply(LiftServlet.scala:176)
> > >        net.liftweb.http.S$.net$liftweb$http$S$$wrapQuery(S.scala:398)
> > >
>  net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1$
> > > $anonfun$apply$16.apply(S.scala:453)
> > >        net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:372)
> > >        net.liftweb.http.S$$anonfun$net$liftweb$http$S$$doAround$1.apply
> > > (S.scala:373)
> > >        net.liftweb.mapper.DB$$anon$1.net
> $liftweb$mapper$DB$$anon$$doWith
> > > (DB.scala:117)
> > >
>  net.liftweb.mapper.DB$$anon$1$$anonfun$net$liftweb$mapper$DB$$anon$
> > > $doWith$1.apply(DB.scala:118)
> > >
>  net.liftweb.mapper.DB$$anon$1$$anonfun$net$liftweb$mapper$DB$$anon$
> > > $doWith$1.apply(DB.scala:118)
> > >        net.liftweb.mapper.DB$.use(DB.scala:305)
> > >        net.liftweb.mapper.DB$$anon$1.net
> $liftweb$mapper$DB$$anon$$doWith
> > > (DB.scala:118)
> > >        net.liftweb.mapper.DB$$anon$1.apply(DB.scala:124)
> > >        net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:373)
> > >        net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit
> > > $1.apply(S.scala:451)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> > >
>  net.liftweb.http.S$.net$liftweb$http$S$$_nest2InnerInit(S.scala:450)
> >
> > >  net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun
> > > $apply$19$$anonfun$apply$20$$anonfun$apply$21$$anonfun$apply$22$
> > > $anonfun$apply$23$$anonfun$apply$24.apply(S.scala:471)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> >
> > >  net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun
> > > $apply$19$$anonfun$apply$20$$anonfun$apply$21$$anonfun$apply$22$
> > > $anonfun$apply$23.apply(S.scala:470)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> >
> > >  net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun
> > > $apply$19$$anonfun$apply$20$$anonfun$apply$21$$anonfun$apply$22.apply
> > > (S.scala:469)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> >
> > >  net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun
> > > $apply$19$$anonfun$apply$20$$anonfun$apply$21.apply(S.scala:468)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> >
> > >  net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun
> > > $apply$19$$anonfun$apply$20.apply(S.scala:467)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> >
> > >  net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun
> > > $apply$19.apply(S.scala:466)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> > >
>  net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1.apply
> > > (S.scala:465)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> > >        net.liftweb.http.S$.net$liftweb$http$S$$_innerInit(S.scala:464)
> > >
>  net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$27$$anonfun$apply
> > > $28$$anonfun$apply$29$$anonfun$apply$30.apply(S.scala:495)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> > >
>  net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$27$$anonfun$apply
> > > $28$$anonfun$apply$29.apply(S.scala:494)
> > >        net.liftweb.http.RequestVarHandler$.apply(Vars.scala:191)
> > >
>  net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$27$$anonfun$apply
> > > $28.apply(S.scala:493)
> > >        net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
> >
> > ...
> >
> > read more ยป
>
> --
> 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]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>
>


-- 
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
--
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