org.apache.jasper.JasperException: An exception occurred processing JSP page /views/msm/course/index.jsp at line 12
9: <link rel="stylesheet" href="${ctx}/css/main.css"/>
10: <script type="text/javascript">
11: //在此拿到权限验证配置所需要的信息
12: var _config = <%= com.siqi.timetable.dingd.AuthHelper.getConfig(request)%>;
13: </script>
14: <script type="text/javascript" src="${ctx}/js/dd_config.js"></script>
15: <script type="text/javascript" src="${ctx}/js/msm/course.js"></script>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:574)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
root cause
java.lang.reflect.UndeclaredThrowableException
com.sun.proxy.$Proxy23.getCorpToken(Unknown Source)
com.siqi.timetable.dingd.AuthHelper.getAccessToken(AuthHelper.java:36)
com.siqi.timetable.dingd.AuthHelper.getConfig(AuthHelper.java:116)
org.apache.jsp.views.msm.course.index_jsp._jspService(index_jsp.java:188)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
root cause
java.net.UnknownHostException: oapi.dingtalk.com
java.net.InetAddress.getAllByName0(InetAddress.java:1280)
java.net.InetAddress.getAllByName(InetAddress.java:1192)
java.net.InetAddress.getAllByName(InetAddress.java:1126)
java.net.InetAddress.getByName(InetAddress.java:1076)
com.ning.http.client.NameResolver$JdkNameResolver.resolve(NameResolver.java:28)
com.ning.http.client.providers.netty.request.NettyRequestSender.remoteAddress(NettyRequestSender.java:358)
com.ning.http.client.providers.netty.request.NettyRequestSender.connect(NettyRequestSender.java:369)
com.ning.http.client.providers.netty.request.NettyRequestSender.sendRequestWithNewChannel(NettyRequestSender.java:283)
com.ning.http.client.providers.netty.request.NettyRequestSender.sendRequestWithCertainForceConnect(NettyRequestSender.java:142)
com.ning.http.client.providers.netty.request.NettyRequestSender.sendRequest(NettyRequestSender.java:117)
com.ning.http.client.providers.netty.NettyAsyncHttpProvider.execute(NettyAsyncHttpProvider.java:87)
com.ning.http.client.AsyncHttpClient.executeRequest(AsyncHttpClient.java:506)
com.dingtalk.open.client.transport.HttpRequestHelper.httpRequestJson(HttpRequestHelper.java:50)
com.dingtalk.open.client.transport.FlowControlInvoke$2.run(FlowControlInvoke.java:136)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
在windows下程序运行正常,在linux下报错,开始以为是openJDK的问题,换成oraclJDK后程序居然可以运行了,但是更新代码后又报这个错了,
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。