You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/05/17 09:09:54 UTC

[GitHub] [rocketmq-exporter] aligege123 opened a new issue #56: ERROR Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception java.io.CharConversionException: Not an ISO 8859-1 character: [

aligege123 opened a new issue #56:
URL: https://github.com/apache/rocketmq-exporter/issues/56


   **I meet the exception as following:**
   
   
   `[2021-05-17 15:56:52.554] ERROR Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
   java.io.CharConversionException: Not an ISO 8859-1 character: [
           at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:75)
           at org.apache.rocketmq.exporter.controller.RMQMetricsController.metrics(RMQMetricsController.java:50)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189)
           at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
           at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
           at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
           at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800)
           at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
           at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
           at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
           at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
           at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
           at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
           at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
           at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
           at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
           at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
           at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
           at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
           at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
           at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
           at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
           at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
           at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
           at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
           at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417)
           at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
           at java.lang.Thread.run(Thread.java:748)`
   
   
   **the metrics seem like this:**
   ![image](https://user-images.githubusercontent.com/43952414/118460845-a97fc100-b72f-11eb-9385-793fd732349d.png)
   
   **Is this a problem of the exporter or my rocketmq?**
   
   **I change the code like this according to some suggestions from the Internet:**
   ![image](https://user-images.githubusercontent.com/43952414/118462981-d59c4180-b731-11eb-8b4c-fe76d18f1f32.png)
   
   then the exporter works right.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-exporter] francisoliverlee commented on issue #56: ERROR Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception java.io.CharConversionException: Not an ISO 8859-1 character: [

Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #56:
URL: https://github.com/apache/rocketmq-exporter/issues/56#issuecomment-885055428


   check encoding on you machine or jvm . use utf-8 best


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org