开发者社区> 问答> 正文

开发的钉钉项目部署云服务器上获取不了suiteToken


获取suiteToken异常!
java.lang.reflect.UndeclaredThrowableException
        at $Proxy671.getSuiteToken(Unknown Source)
        at com.iyunwen.dingtalk.utils.DingTalkServiceUtil.getSuiteToken(DingTalkServiceUtil.java:23)
        at com.iyunwen.dingtalk.controller.DingTalkReceiveController.disposeSuiteTicket(DingTalkReceiveController.java:252)
        at com.iyunwen.dingtalk.controller.DingTalkReceiveController.disposeInformation(DingTalkReceiveController.java:145)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.iyunwen.mvc.Controller.invoke(Controller.java:180)
        at com.iyunwen.mvc.Dispatcher.service(Dispatcher.java:171)
        at com.iyunwen.mvc.DispatcherFilter.doFilter(DispatcherFilter.java:348)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:683)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: javax.net.ssl.SSLException: bad record MAC
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1605)
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1573)
        at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:971)
        at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:876)
        at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:750)
        at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
        ... 3 more
请求参数配置都是正确的,本地测试就可以请求,到云上就不行了。
请问这是什么原因呀?

展开
收起
y.you 2016-12-02 18:32:55 3724 0
2 条回答
写回答
取消 提交回答
  • 回 1楼识器的帖子
    有点困难,主要是没接触过服务端通信的问题,那请求的工具类都是Demo代码里封装好的。
    2016-12-02 23:24:42
    赞同 展开评论 打赏
  • javax.net.ssl.SSLException: bad record MAC 解决下这个问题
    2016-12-02 18:56:14
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
钉钉小程序——为工作方式插上翅膀 立即下载
钉钉客户端自动化的应用 立即下载
使命必达 —— 钉钉企业级 消息服务的机遇与挑战 立即下载