SonarQube 6.2 installation error on Windows - windows

I am trying to install SonarQube 6.2 on Windows 10.
I am getting this error when I run startSOnar.bat:
2016.12.27 14:31:27 INFO web[][o.s.p.ProcessEntryPoint] Starting web
2016.12.27 14:31:28 INFO web[][o.s.s.a.TomcatContexts] Webapp directory: C:\Sonar\sonarqube-6.2\web
2016.12.27 14:31:29 INFO web[][o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-0.0.0.0-9000"]
2016.12.27 14:31:29 INFO web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2016.12.27 14:31:34 INFO web[][o.e.plugins] [Cyborg X] modules [], plugins [], sites []
2016.12.27 14:31:36 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2016.12.27 14:31:36 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 6.2 / 4a28f29f95254b58f3cf0a0871bc632e998403f5
2016.12.27 14:31:37 INFO web[][o.s.s.p.d.EmbeddedDatabase] Starting embedded database on port 9092 with url jdbc:h2:tcp://localhost:9092/sonar
2016.12.27 14:31:37 INFO web[][o.s.s.p.d.EmbeddedDatabase] Embedded database started. Data stored in: C:\Sonar\sonarqube-6.2\data
2016.12.27 14:31:37 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://localhost:9092/sonar
2016.12.27 14:31:38 WARN web[][o.s.d.DatabaseChecker] H2 database should be used for evaluation purpose only
2016.12.27 14:31:41 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: C:\Sonar\sonarqube-6.2
2016.12.27 14:31:41 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin C# / 5.5.1.522 / 9a3e26d7843b226a6772b5103e72120c3003d958
2016.12.27 14:31:41 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Git / 1.2 / a713dd64daf8719ba4e7f551f9a1966c62690c17
2016.12.27 14:31:41 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Java / 4.3.0.7717 / de5bafc9f2e40a91d419c774fffc6d6061ba8da5
2016.12.27 14:31:41 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin JavaScript / 2.18.0.3454 / c276cc8dfeb99da907f2ec76ede9f59836da2bc9
2016.12.27 14:31:41 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SVN / 1.3 / aff503d48bc77b07c2b62abf93249d0a20bd355c
2016.12.27 14:31:43 INFO web[][o.s.s.p.w.RailsAppsDeployer] Deploying Ruby on Rails applications
2016.12.27 14:31:46 INFO web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2016.12.27 14:31:48 INFO web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2016.12.27 14:31:48 INFO web[][o.s.s.s.RegisterMetrics] Register metrics
2016.12.27 14:31:49 INFO web[][o.s.s.r.RegisterRules] Register rules
2016.12.27 14:31:50 INFO web[][o.s.s.n.NotificationDaemon] Notification service stopped
2016.12.27 14:31:51 INFO web[][o.s.s.p.d.EmbeddedDatabase] Embedded database stopped
2016.12.27 14:31:51 ERROR web[][o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.web.PlatformServletContextListener
java.lang.IllegalArgumentException: Severity of rule [repository=squid, key=S00105] is not correct: MİNOR
at org.sonar.api.internal.google.common.base.Preconditions.checkArgument(Preconditions.java:145)
at org.sonar.api.server.rule.RulesDefinition$NewRule.setSeverity(RulesDefinition.java:712)
at org.sonar.plugins.java.JavaRulesDefinition.addMetadata(JavaRulesDefinition.java:102)
at org.sonar.plugins.java.JavaRulesDefinition.ruleMetadata(JavaRulesDefinition.java:94)
at org.sonar.plugins.java.JavaRulesDefinition.newRule(JavaRulesDefinition.java:83)
at org.sonar.plugins.java.JavaRulesDefinition.define(JavaRulesDefinition.java:59)
at org.sonar.server.rule.RuleDefinitionsLoader.load(RuleDefinitionsLoader.java:52)
at org.sonar.server.rule.RegisterRules.start(RegisterRules.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
at org.sonar.core.platform.ComponentContainer$1.start(ComponentContainer.java:320)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
at org.picocontainer.behaviors.Stored.start(Stored.java:110)
at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:141)
at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:88)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:40)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:70)
at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:46)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:67)
at org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:201)
at org.sonar.server.platform.Platform.doStart(Platform.java:114)
at org.sonar.server.platform.Platform.doStart(Platform.java:99)
at org.sonar.server.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2016.12.27 14:31:51 ERROR web[][o.a.c.c.StandardContext] One or more listeners failed to start. Full details will be found in the appropriate container log file
2016.12.27 14:31:51 ERROR web[][o.a.c.c.StandardContext] Context [] startup failed due to previous errors
2016.12.27 14:31:51 INFO web[][o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-0.0.0.0-9000"]
2016.12.27 14:31:51 INFO web[][o.s.s.a.TomcatAccessLog] Web server is started
2016.12.27 14:31:51 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2016.12.27 14:31:51 WARN web[][o.s.p.ProcessEntryPoint] Fail to start web
java.lang.IllegalStateException: Webapp did not start
at org.sonar.server.app.EmbeddedTomcat.isUp(EmbeddedTomcat.java:84)
at org.sonar.server.app.WebServer.isUp(WebServer.java:46)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:105)
at org.sonar.server.app.WebServer.main(WebServer.java:67)
2016.12.27 14:31:51 INFO web[][o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-0.0.0.0-9000"]
2016.12.27 14:31:52 INFO web[][o.a.c.h.Http11NioProto`enter code here`col] Stopping ProtocolHandler ["http-nio-0.0.0.0-9000"]
2016.12.27 14:31:52 INFO web[][o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-0.0.0.0-9000"]
2016.12.27 14:31:52 INFO web[][o.s.s.a.TomcatAccessLog] Web server is stopped

There are 2 solutions:
You can edit your Db configuration opening cloesed parameter on ‪ your_basesonar_dir\conf\sonar.properties.For example open Mysql confs to use as a DB.
Or you can set "sonar.web.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en" parameter on your_basesonar_dir\conf\sonar.properties to avoid language corruption.

The error is quite explicit :
java.lang.IllegalArgumentException: Severity of rule [repository=squid, key=S00105] is not correct: MİNOR.
The severity should be MINOR, not MİNOR (wrong "I").
As you're using H2, you should try to remove the data folder and restart the server.

Add jvm parameter to start in english (to prevent uppercase turkish character issues)
sonar.web.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en

Related

Issues with SonarQube 6.2, sonar-ldap-plugin-2.1.0.507 and Active Directory

Attempting to get LDAP working with SonarQube 6.2 and LDAP 2.1. I have verified through various tools etc. that I can connect to LDAP on the server. These include LDAPExplorerTool2. I did have the old Active Directory plugin working on the same server with SonarQube prior to V6 but am forced to move to the LDAP plugin as the Active Directory plugin no longer works. Here's my config section in sonar.properties
Sonar.Properties
sonar.security.realm=LDAP
ldap.realm=mydomain.com
ldap.bindDn=mydomain.com/Service Accounts/username username
ldap.bindpassword=password
ldap.user.baseDn=OU=Global-Users,DC=mydomain,DC=com
ldap.user.request=(&(objectCategory=user)(sAMAccountName={login}))
sonar.authenticator.downcase = true
ldap.user.realNameAttribute=cn
Note: The LDAP information used is currently utilized for LDAP integration with Crucible, SVN, JIRA etc.
sonar.log
Wrapper Started as Service
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2017.01.12 12:16:07 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory F:\SonarQubeServer\sonarqube-6.2\temp
2017.01.12 12:16:07 INFO app[][o.s.p.m.JavaProcessLauncher] Launch process[es]: F:\Program Files\Java\bin\java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djna.nosys=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=F:\SonarQubeServer\sonarqube-6.2\temp -javaagent:F:\Program Files\Java\lib\management-agent.jar -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer F:\SonarQubeServer\sonarqube-6.2\temp\sq-process30466285842436995properties
2017.01.12 12:16:30 INFO app[][o.s.p.m.Monitor] Process[es] is up
2017.01.12 12:16:30 INFO app[][o.s.p.m.JavaProcessLauncher] Launch process[web]: F:\Program Files\Java\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -server -Djava.io.tmpdir=F:\SonarQubeServer\sonarqube-6.2\temp -javaagent:F:\Program Files\Java\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;F:\SonarQubeServer\sonarqube-6.2\lib\jdbc\mssql\sqljdbc42.jar org.sonar.server.app.WebServer F:\SonarQubeServer\sonarqube-6.2\temp\sq-process7120673276189616218properties
2017.01.12 12:17:23 INFO app[][o.s.p.m.Monitor] Process[web] is up
2017.01.12 12:17:23 INFO app[][o.s.p.m.JavaProcessLauncher] Launch process[ce]: F:\Program Files\Java\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=F:\SonarQubeServer\sonarqube-6.2\temp -javaagent:F:\Program Files\Java\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;./lib/ce/*;F:\SonarQubeServer\sonarqube-6.2\lib\jdbc\mssql\sqljdbc42.jar org.sonar.ce.app.CeServer F:\SonarQubeServer\sonarqube-6.2\temp\sq-process4410592849159288958properties
2017.01.12 12:17:36 INFO app[][o.s.p.m.Monitor] Process[ce] is up
2017.01.12 12:17:36 INFO app[][o.s.application.App] SonarQube is up
web.log
2017.01.12 12:16:33 INFO web[][o.s.p.ProcessEntryPoint] Starting web
2017.01.12 12:16:34 INFO web[][o.s.s.a.TomcatContexts] Webapp directory: F:\SonarQubeServer\sonarqube-6.2\web
2017.01.12 12:16:35 INFO web[][o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-0.0.0.0-80"]
2017.01.12 12:16:35 INFO web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2017.01.12 12:16:38 INFO web[][o.e.plugins] [Aliyah Bishop] modules [], plugins [], sites []
2017.01.12 12:16:40 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2017.01.12 12:16:40 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 6.2 / 4a28f29f95254b58f3cf0a0871bc632e998403f5
2017.01.12 12:16:40 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:sqlserver://localhost;databaseName=SonarQube
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: F:\SonarQubeServer\sonarqube-6.2
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin C# / 5.5.2.537 / a4f663cf02cdcc88c221aaae7e7156fa4d176c07
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin CSS / Less / 2.4 / 5ac876d69f61a2c5fce597f3243bae45b8cd8f5f
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Code Smells / 3.0.0
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin JSON / 2.2 / 0
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Java / 4.4.0.8066 / 2703cce280bb210cffe8f8ac918df5f2c4d770f2
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin JavaScript / 2.19.0.3866 / 97832288f366dae27584956414242e18dc96bca3
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin LDAP / 2.1.0.507 / 60b4a72c2042d0cad5233be63d0456815c9691e2
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Motion Chart / 1.7 / e9c4a5c95c75564b3c3b5a887b63ef50fc59a156
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SVN / 1.3 / aff503d48bc77b07c2b62abf93249d0a20bd355c
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Web / 2.5.0.476 / 636872f5d37fa7a440fe07d08d504e1a881225e5
2017.01.12 12:16:46 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin XML / 1.4.1 / d2c0388961fcbe78ac597ca3fb3e262d3e733988
2017.01.12 12:16:47 DEBUG web[][o.s.c.p.PluginLoader] API compatibility mode is enabled on plugin XML [xml] (built with API lower than 5.2)
2017.01.12 12:16:47 DEBUG web[][o.s.c.p.PluginLoader] API compatibility mode is enabled on plugin Motion Chart [motionchart] (built with API lower than 5.2)
2017.01.12 12:16:47 DEBUG web[][o.s.c.p.PluginLoader] API compatibility mode is enabled on plugin SVN [scmsvn] (built with API lower than 5.2)
2017.01.12 12:16:48 INFO web[][o.s.s.p.w.RailsAppsDeployer] Deploying Ruby on Rails applications
2017.01.12 12:16:48 INFO web[][o.s.s.p.w.RailsAppsDeployer] Deploying app: motionchart
2017.01.12 12:16:48 DEBUG web[][o.s.c.i.DefaultI18n] Loaded 2159 properties from l10n bundles
2017.01.12 12:16:48 INFO web[][o.s.d.c.MssqlCharsetHandler] Verify that database collation is case-sensitive and accent-sensitive
2017.01.12 12:16:51 INFO web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2017.01.12 12:16:51 DEBUG web[][o.s.a.r.Languages] Available languages:
2017.01.12 12:16:51 DEBUG web[][o.s.a.r.Languages] * C# => "cs"
2017.01.12 12:16:51 DEBUG web[][o.s.a.r.Languages] * CSS => "css"
2017.01.12 12:16:51 DEBUG web[][o.s.a.r.Languages] * Less => "less"
2017.01.12 12:16:51 DEBUG web[][o.s.a.r.Languages] * Java => "java"
2017.01.12 12:16:51 DEBUG web[][o.s.a.r.Languages] * Web => "web"
2017.01.12 12:16:51 DEBUG web[][o.s.a.r.Languages] * XML => "xml"
2017.01.12 12:16:51 DEBUG web[][o.s.a.r.Languages] * JSON => "json"
2017.01.12 12:16:51 DEBUG web[][o.s.a.r.Languages] * JavaScript => "js"
2017.01.12 12:16:51 INFO web[][org.sonar.INFO] Security realm: LDAP
2017.01.12 12:16:51 INFO web[][o.s.p.l.LdapSettingsManager] Auto discovery mode
2017.01.12 12:16:51 INFO web[][o.s.p.l.LdapSettingsManager] Detected server: ldap://myserver.mydomain.com:389
2017.01.12 12:16:51 INFO web[][o.s.p.l.LdapSettingsManager] User mapping: LdapUserMapping{baseDn=OU=Global-Users,DC=mydomain,DC=com, request=(&(objectCategory=user)(sAMAccountName={0})), realNameAttribute=cn, emailAttribute=mail}
2017.01.12 12:16:51 INFO web[][o.s.p.l.LdapSettingsManager] Groups will not be synchronized, because property 'ldap.group.baseDn' is empty.
2017.01.12 12:16:51 DEBUG web[][o.s.p.l.LdapContextFactory] Initializing LDAP context {java.naming.provider.url=ldap://myserver.mydomain.com:389, java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, java.naming.security.principal=mydomain.com/Service Accounts/username username, com.sun.jndi.ldap.connect.pool=true, java.naming.security.authentication=simple, java.naming.security.sasl.realm=mydomain.com, java.naming.referral=follow}
2017.01.12 12:16:53 INFO web[][o.s.p.l.LdapContextFactory] Test LDAP connection on ldap://myserver.mydomain.com:389: OK
2017.01.12 12:16:53 INFO web[][org.sonar.INFO] Security realm started
2017.01.12 12:16:53 INFO web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2017.01.12 12:16:54 INFO web[][o.s.s.s.RegisterMetrics] Register metrics
2017.01.12 12:16:54 DEBUG web[][o.s.s.s.RegisterMetrics] Register metrics (done) | time=189ms
2017.01.12 12:16:54 INFO web[][o.s.s.r.RegisterRules] Register rules
2017.01.12 12:17:02 DEBUG web[][o.s.s.r.RegisterRules] Register rules (done) | time=7631ms
2017.01.12 12:17:02 INFO web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles
2017.01.12 12:17:05 DEBUG web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles (done) | time=2804ms
2017.01.12 12:17:05 INFO web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates
2017.01.12 12:17:05 DEBUG web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates (done) | time=7ms
2017.01.12 12:17:05 INFO web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2017.01.12 12:17:05 INFO web[][o.s.s.e.IndexerStartupTask] Index authorization
2017.01.12 12:17:05 INFO web[][o.s.s.e.IndexerStartupTask] Index issues
2017.01.12 12:17:05 INFO web[][o.s.s.e.IndexerStartupTask] Index tests
2017.01.12 12:17:05 INFO web[][o.s.s.e.IndexerStartupTask] Index users
2017.01.12 12:17:05 INFO web[][o.s.s.e.IndexerStartupTask] Index views
2017.01.12 12:17:05 INFO web[][o.s.s.e.IndexerStartupTask] Index project measures
2017.01.12 12:17:05 DEBUG web[][o.s.s.p.ServerLifecycleNotifier] Notify ServerStartHandler handlers...
2017.01.12 12:17:05 DEBUG web[][o.s.s.p.ServerLifecycleNotifier] Notify ServerStopHandler handlers...
2017.01.12 12:17:05 INFO web[][jruby.rack] jruby 1.7.9 (ruby-1.8.7p370) 2013-12-06 87b108a on Java HotSpot(TM) 64-Bit Server VM 1.8.0_92-b14 [Windows Server 2008 R2-amd64]
2017.01.12 12:17:05 INFO web[][jruby.rack] using a shared (threadsafe!) runtime
2017.01.12 12:17:23 INFO web[][jruby.rack] keeping custom (config.logger) Rails logger instance
2017.01.12 12:17:23 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter#7a466ac8 [pattern=org.sonar.api.web.ServletFilter$UrlPattern#2032ab0]
2017.01.12 12:17:23 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter#3c2de9ba [pattern=org.sonar.api.web.ServletFilter$UrlPattern#7574d4dd]
2017.01.12 12:17:23 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter#56dc8673 [pattern=org.sonar.api.web.ServletFilter$UrlPattern#5efc52b]
2017.01.12 12:17:23 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction#439ebae8 [pattern=org.sonar.api.web.ServletFilter$UrlPattern#38a3f92d]
2017.01.12 12:17:23 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction#74b498ab [pattern=org.sonar.api.web.ServletFilter$UrlPattern#42cb352f]
2017.01.12 12:17:23 INFO web[][o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-0.0.0.0-80"]
2017.01.12 12:17:23 INFO web[][o.s.s.a.TomcatAccessLog] Web server is started
2017.01.12 12:17:23 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 80
2017.01.12 12:34:53 DEBUG web[AVmTvuWHWxcly44dAAAJ][o.s.p.l.LdapUsersProvider] Requesting details for user myuser
2017.01.12 12:34:53 DEBUG web[AVmTvuWHWxcly44dAAAJ][o.s.p.l.LdapSearch] Search: LdapSearch{baseDn=OU=Global-Users,DC=mydomain,DC=com, scope=subtree, request=(&(objectCategory=user)(sAMAccountName={0})), parameters=[myuser], attributes=[mail, cn]}
2017.01.12 12:34:53 ERROR web[AVmTvuWHWxcly44dAAAJ][o.s.s.a.RealmAuthenticator] Error during authentication
java.lang.NullPointerException: null
at org.sonar.plugins.ldap.LdapSearch.find(LdapSearch.java:125)
at org.sonar.plugins.ldap.LdapSearch.findUnique(LdapSearch.java:142)
at org.sonar.plugins.ldap.LdapUsersProvider.getUserDetails(LdapUsersProvider.java:80)
at org.sonar.plugins.ldap.LdapUsersProvider.doGetUserDetails(LdapUsersProvider.java:58)
at org.sonar.server.authentication.RealmAuthenticator.doAuthenticate(RealmAuthenticator.java:89)
at org.sonar.server.authentication.RealmAuthenticator.authenticate(RealmAuthenticator.java:83)
at org.sonar.server.authentication.CredentialsAuthenticator.authenticate(CredentialsAuthenticator.java:56)
at org.sonar.server.authentication.CredentialsAuthenticator.authenticate(CredentialsAuthenticator.java:45)
at org.sonar.server.authentication.ws.LoginAction.authenticate(LoginAction.java:91)
at org.sonar.server.authentication.ws.LoginAction.doFilter(LoginAction.java:76)
at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:126)
at org.sonar.server.platform.web.MasterServletFilter.doFilter(MasterServletFilter.java:95)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:83)
at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.sonar.server.platform.web.SecurityServletFilter.doHttpFilter(SecurityServletFilter.java:73)
at org.sonar.server.platform.web.SecurityServletFilter.doFilter(SecurityServletFilter.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.sonar.server.platform.web.RoutesFilter.doFilter(RoutesFilter.java:55)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.sonar.server.platform.web.requestid.RequestIdFilter.doFilter(RequestIdFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.sonar.server.platform.web.RootFilter.doFilter(RootFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at ch.qos.logback.access.tomcat.LogbackValve.invoke(LogbackValve.java:256)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
I have tried a few different things, including specifying an LDAP URL to a known LDAP server (one of the auto discovered ones). I tried specifying the port as 3268 and 389 for these servers but it has not made any difference.
I also tried running the LDAP query (&(objectCategory=user)(sAMAccountName=myuser)) on LDAP Explorer and it returns data.
java.lang.NullPointerException: null
at org.sonar.plugins.ldap.LdapSearch.find(LdapSearch.java:125)
Looking at the source line 125 of LDAPSearch is
context = contextFactory.createBindContext();
The complete code snippet is
public NamingEnumeration<SearchResult> find() throws NamingException {
LOG.debug("Search: {}", this);
NamingEnumeration<SearchResult> result;
InitialDirContext context = null;
boolean threw = false;
try {
context = contextFactory.createBindContext();
SearchControls controls = new SearchControls();
controls.setSearchScope(scope);
controls.setReturningAttributes(returningAttributes);
result = context.search(baseDn, request, parameters, controls);
threw = true;
} finally {
ContextHelper.close(context, threw);
}
return result;
}
Any help would be appreciated.

SonarQube Serve not starting: StartSonar.bat

Iam trying run StartSonar.bat from command line in order to start sonar serve but its giving me below exception. It seems to related to memory issue or Java version issue but iam unable to find the root cause. Appreciate any help on this.
Sonarqube version is - 5.4
sonar-scanner version - 2.6.1
log file below.
--> Wrapper Started as Console
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2017.01.12 18:30:42 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Users\502698332\Downloads\Code Review\sonarqube-5.4\sonarqube-5.4\temp
2017.01.12 18:30:42 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[search]: C:\Program Files\Java\jre1.8.0_112\bin\java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=C:\Users\502698332\Downloads\Code Review\sonarqube-5.4\sonarqube-5.4\temp -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer C:\Users\502698~1\AppData\Local\Temp\sq-process506451527421407979properties
2017.01.12 18:30:43 INFO es[o.s.p.ProcessEntryPoint] Starting search
2017.01.12 18:30:43 INFO es[o.s.s.SearchSettings] Elasticsearch listening on 127.0.0.1:9001
2017.01.12 18:30:43 INFO es[o.elasticsearch.node] [sonar-1484226042365] version[1.7.2], pid[12896], build[e43676b/2015-09-14T09:49:53Z]
2017.01.12 18:30:43 INFO es[o.elasticsearch.node] [sonar-1484226042365] initializing ...
2017.01.12 18:30:43 INFO es[o.e.plugins] [sonar-1484226042365] loaded [], sites []
2017.01.12 18:30:43 INFO es[o.elasticsearch.env] [sonar-1484226042365] using [1] data paths, mounts [[Windows7 (C:)]], net usable_space [379.4gb], net total_space [465.7gb], types [NTFS]
2017.01.12 18:30:44 WARN es[o.e.bootstrap] JNA not found. native methods will be disabled.
2017.01.12 18:30:44 INFO es[o.elasticsearch.node] [sonar-1484226042365] initialized
2017.01.12 18:30:44 INFO es[o.elasticsearch.node] [sonar-1484226042365] starting ...
2017.01.12 18:30:44 WARN es[o.s.p.ProcessEntryPoint] Fail to start search
org.elasticsearch.transport.BindTransportException: Failed to bind to [9001]
at org.elasticsearch.transport.netty.NettyTransport.bindServerBootstrap(NettyTransport.java:422) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.transport.netty.NettyTransport.doStart(NettyTransport.java:283) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:85) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.transport.TransportService.doStart(TransportService.java:153) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:85) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:257) ~[elasticsearch-1.7.2.jar:na]
at org.sonar.search.SearchServer.start(SearchServer.java:45) [sonar-search-5.4.jar:na]
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81) ~[sonar-process-5.4.jar:na]
at org.sonar.search.SearchServer.main(SearchServer.java:79) [sonar-search-5.4.jar:na]
Caused by: org.elasticsearch.common.netty.channel.ChannelException: Failed to bind to: /127.0.0.1:9001
at org.elasticsearch.common.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.transport.netty.NettyTransport$1.onPortNumber(NettyTransport.java:413) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.common.transport.PortsRange.iterate(PortsRange.java:58) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.transport.netty.NettyTransport.bindServerBootstrap(NettyTransport.java:409) ~[elasticsearch-1.7.2.jar:na]
... 8 common frames omitted
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_112]
at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_112]
at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_112]
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[na:1.8.0_112]
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[na:1.8.0_112]
at org.elasticsearch.common.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.common.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) ~[elasticsearch-1.7.2.jar:na]
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) ~[elasticsearch-1.7.2.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:1.8.0_112]
at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_112]
2017.01.12 18:30:44 INFO es[o.elasticsearch.node] [sonar-1484226042365] stopping ...
2017.01.12 18:30:44 INFO es[o.elasticsearch.node] [sonar-1484226042365] stopped
2017.01.12 18:30:44 INFO es[o.elasticsearch.node] [sonar-1484226042365] closing ...
2017.01.12 18:30:44 INFO es[o.elasticsearch.node] [sonar-1484226042365] closed
<-- Wrapper Stopped
Error is pretty explicit:
org.elasticsearch.transport.BindTransportException: Failed to bind to [9001]
...
Caused by: java.net.BindException: Address already in use: bind
Port 9001 is not free for SonarQube to use. Maybe another SonarQube instance already using it, maybe some other/zombie process. See this StackOverflow question for guidance on how to identify the process using a specific port on Windows.
Solution from their on:
deal with the process already listening on port 9001
tell your SonarQube server to listen on different ports: sonar.web.port and sonar.search.port in sonar.properties
Sometimes, unable to stop currently running application with port (9001). That might be running any system related operations.
Instead of disabling existing app, need to change port of SonarQube from 9001 to other.
For example,
In sonar.properties
Change this line "#sonar.search.port=9001" to "sonar.search.port=9002"
(Which works for me)

How to solve "NoSuchMethodError: org.apache.catalina.Container.getLoader()Lorg/apache/catalina/Loader" in tomcat-redis

27-Sep-2016 18:21:47.731 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
27-Sep-2016 18:21:47.733 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/apache-tomcat-8.0.37/webapps/ROOT has finished in 46 ms
27-Sep-2016 18:21:47.733 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/apache-tomcat-8.0.37/webapps/host-manager
27-Sep-2016 18:21:47.735 WARNING [localhost-startStop-1] org.apache.catalina.session.ManagerBase.setMaxInactiveInterval Manager.setMaxInactiveInterval() is deprecated and calls to this method are ignored. Session timeouts should be configured in web.xml or via Context.setSessionTimeout(int timeoutInMinutes)
27-Sep-2016 18:21:47.781 INFO [localhost-startStop-1] com.orangefunction.tomcat.redissessions.RedisSessionManager.startInternal Attached to RedisSessionHandlerValve
27-Sep-2016 18:21:47.782 INFO [localhost-startStop-1] com.orangefunction.tomcat.redissessions.RedisSessionManager.initializeSerializer Attempting to use serializer :com.orangefunction.tomcat.redissessions.JavaSerializer
27-Sep-2016 18:21:47.782 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal The session manager failed to start
org.apache.catalina.LifecycleException: Failed to start component [com.orangefunction.tomcat.redissessions.RedisSessionManager[/host-manager]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5331)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: org.apache.catalina.Container.getLoader()Lorg/apache/catalina/Loader;
at com.orangefunction.tomcat.redissessions.RedisSessionManager.initializeSerializer(RedisSessionManager.java:716)
at com.orangefunction.tomcat.redissessions.RedisSessionManager.startInternal(RedisSessionManager.java:295)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
... 12 more
27-Sep-2016 18:21:47.782 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/host-manager] startup failed due to previous errors
27-Sep-2016 18:21:47.785 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/apache-tomcat-8.0.37/webapps/host-manager has finished in 52 ms
27-Sep-2016 18:21:47.787 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
27-Sep-2016 18:21:47.791 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
27-Sep-2016 18:21:47.793 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 3490 ms
This is the output in terminal while running tomcat. I installed redis properly and it is running. I added jars to the lib of the tomcat folder and changed settings in the context.xml, there i written this
<Valve className="com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve" />
<Manager className="com.orangefunction.tomcat.redissessions.RedisSessionManager"
host="localhost"
port="6379"
password="mypass"
database="0"
maxInactiveInterval="30" />

Error starting sonarqube after upgrade

We are upgrading from sonarqube 4.0.0 to 5.1.2, but have hit on a problem. Initially we had some plugin version issues but have now hit an issue we cannot resolve.
The plugins and versions are:
sonar-checkstyle-plugin-2.0.jar
sonar-clirr-plugin-1.2.jar
sonar-clover-plugin-2.9.jar
sonar-cobertura-plugin-1.4.jar
sonar-crowd-plugin-2.0.jar
sonar-doxygen-plugin-0.1.jar
sonar-findbugs-plugin-3.3.jar
sonar-groovy-plugin-1.2.jar
sonar-java-plugin-3.6.jar
sonar-javascript-plugin-2.8.jar
sonar-jira-plugin-1.2.jar
sonar-ldap-plugin-1.4.jar
sonar-plsql-plugin-2.5.jar
sonar-pmd-plugin-2.0.jar
sonar-scm-activity-plugin-1.6.jar
sonar-scm-cvs-plugin-1.0.jar
sonar-scm-svn-plugin-1.2.jar
sonar-surefire-plugin-3.3.jar
sonar-useless-code-tracker-plugin-0.6.jar
sonar-web-plugin-2.4.jar
sonar-widget-lab-plugin-1.3.1.jar
sonar-xml-plugin-1.3.jar
The full sonar log is:
--> Wrapper Started as Service
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2015.10.16 11:30:34 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[search]: D:\Apps\Java\jdk1.8.0_60\jre\bin\java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=D:\Apps\sonarqube-5.1.2\temp -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer C:\Users\devadmin\AppData\Local\Temp\sq-process8016248323953546345properties
2015.10.16 11:30:36 INFO es[o.s.p.ProcessEntryPoint] Starting search
2015.10.16 11:30:36 INFO es[o.s.s.SearchServer] Starting Elasticsearch[sonarqube] on port 9001
2015.10.16 11:30:37 INFO es[o.elasticsearch.node] [sonar-1444991433854] version[1.4.4], pid[4248], build[c88f77f/2015-02-19T13:05:36Z]
2015.10.16 11:30:37 INFO es[o.elasticsearch.node] [sonar-1444991433854] initializing ...
2015.10.16 11:30:37 INFO es[o.e.plugins] [sonar-1444991433854] loaded [], sites []
2015.10.16 11:30:43 INFO es[o.elasticsearch.node] [sonar-1444991433854] initialized
2015.10.16 11:30:43 INFO es[o.elasticsearch.node] [sonar-1444991433854] starting ...
2015.10.16 11:30:44 INFO es[o.e.transport] [sonar-1444991433854] bound_address {inet[/0.0.0.0:9001]}, publish_address {inet[/10.1.100.148:9001]}
2015.10.16 11:30:44 INFO es[o.e.discovery] [sonar-1444991433854] sonarqube/EZdpDSYmT5eLvBxaPIuPhA
2015.10.16 11:30:47 INFO es[o.e.cluster.service] [sonar-1444991433854] new_master [sonar-1444991433854][EZdpDSYmT5eLvBxaPIuPhA][cgprtools02][inet[/10.1.100.148:9001]]{rack_id=sonar-1444991433854}, reason: zen-disco-join (elected_as_master)
2015.10.16 11:30:47 INFO es[o.elasticsearch.node] [sonar-1444991433854] started
2015.10.16 11:30:49 INFO es[o.e.gateway] [sonar-1444991433854] recovered [1] indices into cluster_state
2015.10.16 11:30:49 INFO app[o.s.p.m.Monitor] Process[search] is up
2015.10.16 11:30:49 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[web]: D:\Apps\Java\jdk1.8.0_60\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=D:\Apps\sonarqube-5.1.2\temp -cp ./lib/common/*;./lib/server/*;D:\Apps\sonarqube-5.1.2\extensions\jdbc-driver\oracle\ojdbc6.jar org.sonar.server.app.WebServer C:\Users\devadmin\AppData\Local\Temp\sq-process104299133105854453properties
2015.10.16 11:30:52 INFO web[o.s.p.ProcessEntryPoint] Starting web
2015.10.16 11:30:52 INFO web[o.s.s.app.Webapp] Webapp directory: D:\Apps\sonarqube-5.1.2\web
2015.10.16 11:30:53 INFO web[o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-0.0.0.0-9000"]
2015.10.16 11:30:54 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2015.10.16 11:30:56 INFO web[o.e.plugins] [sonar-1444991433854] loaded [], sites []
2015.10.16 11:30:59 INFO web[o.s.s.p.ServerImpl] SonarQube Server / 5.1.2 / 2a52a7106b2bfbd659c591c2d6fc09ad0ab2db5c
2015.10.16 11:30:59 INFO web[o.s.c.p.Database] Create JDBC datasource for jdbc:oracle:thin:#zcgprtoolsdb01.mfl.co.uk:1521:TOOL
2015.10.16 11:31:04 INFO web[o.s.s.p.DefaultServerFileSystem] SonarQube home: D:\Apps\sonarqube-5.1.2
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Install plugins
2015.10.16 11:31:05 WARN web[o.s.s.p.ServerPluginJarsInstaller] Plugin SCM Activity is blacklisted. Please uninstall it.
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin CVS / 1.0 / f9735104bfa053abc50edad720c79d89a4f5cd72
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Cobertura / 1.4 / 8f6e1ea327d6f03547aac9a9231b64b0a672294c
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Email notifications / 5.1.2 / 2a52a7106b2bfbd659c591c2d6fc09ad0ab2db5c
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Clirr / 1.2 / a2df27d3429980bdeec91f69644780b72c0e888b
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Crowd / 2.0 / 699040114c48411e968961b1caa61a83f89c8906
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin PMD / 2.0 / 31dc3bbaeced46313d55f4396183a8135c64f8af
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Clover / 2.9 / 6199
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Doxygen / 0.1 / 6014
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Widget Lab / 1.3.1
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Surefire / 3.3 / 983822a5a5943a7c19007b1445a7063e771172e1
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin SVN / 1.2 / d04c3cdb21f48905dd8300d1129ec90281aa6db2
2015.10.16 11:31:05 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin JavaScript / 2.8 / 53ffb46f827d24be6173dc5a44afd74b2c0b4e3f
2015.10.16 11:31:06 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin PL/SQL / 2.5 / 445be66de1b2eafa3664749a006ce25634ed1e9d
2015.10.16 11:31:06 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Core / 5.1.2 / 2a52a7106b2bfbd659c591c2d6fc09ad0ab2db5c
2015.10.16 11:31:06 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Findbugs / 3.3 / e1a76544ee6aed765106e7e2bb64072adf63ccaf
2015.10.16 11:31:06 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Groovy / 1.2 / 80ae22f577368968253eed734bebe027db9a9dab
2015.10.16 11:31:06 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Java / 3.6 / 88ff47a7574edcc4472ff495c15b6f94d8dbd98f
2015.10.16 11:31:07 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin LDAP / 1.4 / 18ba3a13ba4c6c07e6b0ad77940a52734159c27e
2015.10.16 11:31:07 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Useless Code Tracker / 0.6 / 6283
2015.10.16 11:31:07 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Web / 2.4 / 61c14c00da36f77d18c019ad2bd7942708e99c13
2015.10.16 11:31:07 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin XML / 1.3 / a8739cf424a5b42b64a3277373ab2d48aca5a6e0
2015.10.16 11:31:07 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin English Pack / 5.1.2 / 2a52a7106b2bfbd659c591c2d6fc09ad0ab2db5c
2015.10.16 11:31:07 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Checkstyle / 2.0 / 6cdc8d9781b7e40f83256288384dae7175dae934
2015.10.16 11:31:07 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin JIRA / 1.2 / 71e8002a5e7948ec705648d336e8bb9ab8026c55
2015.10.16 11:31:07 INFO web[o.s.s.p.RailsAppsDeployer] Deploy Ruby on Rails applications
2015.10.16 11:31:08 INFO web[o.s.j.s.AbstractDatabaseConnector] Initializing Hibernate
2015.10.16 11:31:11 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener
java.lang.NoClassDefFoundError: org/sonar/api/batch/maven/MavenPluginHandler
at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_60]
at java.lang.ClassLoader.defineClass(ClassLoader.java:760) ~[na:1.8.0_60]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_60]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) ~[na:1.8.0_60]
at java.net.URLClassLoader.access$100(URLClassLoader.java:73) ~[na:1.8.0_60]
at java.net.URLClassLoader$1.run(URLClassLoader.java:368) ~[na:1.8.0_60]
at java.net.URLClassLoader$1.run(URLClassLoader.java:362) ~[na:1.8.0_60]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_60]
at java.net.URLClassLoader.findClass(URLClassLoader.java:361) ~[na:1.8.0_60]
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:389) ~[plexus-classworlds-2.5.1.jar:na]
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) ~[plexus-classworlds-2.5.1.jar:na]
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259) ~[plexus-classworlds-2.5.1.jar:na]
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235) ~[plexus-classworlds-2.5.1.jar:na]
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227) ~[plexus-classworlds-2.5.1.jar:na]
at org.sonar.plugins.cobertura.CoberturaPlugin.getExtensions(CoberturaPlugin.java:38) ~[na:na]
at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:51) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.ServerComponents.startLevel4Components(ServerComponents.java:819) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:120) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.Platform.doStart(Platform.java:81) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:44) ~[sonar-server-5.1.2.jar:na]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4720) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) [tomcat-embed-core-8.0.18.jar:8.0.18]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
Caused by: java.lang.ClassNotFoundException: org.sonar.api.batch.maven.MavenPluginHandler
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) ~[plexus-classworlds-2.5.1.jar:na]
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259) ~[plexus-classworlds-2.5.1.jar:na]
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235) ~[plexus-classworlds-2.5.1.jar:na]
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227) ~[plexus-classworlds-2.5.1.jar:na]
... 29 common frames omitted
2015.10.16 11:31:12 INFO web[jruby.rack] jruby 1.7.9 (ruby-1.8.7p370) 2013-12-06 87b108a on Java HotSpot(TM) 64-Bit Server VM 1.8.0_60-b27 [Windows Server 2012-amd64]
2015.10.16 11:31:12 INFO web[jruby.rack] using a shared (threadsafe!) runtime
2015.10.16 11:31:33 INFO web[jruby.rack] An exception happened during JRuby-Rack startup
undefined method `controllers' for nil:NilClass
--- System
jruby 1.7.9 (ruby-1.8.7p370) 2013-12-06 87b108a on Java HotSpot(TM) 64-Bit Server VM 1.8.0_60-b27 [Windows Server 2012-amd64]
Time: Fri Oct 16 11:31:33 +0100 2015
Server: Apache Tomcat/8.0.18
jruby.home: file:/D:/Apps/sonarqube-5.1.2/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home
--- Context Init Parameters:
crowd.application = sonar
crowd.password = pa55word
crowd.url = http://crowd.mfl.co.uk/crowd-2.4.0/services/
jruby.compat.version = 1.8
jruby.max.runtimes = 1
jruby.min.runtimes = 1
jruby.rack.logging = slf4j
process.index = 1
process.key = web
process.sharedDir = D:\Apps\sonarqube-5.1.2\temp
process.terminationTimeout = 60000
public.root = /
rails.env = production
sonar.authenticator.class = org.sonar.plugins.crowd.CrowdAuthenticator
sonar.authenticator.ignoreStartupFailure = true
sonar.cluster.name = sonarqube
sonar.jdbc.driverClassName = oracle.jdbc.OracleDriver
sonar.jdbc.driverPath = D:\Apps\sonarqube-5.1.2\extensions\jdbc-driver\oracle\ojdbc6.jar
sonar.jdbc.maxActive = 20
sonar.jdbc.maxIdle = 5
sonar.jdbc.maxWait = 5000
sonar.jdbc.minEvictableIdleTimeMillis = 600000
sonar.jdbc.minIdle = 2
sonar.jdbc.password = sonar
sonar.jdbc.schema = SONAR
sonar.jdbc.timeBetweenEvictionRunsMillis = 30000
sonar.jdbc.url = jdbc:oracle:thin:#zcgprtoolsdb01.mfl.co.uk:1521:TOOL
sonar.jdbc.username = sonar
sonar.node.name = sonar-1444991433854
sonar.notifications.delay = 60
sonar.path.data = D:\Apps\sonarqube-5.1.2\data
sonar.path.home = D:\Apps\sonarqube-5.1.2
sonar.path.logs = D:\Apps\sonarqube-5.1.2\logs
sonar.path.temp = D:\Apps\sonarqube-5.1.2\temp
sonar.path.web = D:\Apps\sonarqube-5.1.2\web
sonar.search.javaAdditionalOpts =
sonar.search.javaOpts = -Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError
sonar.search.port = 9001
sonar.search.type = TRANSPORT
sonar.web.javaAdditionalOpts =
sonar.web.javaOpts = -Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true
--- Backtrace
NoMethodError: undefined method `controllers' for nil:NilClass
add_java_ws_routes at D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/../lib/java_ws_routing.rb:34
load_java_web_services at D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/../lib/database_version.rb:68
automatic_setup at D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/../lib/database_version.rb:75
(root) at D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/environment.rb:272
load at org/jruby/RubyKernel.java:1094
(root) at file:/D:/Apps/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:1
load_environment at file:/D:/Apps/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:25
load_environment at file:/D:/Apps/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails_booter.rb:79
--- RubyGems
Gem.dir: D:/Apps/sonarqube-5.1.2/web/WEB-INF/gems
Gem.path:
D:/Apps/sonarqube-5.1.2/web/WEB-INF/gems
Activated gems:
activesupport-2.3.15
activerecord-2.3.15
rack-1.1.6
actionpack-2.3.15
rails-2.3.15
color-tools-1.3.0
i18n-0.4.2
json-jruby-1.2.3-universal-java-1.6
activerecord-jdbc-adapter-1.1.3
fastercsv-1.4.0
--- Bundler
undefined method `bundle_path' for Bundler:Module
--- JRuby-Rack Config
compat_version = RUBY1_8
default_logger = org.jruby.rack.logging.StandardOutLogger#3d4149ea
equals = <error: >
err = java.io.PrintStream#13cedf4d
filter_adds_html = true
filter_verifies_resource = false
ignore_environment = false
initial_memory_buffer_size =
initial_runtimes = 1
jms_connection_factory =
jms_jndi_properties =
logger = org.jruby.rack.logging.Slf4jLogger#67cbb92
logger_class_name = slf4j
logger_name = jruby.rack
maximum_memory_buffer_size =
maximum_runtimes = 1
num_initializer_threads =
out = java.io.PrintStream#5304a805
rackup =
rackup_path =
rewindable = true
runtime_arguments =
runtime_environment =
runtime_timeout_seconds =
serial_initialization = false
servlet_context = org.apache.catalina.core.ApplicationContextFacade#2afc73de
throw_init_exception = false
2015.10.16 11:31:33 ERROR web[jruby.rack] initialization failed
org.jruby.rack.RackInitializationException: undefined method `controllers' for nil:NilClass
from D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/../lib/java_ws_routing.rb:34:in `add_java_ws_routes'
from D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/../lib/database_version.rb:68:in `load_java_web_services'
from D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/../lib/database_version.rb:75:in `automatic_setup'
from D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/environment.rb:272:in `(root)'
from org/jruby/RubyKernel.java:1094:in `load'
from file:/D:/Apps/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:1:in `(root)'
from file:/D:/Apps/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:25:in `load_environment'
from file:/D:/Apps/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails_booter.rb:79:in `load_environment'
at org.jruby.rack.RackInitializationException.wrap(RackInitializationException.java:29) ~[jruby-rack-1.1.13.2.jar:na]
at org.jruby.rack.RackApplicationFactoryDecorator.init(RackApplicationFactoryDecorator.java:98) ~[jruby-rack-1.1.13.2.jar:na]
at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:50) ~[jruby-rack-1.1.13.2.jar:na]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4720) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) [tomcat-embed-core-8.0.18.jar:8.0.18]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
Caused by: org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `controllers' for nil:NilClass
at RUBY.add_java_ws_routes(D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/../lib/java_ws_routing.rb:34) ~[na:na]
at RUBY.load_java_web_services(D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/../lib/database_version.rb:68) ~[na:na]
at RUBY.automatic_setup(D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/../lib/database_version.rb:75) ~[na:na]
at RUBY.(root)(D:/Apps/sonarqube-5.1.2/web/WEB-INF/config/environment.rb:272) ~[na:na]
at org.jruby.RubyKernel.load(org/jruby/RubyKernel.java:1094) ~[jruby-complete-1.7.9.jar:na]
at RUBY.(root)(file:/D:/Apps/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:1) ~[na:na]
at RUBY.load_environment(file:/D:/Apps/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:25) ~[na:na]
at RUBY.load_environment(file:/D:/Apps/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails_booter.rb:79) ~[na:na]
2015.10.16 11:31:33 ERROR web[o.a.c.c.StandardContext] Error listenerStart
2015.10.16 11:31:33 ERROR web[o.a.c.c.StandardContext] Context [] startup failed due to previous errors
2015.10.16 11:31:33 WARN web[o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [JRubyJIT-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
java.lang.Class.getConstructor0(Class.java:3075)
java.lang.Class.newInstance(Class.java:412)
org.jruby.compiler.JITCompiler$JITTask.run(JITCompiler.java:269)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
2015.10.16 11:31:33 WARN web[o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [JRubyJIT-2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Class.getSuperclass(Native Method)
sun.reflect.Reflection.isSubclassOf(Reflection.java:247)
sun.reflect.ReflectionFactory.newConstructorAccessor(ReflectionFactory.java:180)
java.lang.reflect.Constructor.acquireConstructorAccessor(Constructor.java:459)
java.lang.reflect.Constructor.newInstance(Constructor.java:419)
java.lang.Class.newInstance(Class.java:442)
org.jruby.compiler.JITCompiler$JITTask.run(JITCompiler.java:269)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
2015.10.16 11:31:33 INFO web[o.a.c.l.WebappClassLoaderBase] Illegal access: this web application instance has been stopped already. Could not load [rubyjit.Module$$try_activate_8886A4129B2E74CFCEDF43C772E46C9A0410DFBB1742354412]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [rubyjit.Module$$try_activate_8886A4129B2E74CFCEDF43C772E46C9A0410DFBB1742354412]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1327) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1313) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1196) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.jruby.util.ClassCache.defineClass(ClassCache.java:119) [jruby-complete-1.7.9.jar:na]
at org.jruby.util.ClassCache.cacheClassByKey(ClassCache.java:98) [jruby-complete-1.7.9.jar:na]
at org.jruby.compiler.JITCompiler$JITTask.run(JITCompiler.java:257) [jruby-complete-1.7.9.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_60]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
2015.10.16 11:31:33 INFO web[o.a.c.l.WebappClassLoaderBase] Illegal access: this web application instance has been stopped already. Could not load [rubyjit.Gem::Specification$$find_inactive_by_path_55080282EF8BA5B9D2574831061CD4B20CD990F21742354412]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [rubyjit.Gem::Specification$$find_inactive_by_path_55080282EF8BA5B9D2574831061CD4B20CD990F21742354412]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1327) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1313) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1196) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.jruby.util.ClassCache.defineClass(ClassCache.java:119) [jruby-complete-1.7.9.jar:na]
at org.jruby.util.ClassCache.cacheClassByKey(ClassCache.java:98) [jruby-complete-1.7.9.jar:na]
at org.jruby.compiler.JITCompiler$JITTask.run(JITCompiler.java:257) [jruby-complete-1.7.9.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_60]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
.......continues....
2015.10.16 11:31:34 INFO web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-0.0.0.0-9000"]
2015.10.16 11:31:35 INFO web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-0.0.0.0-9000"]
2015.10.16 11:31:35 INFO web[o.s.s.a.TomcatAccessLog] Web server is stopped
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was removed in 8.0
2015.10.16 11:31:35 INFO app[o.s.p.m.TerminatorThread] Process[search] is stopping
2015.10.16 11:31:35 INFO es[o.s.p.StopWatcher] Stopping process
2015.10.16 11:31:35 INFO es[o.elasticsearch.node] [sonar-1444991433854] stopping ...
2015.10.16 11:31:35 INFO es[o.elasticsearch.node] [sonar-1444991433854] stopped
2015.10.16 11:31:35 INFO es[o.elasticsearch.node] [sonar-1444991433854] closing ...
2015.10.16 11:31:35 INFO es[o.elasticsearch.node] [sonar-1444991433854] closed
2015.10.16 11:31:35 INFO app[o.s.p.m.TerminatorThread] Process[search] is stopped
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
<-- Wrapper Stopped
The full stack is here
Any help is appreciated,
Thanks,
The issue is with the Cobertura plugin. Please check compatible version of each plugin at http://docs.sonarqube.org/display/PLUG/Plugin+Version+Matrix and upgrade your plugins accordingly.

Sonarqube 5.0 install error

When installing sonarqube 5.0, I got following error messages while starting SonarQube on windows7 with mysql 5.6.22:
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2015.01.19 11:18:57 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[search]: C:\Tools\jdk1.7.0_71\jre\bin\java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=C:\Tools\sonarqube-5.0\temp -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer C:\Users\li2\AppData\Local\Temp\sq-process2755720839215931323properties
2015.01.19 11:19:09 INFO sea[o.s.p.ProcessEntryPoint] Starting search
2015.01.19 11:19:09 INFO sea[o.s.s.SearchServer] Starting Elasticsearch[sonarqube] on port 9001
2015.01.19 11:19:09 WARN sea[o.s.s.SearchSettings] Elasticsearch HTTP connector is enabled on port 9010. MUST NOT BE USED INTO PRODUCTION
2015.01.19 11:19:09 INFO sea[o.elasticsearch.node] [sonar-1421662737113] version[1.1.2], pid[8464], build[e511f7b/2014-05-22T12:27:39Z]
2015.01.19 11:19:09 INFO sea[o.elasticsearch.node] [sonar-1421662737113] initializing ...
2015.01.19 11:19:09 INFO sea[o.e.plugins] [sonar-1421662737113] loaded [], sites []
2015.01.19 11:19:11 INFO sea[o.elasticsearch.node] [sonar-1421662737113] initialized
2015.01.19 11:19:11 INFO sea[o.elasticsearch.node] [sonar-1421662737113] starting ...
2015.01.19 11:19:27 INFO sea[o.e.transport] [sonar-1421662737113] bound_address {inet[/0.0.0.0:9001]}, publish_address {inet[/192.168.0.107:9001]}
2015.01.19 11:19:30 INFO sea[o.e.cluster.service] [sonar-1421662737113] new_master [sonar-1421662737113][RB8i_Ar8Rv-Do_15hhhWtQ][LI21][inet[/192.168.0.107:9001]]{rack_id=sonar-1421662737113}, reason: zen-disco-join (elected_as_master)
2015.01.19 11:19:51 WARN sea[o.e.cluster.service] [sonar-1421662737113] failed to connect to node [[sonar-1421662737113][RB8i_Ar8Rv-Do_15hhhWtQ][LI21][inet[/192.168.0.107:9001]]{rack_id=sonar-1421662737113}]
org.elasticsearch.transport.ConnectTransportException: [sonar-1421662737113][inet[/192.168.0.107:9001]] connect_timeout[30s]
at org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:719) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:648) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:616) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:129) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:405) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:134) [elasticsearch-1.1.2.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_71]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
Caused by: java.net.ConnectException: Connection timed out: no further information: /192.168.0.107:9001
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.7.0_71]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739) ~[na:1.7.0_71]
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:150) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) ~[elasticsearch-1.1.2.jar:na]
... 3 common frames omitted
2015.01.19 11:19:51 INFO sea[o.e.discovery] [sonar-1421662737113] sonarqube/RB8i_Ar8Rv-Do_15hhhWtQ
2015.01.19 11:19:51 INFO sea[o.elasticsearch.http] [sonar-1421662737113] bound_address {inet[/127.0.0.1:9010]}, publish_address {inet[/127.0.0.1:9010]}
2015.01.19 11:19:52 INFO sea[o.e.gateway] [sonar-1421662737113] recovered [4] indices into cluster_state
2015.01.19 11:19:52 INFO sea[o.elasticsearch.node] [sonar-1421662737113] started
2015.01.19 11:19:53 INFO app[o.s.p.m.Monitor] Process[search] is up
2015.01.19 11:19:53 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[web]: C:\Tools\jdk1.7.0_71\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=C:\Tools\sonarqube-5.0\temp -cp ./lib/common/*;./lib/server/*;C:\Tools\sonarqube-5.0\lib\jdbc\mysql\mysql-connector-java-5.1.27.jar org.sonar.server.app.WebServer C:\Users\li2\AppData\Local\Temp\sq-process1889452272417488373properties
2015.01.19 11:20:06 INFO web[o.s.p.ProcessEntryPoint] Starting web
2015.01.19 11:20:06 INFO web[o.s.s.app.Connectors] HTTP connector is enabled on port 9000
2015.01.19 11:20:06 INFO web[o.s.s.app.Webapp] Webapp directory: C:\Tools\sonarqube-5.0\web
2015.01.19 11:20:07 INFO web[o.e.plugins] [sonar-1421662737113] loaded [], sites []
2015.01.19 11:20:19 INFO web[o.s.s.p.ServerImpl] SonarQube Server / 5.0 / dc62506bf3b331ec19c053e225e415d164ee60b0
2015.01.19 11:20:19 INFO web[o.s.c.p.Database] Create JDBC datasource for jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
2015.01.19 11:20:20 INFO web[o.s.s.p.DefaultServerFileSystem] SonarQube home: C:\Tools\sonarqube-5.0
2015.01.19 11:20:20 INFO web[o.s.a.u.TimeProfiler] Install plugins...
2015.01.19 11:20:20 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Findbugs / 3.1 / adc09c989cebc856d44239116a00ab0b602b0851
2015.01.19 11:20:20 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Duplications / 5.0 / dc62506bf3b331ec19c053e225e415d164ee60b0
2015.01.19 11:20:20 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Git / 5.0 / dc62506bf3b331ec19c053e225e415d164ee60b0
2015.01.19 11:20:20 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Core / 5.0 / dc62506bf3b331ec19c053e225e415d164ee60b0
2015.01.19 11:20:20 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Java / 2.8 / 20a3d682b1334eb1857e7bc8a40e11f04fed9528
2015.01.19 11:20:20 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin SVN / 5.0 / dc62506bf3b331ec19c053e225e415d164ee60b0
2015.01.19 11:20:20 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin English Pack / 5.0 / dc62506bf3b331ec19c053e225e415d164ee60b0
2015.01.19 11:20:20 INFO web[o.s.s.p.ServerPluginJarsInstaller] Deploy plugin Email notifications / 5.0 / dc62506bf3b331ec19c053e225e415d164ee60b0
2015.01.19 11:20:20 INFO web[o.s.a.u.TimeProfiler] Install plugins done: 234 ms
2015.01.19 11:20:21 INFO web[o.s.s.p.RailsAppsDeployer] Deploy Ruby on Rails applications
2015.01.19 11:20:21 INFO web[jruby.rack] jruby 1.7.9 (ruby-1.8.7p370) 2013-12-06 87b108a on Java HotSpot(TM) 64-Bit Server VM 1.7.0_71-b14 [Windows 7-amd64]
2015.01.19 11:20:21 INFO web[jruby.rack] using a shared (threadsafe!) runtime
2015.01.19 11:20:29 INFO web[DbMigration] == InitialSchema: migrating ==================================================
2015.01.19 11:20:29 INFO web[DbMigration] -- create_table(:projects, {})
2015.01.19 11:20:29 INFO web[DbMigration] -> 0.0310s
2015.01.19 11:20:29 INFO web[DbMigration] -> 0 rows
........
........
2015.01.19 11:20:50 INFO web[o.s.j.s.AbstractDatabaseConnector] Initializing Hibernate
2015.01.19 11:20:51 INFO web[o.s.s.p.UpdateCenterClient] Update center: http://update.sonarsource.org/update-center.properties (HTTP proxy: xxx)
2015.01.19 11:20:52 INFO web[o.s.s.n.NotificationService] Notification service started (delay 60 sec.)
2015.01.19 11:20:52 INFO web[o.s.s.s.IndexSynchronizer] Index rules for updates after Sun Jan 18 20:37:25 CET 2015
2015.01.19 11:20:52 INFO web[o.s.s.s.IndexSynchronizer] Index activeRules for updates after Sun Jan 18 20:37:27 CET 2015
2015.01.19 11:20:52 INFO web[o.s.s.s.IndexSynchronizer] Index sonarLogs for updates after null
2015.01.19 11:20:52 INFO web[o.s.s.s.IndexSynchronizer] Index issues
2015.01.19 11:20:52 INFO web[o.s.s.s.IndexSynchronizer] Index source files
2015.01.19 11:20:52 INFO web[o.s.a.u.TimeProfiler] Load metrics...
2015.01.19 11:20:52 INFO web[o.s.s.s.RegisterMetrics] Cleaning quality gate conditions
2015.01.19 11:20:52 INFO web[o.s.a.u.TimeProfiler] Load metrics done: 234 ms
2015.01.19 11:20:52 INFO web[o.s.s.s.RegisterDebtModel] Register technical debt model...
2015.01.19 11:20:52 INFO web[o.s.s.s.RegisterDebtModel] Register technical debt model done: 78 ms
2015.01.19 11:20:52 INFO web[o.s.a.u.TimeProfiler] Register rules...
2015.01.19 11:22:57 WARN sea[o.e.cluster.service] [sonar-1421662737113] failed to reconnect to node [sonar-1421662737113][RB8i_Ar8Rv-Do_15hhhWtQ][LI21][inet[/192.168.0.107:9001]]{rack_id=sonar-1421662737113}
org.elasticsearch.transport.ConnectTransportException: [sonar-1421662737113][inet[/192.168.0.107:9001]] connect_timeout[30s]
at org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:719) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:648) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:616) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:129) ~[elasticsearch-1.1.2.jar:na]
at org.elasticsearch.cluster.service.InternalClusterService$ReconnectToNodes.run(InternalClusterService.java:516) ~[elasticsearch-1.1.2.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_71]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
Caused by: java.net.ConnectException: Connection timed out: no further information: /192.168.0.107:9001
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.7.0_71]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739) ~[na:1.7.0_71]
I have searched for similar questions but with no success.
Does someone have an idea how to fix that?
Thanks!
I got the same problem. It could be resolved by a possibility to not only specify sonar.search.port but also something like sonar.search.host. The reason in my setting is that the default IP which sonar search uses is only accessible from outside hosts. It must not be used from localhost.
I worked around it by adding the following line to sonar.properties as described here:
sonar.search.javaAdditionalOpts=-Des.network.host=127.0.0.1

Resources