Missing suspendables for Jersey

32 views
Skip to first unread message

victo...@gmail.com

unread,
Jul 28, 2016, 11:11:39 AM7/28/16
to comsat-user
Hi,

While playing with Jersey and its filters, I found some missing suspendables declarations in the comsat package.

Basically, it is needed when one extends javax.ws.rs.container.ContainerRequestFilter.filter(ContainerRequestContext) with some fiber-enabled code.

for suspendable-supers:
javax.ws.rs.container.ContainerRequestFilter.filter(ContainerRequestContext)
org.glassfish.jersey.process.internal.Stage.apply(DATA)

for suspendables:
org.glassfish.jersey.server.ContainerFilteringStage.apply(RequestProcessingContext)
org.glassfish.jersey.process.internal.Stages.process(DATA, Stage<DATA>, Ref<T>)

And that should be all I think!

Hope this helps,

Victor

circlespainter

unread,
Jul 28, 2016, 3:00:43 PM7/28/16
to comsat-user
Hi, could you also open a PR about that (with a unit test if you can)?

Thanks,
-- Fabio

victo...@gmail.com

unread,
Jul 29, 2016, 10:06:20 AM7/29/16
to comsat-user
Hi,

I will be unavailable for a month, but I can do it without any problem in September if you you can wait :)

Thanks!

victo...@gmail.com

unread,
Aug 30, 2016, 10:28:57 AM8/30/16
to comsat-user
Hi again, I'm really not familiar with Gradle and your build also.

A few questions:
 - I don't know why but when I import comsat into Eclipse, the dependency for quasar-actors is found, but not the one for quasar itself… any idea what could cause that? It's not even a SNAPSHOT dependency…
 - Is it normal that when I run "gradle test" in "comsat-jersey-server" I get the following warnings:
[ant:scanSuspendables] Found parent of suspendable method: co/paralleluniverse/fibers/servlet/FiberHttpServlet.doTrace(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V in javax/servlet/http/HttpServlet NOT IN PROJECT
[ant:scanSuspendables] Found parent of suspendable method: co/paralleluniverse/fibers/servlet/FiberHttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V in javax/servlet/http/HttpServlet NOT IN PROJECT
[ant:scanSuspendables] Found parent of suspendable method: co/paralleluniverse/fibers/servlet/FiberHttpServlet.doPut(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V in javax/servlet/http/HttpServlet NOT IN PROJECT
… and so on


Thanks!

Le jeudi 28 juillet 2016 21:00:43 UTC+2, circlespainter a écrit :

victo...@gmail.com

unread,
Aug 30, 2016, 11:05:56 AM8/30/16
to comsat-user
It seems the quasar-core dependency missing in eclipse is caused by this "configurations" thing with a specific one called quasar… I added the dependency as compile for my tests :)

How do I see the details of the errors when the test from comsat-jersey-server fails? I just can't see anything else from the very generic error of the test: org.apache.http.client.HttpResponseException: Internal Server Error

There is nothing about the server side :/

victo...@gmail.com

unread,
Aug 31, 2016, 4:43:34 AM8/31/16
to comsat-user


Le jeudi 28 juillet 2016 21:00:43 UTC+2, circlespainter a écrit :

circlespainter

unread,
Sep 1, 2016, 3:33:09 AM9/1/16
to comsat-user
Great, thanks! I'll have a look soon.

-- Fabio
Reply all
Reply to author
Forward
0 new messages