zkang

Results 2 issues of zkang

Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Unable to...

版本:4.4.0 环境:centos 7 java 8 报错场景复现: **一.xlsx文件报错(必定报错)**: 1.填写文件url(该url确定是没问题的,可以正常下载到文件) ![Image](https://github.com/user-attachments/assets/d116157f-5d8b-4727-b4af-38e26eef1b33) 2.点击预览后跳转到这个页面 ![Image](https://github.com/user-attachments/assets/f41da04d-8165-439b-a813-47ec24790fec) 3.点击“跳转HTML预览”后,页面提示报错 ![Image](https://github.com/user-attachments/assets/1003d2ac-43f6-4440-94ba-c0b7962887a9) 4.查看log日志: ![Image](https://github.com/user-attachments/assets/3b415f95-5b96-41b8-9b07-0bf8e919fdd9) 附上xlsx原文件: [发货信息上传模板.xlsx](https://github.com/user-attachments/files/18473167/default.xlsx) **二.PDF文件报错(必定报错)**: 1.填写文件url(该url确定是没问题的,可以正常访问到pdf文件) ![Image](https://github.com/user-attachments/assets/15edd57b-8233-439d-9cba-d8feee2b2b6c) 2.点击预览,页面提示报错: ![Image](https://github.com/user-attachments/assets/ac382abf-e62d-45a5-a339-4cd52c6ad0fc) 3.查看log日志: ![Image](https://github.com/user-attachments/assets/494b4759-3180-4c2c-b2db-f1057835817f) 由于pdf带有敏感信息我就不贴上来了 还有一个奇怪的现象: po-bj-jtzysc-20241107006833.pdf这个文件我随意修改一下文件名后又可以正常预览了 ![Image](https://github.com/user-attachments/assets/f8d133fd-c5b1-46b8-8610-7a3fd45cdc21) 对于以上问题帮忙解惑一下,有的文件可以正常预览但是有的文件就会出现以上报错情况