-
Bug
-
Resolution: Done
-
Major
-
1.1.RC1
-
None
-
None
nullpointerexception if no accept-language in request
this makes encoding only variant selection impossible
stacktrace:
[Mon Mar 23 18:36:43 CET 2009] Unexpected problem running servlet
org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321)
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:231)
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:207)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:390)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:174)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
at org.jboss.resteasy.plugins.server.tjws.TJWSServletDispatcher.service(TJWSServletDispatcher.java:38)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:1910)
at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:1874)
at Acme.Serve.Serve$ServeConnection.run(Serve.java:1707)
at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1186)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.jboss.resteasy.util.AcceptableVariant.<init>(AcceptableVariant.java:36)
at org.jboss.resteasy.specimpl.RequestImpl.pickVariant(RequestImpl.java:88)
at org.jboss.resteasy.specimpl.RequestImpl.selectVariant(RequestImpl.java:59)
at org.jboss.resteasy.test.finegrain.resource.VariantsTest$EncodingVariantResource.doGet(VariantsTest.java:281)
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 org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:211)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:176)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:375)
... 10 more