{"action":"created","issue":{"url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/244","repository_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools","labels_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/244/comments","events_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/244/events","html_url":"https://github.com/Wechat-Group/weixin-java-tools/issues/244","id":233786204,"number":244,"title":"企业号下载多媒体文件报错！","user":{"login":"hahawang","id":5030332,"avatar_url":"https://avatars0.githubusercontent.com/u/5030332?v=3","gravatar_id":"","url":"https://api.github.com/users/hahawang","html_url":"https://github.com/hahawang","followers_url":"https://api.github.com/users/hahawang/followers","following_url":"https://api.github.com/users/hahawang/following{/other_user}","gists_url":"https://api.github.com/users/hahawang/gists{/gist_id}","starred_url":"https://api.github.com/users/hahawang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hahawang/subscriptions","organizations_url":"https://api.github.com/users/hahawang/orgs","repos_url":"https://api.github.com/users/hahawang/repos","events_url":"https://api.github.com/users/hahawang/events{/privacy}","received_events_url":"https://api.github.com/users/hahawang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-06T05:55:14Z","updated_at":"2017-06-06T09:04:47Z","closed_at":null,"body":"File file = wxCpService.mediaDownload(media_id);\r\n\r\n\r\ntype Exception report\r\n\r\nmessage Request processing failed; nested exception is java.lang.NullPointerException\r\n\r\ndescription The server encountered an internal error that prevented it from fulfilling this request.\r\n\r\nexception\r\n\r\norg.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException\r\n\torg.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)\r\n\torg.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)\r\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:624)\r\n\torg.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)\r\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:731)\r\n\torg.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\torg.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)\r\n\torg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\nroot cause\r\n\r\njava.lang.NullPointerException\r\n\tme.chanjar.weixin.common.util.http.apache.ApacheMediaDownloadRequestExecutor.execute(ApacheMediaDownloadRequestExecutor.java:43)\r\n\tme.chanjar.weixin.common.util.http.apache.ApacheMediaDownloadRequestExecutor.execute(ApacheMediaDownloadRequestExecutor.java:26)\r\n\tme.chanjar.weixin.cp.api.impl.AbstractWxCpServiceImpl.executeInternal(AbstractWxCpServiceImpl.java:533)\r\n\tme.chanjar.weixin.cp.api.impl.AbstractWxCpServiceImpl.execute(AbstractWxCpServiceImpl.java:494)\r\n\tme.chanjar.weixin.cp.api.impl.AbstractWxCpServiceImpl.mediaDownload(AbstractWxCpServiceImpl.java:196)\r\n\tcom.github.binarywang.demo.spring.controller.WxCpPortalController.downloadPic(WxCpPortalController.java:80)\r\n\tsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tjava.lang.reflect.Method.invoke(Method.java:498)\r\n\torg.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)\r\n\torg.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)\r\n\torg.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)\r\n\torg.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)\r\n\torg.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)\r\n\torg.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)\r\n\torg.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)\r\n\torg.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)\r\n\torg.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)\r\n\torg.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)\r\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:624)\r\n\torg.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)\r\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:731)\r\n\torg.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\torg.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)\r\n\torg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)"},"comment":{"url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/comments/306426472","html_url":"https://github.com/Wechat-Group/weixin-java-tools/issues/244#issuecomment-306426472","issue_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/244","id":306426472,"user":{"login":"crskyp","id":1946453,"avatar_url":"https://avatars1.githubusercontent.com/u/1946453?v=3","gravatar_id":"","url":"https://api.github.com/users/crskyp","html_url":"https://github.com/crskyp","followers_url":"https://api.github.com/users/crskyp/followers","following_url":"https://api.github.com/users/crskyp/following{/other_user}","gists_url":"https://api.github.com/users/crskyp/gists{/gist_id}","starred_url":"https://api.github.com/users/crskyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crskyp/subscriptions","organizations_url":"https://api.github.com/users/crskyp/orgs","repos_url":"https://api.github.com/users/crskyp/repos","events_url":"https://api.github.com/users/crskyp/events{/privacy}","received_events_url":"https://api.github.com/users/crskyp/received_events","type":"User","site_admin":false},"created_at":"2017-06-06T09:04:47Z","updated_at":"2017-06-06T09:04:47Z","body":"收到"}}
{"actor":{"display_login":"crskyp"}}