Re: [Lift] Continuation related exception with Jetty 8

358 views
Skip to first unread message

Jakub Czuchnowski

unread,
Dec 20, 2011, 11:12:11 AM12/20/11
to lif...@googlegroups.com
Hi,

There was a thead about this:
https://groups.google.com/forum/#!topic/liftweb/x1SIveK_bK0

and a blogpost by Antonio:
http://shadowfiend.posterous.com/unexpected-nullpointerexceptions-in-lift-prod

In my opinion this problem was solved in Jetty 7.6.0.RC0 and 8.1.0.RC0.

Jakub Czuchnowski

On Tue, Dec 20, 2011 at 4:37 PM, Peter Brant <peter...@gmail.com> wrote:
> Hi all,
>
> We're getting the following exception on Ajax calls and Comet polls
> with some regularity during development.  The net result is that the
> Ajax call or Comet poll fails, but then succeeds on the retry.  Is
> anybody else seeing these?  Any ideas on a solution?
>
> Thanks,
>
> Pete
>
> 12-20-2011 09:28:40 ERROR [ActorLogger] - Actor threw an exception
> java.lang.reflect.InvocationTargetException
>        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.http.provider.servlet.containers.Servlet30AsyncProvider.resume(Servlet30AsyncProvider.scala:106)
>        at net.liftweb.http.provider.servlet.HTTPRequestServlet.resume(HTTPRequestServlet.scala:163)
>        at net.liftweb.http.LiftServlet$$anonfun$12.apply(LiftServlet.scala:536)
>        at net.liftweb.http.LiftServlet$$anonfun$12.apply(LiftServlet.scala:536)
>        at net.liftweb.http.LiftServlet$ContinuationActor$$anonfun$messageHandler$1.apply(LiftServlet.scala:522)
>        at net.liftweb.http.LiftServlet$ContinuationActor$$anonfun$messageHandler$1.apply(LiftServlet.scala:504)
>        at net.liftweb.actor.LiftActor$class.execTranslate(LiftActor.scala:441)
>        at net.liftweb.http.LiftServlet$ContinuationActor.execTranslate(LiftServlet.scala:497)
>        at net.liftweb.actor.SpecializedLiftActor$class.net$liftweb$actor$SpecializedLiftActor$$proc2(LiftActor.scala:289)
>        at net.liftweb.actor.SpecializedLiftActor$$anonfun$net$liftweb$actor$SpecializedLiftActor$$processMailbox$1.apply$mcV$sp(LiftActor.scala:210)
>        at net.liftweb.actor.SpecializedLiftActor$$anonfun$net$liftweb$actor$SpecializedLiftActor$$processMailbox$1.apply(LiftActor.scala:210)
>        at net.liftweb.actor.SpecializedLiftActor$$anonfun$net$liftweb$actor$SpecializedLiftActor$$processMailbox$1.apply(LiftActor.scala:210)
>        at net.liftweb.actor.SpecializedLiftActor$class.around(LiftActor.scala:224)
>        at net.liftweb.http.LiftServlet$ContinuationActor.around(LiftServlet.scala:497)
>        at net.liftweb.actor.SpecializedLiftActor$class.net$liftweb$actor$SpecializedLiftActor$$processMailbox(LiftActor.scala:209)
>        at net.liftweb.actor.SpecializedLiftActor$$anonfun$2$$anonfun$apply$mcV$sp$1.apply$mcV$sp(LiftActor.scala:173)
>        at net.liftweb.actor.LAScheduler$$anonfun$9$$anon$2$$anon$3.run(LiftActor.scala:64)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.IllegalStateException: IDLE,initial
>        at org.eclipse.jetty.server.AsyncContinuation.complete(AsyncContinuation.java:534)
>        ... 24 more
>
> --
> Lift, the simply functional web framework: http://liftweb.net
> Code: http://github.com/lift
> Discussion: http://groups.google.com/group/liftweb
> Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

Peter Brant

unread,
Dec 20, 2011, 10:37:18 AM12/20/11
to lif...@googlegroups.com

Peter Brant

unread,
Dec 20, 2011, 4:56:46 PM12/20/11
to lif...@googlegroups.com
Ah, thanks. I hadn't realized the NPE thread seems to be the same
underlying problem. As another data point, this is happening during
development with the only load coming from the developer (i.e. not
much). We'll give 8.1.0.RC0 a shot.

Pete

Antonio Salazar Cardozo

