aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-main/src/main/java/org/sonar
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2020-04-13 09:13:40 -0500
committersonartech <sonartech@sonarsource.com>2020-04-17 20:03:43 +0000
commite014a2b976e733f33f369b868dbdf475b06650fe (patch)
treee4e34e9efcbd2efa9e47d8e2e0fcc8baabfe5794 /server/sonar-main/src/main/java/org/sonar
parent6cd0dc9e3241aa6bc97e2ae4f20d01e4bbd8ae56 (diff)
downloadsonarqube-e014a2b976e733f33f369b868dbdf475b06650fe.tar.gz
sonarqube-e014a2b976e733f33f369b868dbdf475b06650fe.zip
SONAR-13037 Stacktrace should always be available in logs
Diffstat (limited to 'server/sonar-main/src/main/java/org/sonar')
-rw-r--r--server/sonar-main/src/main/java/org/sonar/application/command/CeJvmOptions.java1
-rw-r--r--server/sonar-main/src/main/java/org/sonar/application/command/CommandFactoryImpl.java2
-rw-r--r--server/sonar-main/src/main/java/org/sonar/application/command/WebJvmOptions.java1
3 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-main/src/main/java/org/sonar/application/command/CeJvmOptions.java b/server/sonar-main/src/main/java/org/sonar/application/command/CeJvmOptions.java
index 920ca17b23b..4ddef8994a8 100644
--- a/server/sonar-main/src/main/java/org/sonar/application/command/CeJvmOptions.java
+++ b/server/sonar-main/src/main/java/org/sonar/application/command/CeJvmOptions.java
@@ -34,6 +34,7 @@ public class CeJvmOptions extends JvmOptions<CeJvmOptions> {
res.put("-Djava.awt.headless=", "true");
res.put("-Dfile.encoding=", "UTF-8");
res.put("-Djava.io.tmpdir=", tmpDir.getAbsolutePath());
+ res.put("-XX:-OmitStackTraceInFastThrow", "");
if (javaVersion.isAtLeastJava11()) {
// avoid illegal reflective access operations done by MyBatis
diff --git a/server/sonar-main/src/main/java/org/sonar/application/command/CommandFactoryImpl.java b/server/sonar-main/src/main/java/org/sonar/application/command/CommandFactoryImpl.java
index 2ad11760b3d..66c2f02672d 100644
--- a/server/sonar-main/src/main/java/org/sonar/application/command/CommandFactoryImpl.java
+++ b/server/sonar-main/src/main/java/org/sonar/application/command/CommandFactoryImpl.java
@@ -145,7 +145,7 @@ public class CommandFactoryImpl implements CommandFactory {
.setEsYmlSettings(new EsYmlSettings(settingsMap))
.setClusterName(settingsMap.get("cluster.name"))
.setHost(settingsMap.get("network.host"))
- .setPort(Integer.valueOf(settingsMap.get("transport.tcp.port")));
+ .setPort(Integer.parseInt(settingsMap.get("transport.tcp.port")));
return esInstallation;
}
diff --git a/server/sonar-main/src/main/java/org/sonar/application/command/WebJvmOptions.java b/server/sonar-main/src/main/java/org/sonar/application/command/WebJvmOptions.java
index 1230fba5eea..8815e0c2c96 100644
--- a/server/sonar-main/src/main/java/org/sonar/application/command/WebJvmOptions.java
+++ b/server/sonar-main/src/main/java/org/sonar/application/command/WebJvmOptions.java
@@ -33,6 +33,7 @@ public class WebJvmOptions extends JvmOptions<WebJvmOptions> {
res.put("-Djava.awt.headless=", "true");
res.put("-Dfile.encoding=", "UTF-8");
res.put("-Djava.io.tmpdir=", tmpDir.getAbsolutePath());
+ res.put("-XX:-OmitStackTraceInFastThrow", "");
if (javaVersion.isAtLeastJava11()) {
// avoid illegal reflective access operations done by MyBatis