默认
发表评论 6
想开发IM:买成品怕坑?租第3方怕贵?找开源自已撸?尽量别走弯路了... 找站长给点建议
im的http登录接口请求,概率性出现错误
阅读(29525) | 评论(6 收藏 淘帖
app登录的时候接口有报错,app会提示网络出错,log 如下
22-Apr-2020 17:03:32.927 警告 [http-nio-8080-exec-6] com.mchange.v2.c3p0.impl.NewPooledConnection.handleThrowable [c3p0] A PooledConnection that has already signalled a Connection error is still in use!
22-Apr-2020 17:03:32.927 警告 [http-nio-8080-exec-6] com.mchange.v2.c3p0.impl.NewPooledConnection.handleThrowable [c3p0] Another error has occurred [ com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Communications link failure during rollback(). Transaction resolution unknown. ] which will not be reported to listeners!
        com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Communications link failure during rollback(). Transaction resolution unknown.

即时通讯网 - 即时通讯开发者社区! 来源: - 即时通讯开发者社区!

上一篇:[已回复] 求助RowainbowChat服务端文件存储目录带空格字符的问题下一篇:[已解决] 求助基于RainbowChat定制的im,群聊修改出的一些问题
推荐方案
评论 6
{"success":false,"returnValue":"java.lang.NullPointerException:null\n  (DBShell.java:556 - com.eva.framework.dbpool.DBShell.update()\n  (DBShell.java:440 - com.eva.framework.dbpool.DBShell.update()\n  (MyControllerJSON.java:387 - com.x52im.rainbowchat.MyControllerJSON.authrizationLogin()\n  (MyControllerJSON.java:149 - com.x52im.rainbowchat.MyControllerJSON.dispatch()\n  (HttpController.java:139 - com.eva.framework.HttpController.process()\n  (HttpController.java:94 - com.eva.framework.HttpController.service()\n  (HttpServlet.java:741 - javax.servlet.http.HttpServlet.service()\n  (ApplicationFilterChain.java:231 - org.apache.catalina.core.ApplicationFilterChain.internalDoFilter()\n  (ApplicationFilterChain.java:166 - org.apache.catalina.core.ApplicationFilterChain.doFilter()\n  (WsFilter.java:53 - org.apache.tomcat.websocket.server.WsFilter.doFilter()\n  (ApplicationFilterChain.java:193 - org.apache.catalina.core.ApplicationFilterChain.internalDoFilter()\n  (ApplicationFilterChain.java:166 - org.apache.catalina.core.ApplicationFilterChain.doFilter()\n  (CORSFilter.java:169 - com.thetransactioncompany.cors.CORSFilter.doFilter()\n  (CORSFilter.java:232 - com.thetransactioncompany.cors.CORSFilter.doFilter()\n  (ApplicationFilterChain.java:193 - org.apache.catalina.core.ApplicationFilterChain.internalDoFilter()\n  (ApplicationFilterChain.java:166 - org.apache.catalina.core.ApplicationFilterChain.doFilter()\n  (StandardWrapperValve.java:202 - org.apache.catalina.core.StandardWrapperValve.invoke()\n  (StandardContextValve.java:96 - org.apache.catalina.core.StandardContextValve.invoke()\n  (AuthenticatorBase.java:541 - org.apache.catalina.authenticator.AuthenticatorBase.invoke()\n  (StandardHostValve.java:139 - org.apache.catalina.core.StandardHostValve.invoke()\n  (ErrorReportValve.java:92 - org.apache.catalina.valves.ErrorReportValve.invoke()\n  (AbstractAccessLogValve.java:688 - org.apache.catalina.valves.AbstractAccessLogValve.invoke()\n  (StandardEngineValve.java:74 - org.apache.catalina.core.StandardEngineValve.invoke()\n  (CoyoteAdapter.java:343 - org.apache.catalina.connector.CoyoteAdapter.service()\n  (Http11Processor.java:367 - org.apache.coyote.http11.Http11Processor.service()\n  (AbstractProcessorLight.java:65 - org.apache.coyote.AbstractProcessorLight.process()\n  (AbstractProtocol.java:868 - org.apache.coyote.AbstractProtocol$ConnectionHandler.process()\n  (NioEndpoint.java:1639 - org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun()\n  (SocketProcessorBase.java:49 - org.apache.tomcat.util.net.SocketProcessorBase.run()\n  (null:-1 - java.util.concurrent.ThreadPoolExecutor.runWorker()\n  (null:-1 - java.util.concurrent.ThreadPoolExecutor$Worker.run()\n  (TaskThread.java:61 - org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run()\n  (null:-1 - java.lang.Thread.run()\n"}
1)服务器操作系统是什么?版本是多少?
2)JDK版本是多少?
3)tomcat版本是多少?
4)Mysql的版本是多少?

你提供以下信息,我帮你诊断分析一下。

另外,核实一下授权,你公司叫什么?你说简称就好了。
1.winserver 2008 r2 sp1
2.jdk 1.8.0_241
3.tomcat 9.0.31
4.mysql 5.7.26
公司南京**鑫和
引用:kuma27 发表于 2020-04-23 08:52
1.winserver 2008 r2 sp1
2.jdk 1.8.0_241
3.tomcat 9.0.31

好的,公司没问题。
这些基础软件版本,看起没问题,大家都这差不多这样。

你的数据库跟tomcat是处于同一个局域网吗?你的网络拓扑情况,大概是什么样?

你要么让你跟我对接的同事,拉个qq讨论组,在qq上系统地讨论一下,我来帮你分析和诊断一下。
N/A

qq 微信上联系我,我告诉你如何解决问题。
打赏楼主 ×
使用微信打赏! 使用支付宝打赏!

返回顶部