博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
sonarqube 启动不了,异常提示:远程主机强迫关闭了一个现有的连接。
阅读量:1822 次
发布时间:2019-04-25

本文共 1393 字,大约阅读时间需要 4 分钟。

启动sonarqube 6.7.1 报下面的错误:

2018.01.24 10:10:56 WARN  app[][o.e.t.n.Netty4Transport] exception caught on transport layer [[id: 0x146de8cb, L:/127.0.0.1:57099 - R:/127.0.0.1:9001]], closing connection

java.io.IOException: 远程主机强迫关闭了一个现有的连接。
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:433)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1100)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:372)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)

at java.lang.Thread.run(Unknown Source)

根据sonar.properties里面的注释,mysql版本不能低于5.6,

而我装的mysql版本5.5,升级mysql到5.7版本,问题解决。

另外如果联接数据库的帐号密码错误,也会报这个错。

你可能感兴趣的文章
LeetCode 268. 丢失的数字
查看>>
LeetCode 231. 2 的幂
查看>>
LeetCode 191. 位1的个数
查看>>
LeetCode 476. 数字的补数
查看>>
LeetCode 342. 4的幂
查看>>
El表达式
查看>>
springboot banner打印,控制台springboot图案怎么来的
查看>>
linux shell內建命令区分--type
查看>>
java--打印当前项目加载的jar包--getResources
查看>>
mybatis 学习记录(3)—— 动态 sql
查看>>
mybatis 学习记录(4.1)—— 级联查询(无 association 和 collection)
查看>>
面试官:说说快速失败和安全失败是什么
查看>>
Java的final和static区别
查看>>
Clone使用方法详解
查看>>
Java clone() 浅克隆与深度克隆
查看>>
Java中对象与引用
查看>>
JDK 1.7 Integer.parseInt 源码解析
查看>>
Java单例模式
查看>>
三种方法拆分字符串
查看>>
贪心算法基本思想和典型例题
查看>>