程序员王小瑞 2023-01-17 16:18 采纳率: 19.6%
浏览 38
已结题

Java线上报错,mysql数据库

线上报错:
{timestamp: "2023-01-17 14:29:14", status: 500, error: "Internal Server Error",…}
error: "Internal Server Error"
message: "status 500 reading ApiPlatformService#createQr(QRCodeVO); content:↵{"timestamp":"20230117 14:29:14844","status":500,"error":"Internal Server Error","message":"nested exception is org.apache.ibatis.exceptions.PersistenceException: \n### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure\n\nThe last packet successfully received from the server was 2 milliseconds ago. The last packet sent successfully to the server was 2 milliseconds ago.\n### The error may exist in URL [jar:file:/app.jar!/BOOT-INF/classes!/mapper/dict/SysDictMapper.xml]\n### The error may involve com.hyzk.platform.api.controller.dict.dao.SysDictMapper.get\n### The error occurred while executing a query\n### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure\n\nThe last packet successfully received from the server was 2 milliseconds ago. The last packet sent successfully to the server was 2 milliseconds ago.","path":"/file/createQcEqument"}"
path: "/incoming/confirm-receipt"
status: 500
timestamp: "2023-01-17 14:29:14"
摸不着头脑 不知道是因为啥

  • 写回答

4条回答 默认 最新

  • 於黾 2023-01-17 16:25
    关注

    Failed to obtain JDBC Connection
    数据库没有连上,检查字符串是否正确,用工具测试数据库到底能不能连上,开没开,防火墙拦没拦

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

问题事件

  • 系统已结题 1月25日
  • 已采纳回答 1月17日
  • 创建了问题 1月17日

悬赏问题

  • ¥15 本地测试网站127.0.0.1 已拒绝连接,如何解决?(标签-ubuntu)
  • ¥50 Qt在release捕获异常并跟踪堆栈(有Demo,跑一下环境再回答)
  • ¥30 python,LLM 文本提炼
  • ¥15 关于将inet引入的相关问题
  • ¥15 关于一个倒计时的操作和显示设计
  • ¥15 提问STK的问题,哪位航天领域的同学会啊
  • ¥15 苹果系统的mac m1芯片的笔记本使用ce修改器使用不了
  • ¥15 单相逆变的电压电流双闭环中进行低通滤波PID算法改进
  • ¥15 关于#java#的问题,请各位专家解答!
  • ¥15 如何卸载arcgis 10.1 data reviewer for desktop