3.0.0 没出现这个问题,3.4.1 有时回报这个异常
java.lang.Exception: Apparent connection leak detected
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:128)
at org.b3log.latke.repository.jdbc.util.Connections.getConnection(Connections.java:190)
at org.b3log.latke.repository.jdbc.JdbcTransaction.<init>(JdbcTransaction.java:51)
at org.b3log.latke.repository.jdbc.JdbcRepository.beginTransaction(JdbcRepository.java:801)
at org.b3log.latke.repository.AbstractRepository.beginTransaction(AbstractRepository.java:212)
at org.b3log.symphony.service.ArticleMgmtService.lambda$0(ArticleMgmtService.java:335)
at java.lang.Thread.run(Thread.java:748)
[WARN ]-[2018-11-09 17:54:19]-[com.zaxxer.hikari.pool.ProxyLeakTask:84]: Connection leak detection triggered for com.mysql.cj.jdbc.ConnectionImpl@7c413af9 on thread Thread-80, stack trace follows
java.lang.Exception: Apparent connection leak detected
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:128)
at org.b3log.latke.repository.jdbc.util.Connections.getConnection(Connections.java:190)
at org.b3log.latke.repository.jdbc.JdbcTransaction.<init>(JdbcTransaction.java:51)
at org.b3log.latke.repository.jdbc.JdbcRepository.beginTransaction(JdbcRepository.java:801)
at org.b3log.latke.repository.AbstractRepository.beginTransaction(AbstractRepository.java:212)
at org.b3log.symphony.service.ArticleMgmtService.lambda$0(ArticleMgmtService.java:335)
at java.lang.Thread.run(Thread.java:748)
[ERROR]-[2018-11-09 17:57:13]-[org.b3log.latke.servlet.HttpControl:102]: Request [
method=GET,
contentType=null,
characterEncoding=UTF-8,
local=[
addr=127.0.0.1,
port=8080,
name=localhost],
headers=[
connection=close
user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
accept=*/*
accept-language=zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
accept-encoding=gzip, deflate, br
cookie=JSESSIONID=C40F90903ADD85CFA6E30B5FBFADE8EB; sym-ce=5c682a66213d9d4dfdb19c5948a4d413e2fdda09201e5c0a5688f7c829d1e74428e55086370891a751a4003bccba330560c12224d89b55e215e6a795e89aa69b68a33144667b39cfc28a0a66e4aedd0ca05bace8f25391bd61c06cbe4031dabe7c905096d81b8c0440e4f6db918297c5d86d6c853ea02c6b1e169f3374e929bd565513027550a29bedc6cb28b188adbb
]
] processing failed
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
Type :quit<Enter> to exit Vim
] processing failed
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.b3log.latke.servlet.handler.MethodInvokeHandler.handle(MethodInvokeHandler.java:57)
at org.b3log.latke.servlet.HttpControl.nextHandler(HttpControl.java:97)
at org.b3log.latke.servlet.handler.AdviceHandler.handle(AdviceHandler.java:106)
at org.b3log.latke.servlet.HttpControl.nextHandler(HttpControl.java:97)
at org.b3log.latke.servlet.handler.ArgsHandler.handle(ArgsHandler.java:61)
at org.b3log.latke.servlet.HttpControl.nextHandler(HttpControl.java:97)
at org.b3log.latke.servlet.handler.RequestDispatchHandler.handle(RequestDispatchHandler.java:86)
at org.b3log.latke.servlet.HttpControl.nextHandler(HttpControl.java:97)
at org.b3log.latke.servlet.handler.RequestPrepareHandler.handle(RequestPrepareHandler.java:46)
at org.b3log.latke.servlet.HttpControl.nextHandler(HttpControl.java:97)
at org.b3log.latke.servlet.handler.StaticResourceHandler.handle(StaticResourceHandler.java:119)
at org.b3log.latke.servlet.HttpControl.nextHandler(HttpControl.java:97)
at org.b3log.latke.servlet.DispatcherServlet.service(DispatcherServlet.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.b3log.latke.servlet.filter.EncodingFilter.doFilter(EncodingFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:333)
at org.apache.catalina.connector.OutputBuffer.appendByteArray(OutputBuffer.java:728)
at org.apache.catalina.connector.OutputBuffer.append(OutputBuffer.java:657)
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:368)
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:346)
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:96)
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
at org.apache.commons.io.IOUtils.write(IOUtils.java:1687)
at org.b3log.symphony.processor.FileUploadProcessor.getFile(FileUploadProcessor.java:138)