声纳发射错误

时间:2014-12-15 16:16:54

标签: sonarqube sonar-runner

当我尝试使用mysql启动声纳时,我遇到以下错误。我是否需要修改sonar.properties文件中有关弹性配置的任何细节?

之前有没有人遇到过类似的错误?

014.12.15 21:38:49 WARN  sea[o.e.transport.netty]  [sonar-1418659692862] exception caught on transport layer [[id: ,9001]], closing connection
java.io.StreamCorruptedException: invalid internal transport message format
at    org.     elasticsearch.transport.netty.SizeHeaderFrameDecoder.decode(SizeHeaderFrameDecoder.java:46) ~[elasticsearch-1.1.2.jar:na]
at    org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425) ~[elasticsearch-1.1.2.jar:na] 

2 个答案:

答案 0 :(得分:1)

sonar.properties,您有:

#--------------------------------------------------------------------------------------------------
# SEARCH INDEX

# Elasticsearch is used to facilitate fast and accurate information retrieval.
# It is executed in a dedicated Java process.

# JVM options. Note that enabling the HotSpot Server VM mode (-server) is recommended.
#sonar.search.javaOpts=-Xmx256m -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true \
#  -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 \
#  -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError \
#  -Djava.awt.headless=true

# Elasticsearch port. Default is 9001. Use 0 to get a free port.
# This port must be private and must not be exposed to the Internet.
#sonar.search.port=9001

取消注释sonar.search.port并将其设置为0.

答案 1 :(得分:0)

  1. 检查端口可用性。
  2. 尝试使用新的MySQL数据库实例。