0

I have implemented RestEasy Authorization using ContainerRequestFilter .However, when i called service method my filter code is throwing NullPointerException .See below code snippet

 ResourceMethodInvoker methodInvoker = (ResourceMethodInvoker) requestContext.getProperty(“org.jboss.resteasy.core.ResourceMethodInvoker”);
    Method method = methodInvoker.getMethod();

requestContext.getProperty() method return NULL.Is any configuration required to read resource annotation .Please help me to resolve this issue?

Tech Stack: Wildfly10 java1.8 RestEasy 3.0.11Final

  • https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it – Olcay Ertaş May 30 '17 at 14:31
  • Possible duplicate of [What is a NullPointerException, and how do I fix it?](https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it) – Daniel May 31 '17 at 00:11
  • Question is with respect to get property method why requestContext.getProperty(“org.jboss.resteasy.core.ResourceMethodInvoker”) method returning null – Sharma Jitendra May 31 '17 at 04:23

0 Answers0