unread,
Dec 21, 2011, 2:36:48 PM12/21/11
to lif...@googlegroups.com
Yeah, NPE is at this point perhaps a misnomer. That said, note that the underlying cause isn't load per se, it's just that load triggers the underlying cause. The underlying cause is requests dying before Lift gets a chance to handle them. To this end, you may want to check if there's a request timeout somewhere that's triggering before Lift gets to handle the request, or perhaps if there's a threading issue of some sort. Our accidental discovery of the bug happened when we had a synchronization problem that caused a lot of request threads to be deadlocked, so that when they woke up requests were gone.
Thanks,
Antonio

Peter Brant

unread,
Dec 21, 2011, 4:50:00 PM12/21/11
to lif...@googlegroups.com
Thanks. Just to follow up again, we were still seeing the problem in
8.1.0.RC0, but we're not now with 8.1.0.RC1.

Pete

nosyrom

unread,
Dec 21, 2011, 4:53:21 PM12/21/11
to Lift
I work with Pete and switched our build to use 8.1.0RC1 and the errors
are no longer appearing in the log.

This error was still present in 8.1.0RC0 though.

Thanks,

Jeremy

On Dec 20, 10:12 am, Jakub Czuchnowski <jakub.czuchnow...@gmail.com>
wrote:
> Hi,
>
> There was a thead about this:https://groups.google.com/forum/#!topic/liftweb/x1SIveK_bK0
>
> and a blogpost by Antonio:http://shadowfiend.posterous.com/unexpected-nullpointerexceptions-in-...
>
> In my opinion this problem was solved in Jetty 7.6.0.RC0 and 8.1.0.RC0.
>
> Jakub Czuchnowski
>
>
>
>
>
>
>
> On Tue, Dec 20, 2011 at 4:37 PM, Peter Brant <peter.br...@gmail.com> wrote:
> > Hi all,
>
> > We're getting the following exception on Ajax calls and Comet polls
> > with some regularity during development.  The net result is that the
> > Ajax call or Comet poll fails, but then succeeds on the retry.  Is
> > anybody else seeing these?  Any ideas on a solution?
>
> > Thanks,
>
> > Pete
>
> > 12-20-2011 09:28:40 ERROR [ActorLogger] - Actor threw an exception
> > java.lang.reflect.InvocationTargetException
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at net.liftweb.http.provider.servlet.containers.Servlet30AsyncProvider.resume( Servlet30AsyncProvider.scala:106)
> >        at net.liftweb.http.provider.servlet.HTTPRequestServlet.resume(HTTPRequestServ let.scala:163)
> >        at net.liftweb.http.LiftServlet$$anonfun$12.apply(LiftServlet.scala:536)
> >        at net.liftweb.http.LiftServlet$$anonfun$12.apply(LiftServlet.scala:536)
> >        at net.liftweb.http.LiftServlet$ContinuationActor$$anonfun$messageHandler$1.ap ply(LiftServlet.scala:522)
> >        at net.liftweb.http.LiftServlet$ContinuationActor$$anonfun$messageHandler$1.ap ply(LiftServlet.scala:504)
> >        at net.liftweb.actor.LiftActor$class.execTranslate(LiftActor.scala:441)
> >        at net.liftweb.http.LiftServlet$ContinuationActor.execTranslate(LiftServlet.sc ala:497)
> >        at net.liftweb.actor.SpecializedLiftActor$class.net$liftweb$actor$SpecializedL iftActor$$proc2(LiftActor.scala:289)
> >        at net.liftweb.actor.SpecializedLiftActor$$anonfun$net$liftweb$actor$Specializ edLiftActor$$processMailbox$1.apply$mcV$sp(LiftActor.scala:210)
> >        at net.liftweb.actor.SpecializedLiftActor$$anonfun$net$liftweb$actor$Specializ edLiftActor$$processMailbox$1.apply(LiftActor.scala:210)
> >        at net.liftweb.actor.SpecializedLiftActor$$anonfun$net$liftweb$actor$Specializ edLiftActor$$processMailbox$1.apply(LiftActor.scala:210)
> >        at net.liftweb.actor.SpecializedLiftActor$class.around(LiftActor.scala:224)
> >        at net.liftweb.http.LiftServlet$ContinuationActor.around(LiftServlet.scala:497 )
> >        at net.liftweb.actor.SpecializedLiftActor$class.net$liftweb$actor$SpecializedL iftActor$$processMailbox(LiftActor.scala:209)
> >        at net.liftweb.actor.SpecializedLiftActor$$anonfun$2$$anonfun$apply$mcV$sp$1.a pply$mcV$sp(LiftActor.scala:173)
> >        at net.liftweb.actor.LAScheduler$$anonfun$9$$anon$2$$anon$3.run(LiftActor.scal a:64)
> >        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.j ava:886)
Reply all
Reply to author
Forward
0 new messages