5608057 / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

[Error] java.lang.NullPointerException - CardDav Propfind Request #340

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce the problem:
1. A web application accept CardDav request
2. CardDav Client to perform Propfind request 

Expected output:
1. keep the request statistic as JavaMelody normally do.

Actual Output:
JavaMelody has interrupt the response and send back to the CardDav client as an 
error response.

apache-tomcat-6.0.36
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11)
Java HotSpot(TM) Server VM (build 20.51-b01, mixed mode)
Linux 2.6.18-348.16.1.el5PAE #1 SMP i686 i686 i386 GNU/Linux

Additional information below.
Here is the print stack: (* hidden some customer classes)
java.lang.NullPointerException

      at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:51)
      at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:33)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
      at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:61)
      at org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:54)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
      at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:61)
      at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceMethod(FindResourceMethodHandler.java:183)
      at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:110)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
      at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:61)
      at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:93)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
      at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:61)
      at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
      at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:61)
      at org.apache.wink.server.internal.handlers.OptionsMethodHandler.handleRequest(OptionsMethodHandler.java:46)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
      at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:61)
      at org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
      at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:61)
      at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:48)
      at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:163)
      at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:137)
      at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:116)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:208)
      at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:181)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by leehow...@gmail.com on 13 Sep 2013 at 2:21

GoogleCodeExporter commented 8 years ago
Can you submit a simple "hello world" project in a zip file to reproduce the 
issue? (if you can, a maven project helps in order to download dependencies and 
to package it)

Original comment by evernat@free.fr on 13 Sep 2013 at 7:53

GoogleCodeExporter commented 8 years ago
It is difficult to provide a "hello world" project. Because i don't own the web 
application source code.

Does JavaMelody support most CardDav request? any limitation?

Original comment by leehow...@gmail.com on 16 Sep 2013 at 4:05

GoogleCodeExporter commented 8 years ago
I do not know what CardDav is. Can you write a simple project from scratch to 
reproduce the issue?

Original comment by evernat@free.fr on 16 Sep 2013 at 6:58

GoogleCodeExporter commented 8 years ago
Found the root cause after have a chance of looking into the code but not sure 
how it work with JavaMelody.

throwing "java.lang.NullPointerException" but didn't has error handling (e.g 
try & catch)

Original comment by leehow...@gmail.com on 18 Sep 2013 at 3:48

GoogleCodeExporter commented 8 years ago
ok, it's good that you found the root cause.

Given that I do not know what fixing except that cause, resolving as invalid.
Bye

Original comment by evernat@free.fr on 13 Oct 2013 at 12:24