开发者社区> 问答> 正文

windows运行正常,linux下报错

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后程序居然可以运行了,但是更新代码后又报这个错了,

展开
收起
zippo_正品 2016-06-20 13:47:24 5260 0
2 条回答
写回答
取消 提交回答
  • Rewindows运行正常,linux下报错
    也有可能是大小写的问题
    2016-06-20 14:48:07
    赞同 展开评论 打赏
  • 先ping 一下 oapi.dingtalk.com 是否通,看你的服务器可能无法连接外网
    2016-06-20 14:43:47
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
从Linux系统内核层面来解决实际问题的实战经验 立即下载
Linux系统通过fail2ban对暴力破解进行防护 立即下载
ECS运维指南之Windows系统诊断 立即下载