Hello All,
I'm working on integrating Akka into a servlet environment, with JAX-
RS to boot. Unfortunately, I've run into a weird issue that I can't
quite comprehend. Perhaps someone here has seen something like this.
Note also that I'm working off of akka/akka-samples/akka-sample-rest-
scala as a template.
Here's a simple dumbed-down project that expresses what I want to be
able to do:
http://gist.github.com/403961
In a nutshell, I'm exposing an actor (HelloService.scala) at "/hello"
that has the child endpoint "/world". It's supposed to send a message
to another actor (HelloActor.scala) that should reply with a string.
Nothing fancy. When I hit
http://localhost:8080/hello/world, I see the
following on my console:
[warn] /hello/world
java.lang.IllegalArgumentException: object is not an instance of
declaring class
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
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider
$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:
149)
Here's the full stack trace if it helps:
https://gist.github.com/raw/403961/bd19001855473684e8600bf59e0014143d8f30fb/not_an_instance.txt
Is there anything obvious that I'm doing wrong? I'm running Akka 0.9
from master, rev 6154102.
Thanks for any and all insight,
-max
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to
akka...@googlegroups.com.
To unsubscribe from this group, send email to
akka-user+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/akka-user?hl=en.