Sonarqube hangs when storing results in database with java.sql.SQLException - mysql

I was trying to install sonar instance on EC2 Ubuntu server and migrate the old mysql database to the server. It had worked fine until I updated Sonargraph, Java and Git plugins and wanted to rebuild sonar using Gradle. The build hangs for 30-50min when trying to store results in mysql database and then fails with java.sql.SQLException: Already closed.
Here's the part of the error log that I receive when running gradlew:
15:22:49.747 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :sonarqube FAILED
15:22:49.748 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :sonarqube (Thread[Daemon Thread 3,5,main]) completed. Took 45 mins 23.097 secs.
15:22:49.748 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon Thread 3,5,main]] finished, busy: 45 mins 58.672 secs, idle: 0.058 secs
15:22:49.752 [ERROR] [org.gradle.BuildExceptionReporter]
15:22:49.752 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
15:22:49.753 [ERROR] [org.gradle.BuildExceptionReporter]
15:22:49.753 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
15:22:49.753 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':sonarqube'.
15:22:49.753 [ERROR] [org.gradle.BuildExceptionReporter] > Unable to execute Sonar
15:22:49.754 [ERROR] [org.gradle.BuildExceptionReporter]
15:22:49.754 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
15:22:49.755 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonarqube'.
15:22:49.755 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
15:22:49.755 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
15:22:49.756 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
15:22:49.756 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
15:22:49.756 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
15:22:49.756 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
15:22:49.756 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
15:22:49.757 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
15:22:49.757 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
15:22:49.757 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:289)
15:22:49.757 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
15:22:49.757 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
15:22:49.758 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
15:22:49.758 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
15:22:49.758 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86)
15:22:49.758 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
15:22:49.758 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
15:22:49.759 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
15:22:49.759 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
15:22:49.759 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
15:22:49.759 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
15:22:49.759 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)
15:22:49.760 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:166)
15:22:49.760 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
15:22:49.760 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
15:22:49.760 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)
15:22:49.761 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
15:22:49.761 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
15:22:49.761 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35)
15:22:49.761 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:45)
15:22:49.761 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
15:22:49.762 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.762 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:42)
15:22:49.762 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.762 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:24)
15:22:49.762 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.763 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.StartStopIfBuildAndStop.execute(StartStopIfBuildAndStop.java:33)
15:22:49.763 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.763 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.ReturnResult.execute(ReturnResult.java:34)
15:22:49.763 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.764 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:71)
15:22:49.764 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:69)
15:22:49.764 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.util.Swapper.swap(Swapper.java:38)
15:22:49.764 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:69)
15:22:49.764 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.765 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
15:22:49.765 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
15:22:49.765 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.765 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:60)
15:22:49.765 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
15:22:49.766 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.766 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:45)
15:22:49.766 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.DaemonStateCoordinator.runCommand(DaemonStateCoordinator.java:186)
15:22:49.766 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy.doBuild(StartBuildOrRespondWithBusy.java:49)
15:22:49.766 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
15:22:49.766 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.767 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.HandleStop.execute(HandleStop.java:36)
15:22:49.767 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.767 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonHygieneAction.execute(DaemonHygieneAction.java:39)
15:22:49.767 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.767 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.CatchAndForwardDaemonFailure.execute(CatchAndForwardDaemonFailure.java:32)
15:22:49.768 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
15:22:49.768 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.DefaultDaemonCommandExecuter.executeCommand(DefaultDaemonCommandExecuter.java:51)
15:22:49.768 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.handleCommand(DefaultIncomingConnectionHandler.java:155)
15:22:49.768 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.receiveAndHandleCommand(DefaultIncomingConnectionHandler.java:128)
15:22:49.769 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.run(DefaultIncomingConnectionHandler.java:116)
15:22:49.769 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
15:22:49.769 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.sonar.runner.impl.RunnerException: Unable to execute Sonar
15:22:49.769 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
15:22:49.770 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
15:22:49.770 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
15:22:49.770 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
15:22:49.770 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
15:22:49.770 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.api.Runner.execute(Runner.java:100)
15:22:49.771 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonarqube.gradle.SonarQubeTask.run(SonarQubeTask.java:50)
15:22:49.771 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
15:22:49.771 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:219)
15:22:49.771 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:212)
15:22:49.772 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:201)
15:22:49.772 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:533)
15:22:49.772 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:516)
15:22:49.772 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
15:22:49.772 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
15:22:49.773 [ERROR] [org.gradle.BuildExceptionReporter] ... 66 more
15:22:49.773 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.hibernate.exception.GenericJDBCException: Cannot release connection
15:22:49.773 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
15:22:49.774 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
15:22:49.774 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
15:22:49.774 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
15:22:49.774 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:478)
15:22:49.774 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.jdbc.ConnectionManager.aggressiveRelease(ConnectionManager.java:429)
15:22:49.775 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.jdbc.ConnectionManager.afterTransaction(ConnectionManager.java:316)
15:22:49.775 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.jdbc.JDBCContext.afterTransactionCompletion(JDBCContext.java:248)
15:22:49.775 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:158)
15:22:49.775 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)
15:22:49.776 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.jpa.session.JpaDatabaseSession.commit(JpaDatabaseSession.java:83)
15:22:49.776 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.jpa.session.JpaDatabaseSession.commitAndClose(JpaDatabaseSession.java:69)
15:22:49.776 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.jpa.session.JpaDatabaseSession.stop(JpaDatabaseSession.java:64)
15:22:49.777 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
15:22:49.777 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.stop(ReflectionLifecycleStrategy.java:96)
15:22:49.777 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.stop(AbstractInjectionFactory.java:88)
15:22:49.778 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.behaviors.AbstractBehavior.stop(AbstractBehavior.java:179)
15:22:49.778 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.behaviors.Stored$RealComponentLifecycle.stop(Stored.java:141)
15:22:49.778 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.behaviors.Stored.stop(Stored.java:118)
15:22:49.779 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.DefaultPicoContainer.stopAdapters(DefaultPicoContainer.java:1047)
15:22:49.779 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:802)
15:22:49.779 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.api.platform.ComponentContainer.stopComponents(ComponentContainer.java:123)
15:22:49.780 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.api.platform.ComponentContainer.stopComponents(ComponentContainer.java:118)
15:22:49.780 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrapper.Batch.stop(Batch.java:107)
15:22:49.780 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
15:22:49.780 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
15:22:49.781 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
15:22:49.781 [ERROR] [org.gradle.BuildExceptionReporter] ... 80 more
15:22:49.781 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.sql.SQLException: Already closed.
15:22:49.781 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:114)
15:22:49.782 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:191)
15:22:49.782 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.connection.DatasourceConnectionProvider.closeConnection(DatasourceConnectionProvider.java:97)
15:22:49.782 [ERROR] [org.gradle.BuildExceptionReporter] at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:474)
15:22:49.782 [ERROR] [org.gradle.BuildExceptionReporter] ... 102 more
15:22:49.783 [ERROR] [org.gradle.BuildExceptionReporter]
15:22:49.783 [LIFECYCLE] [org.gradle.BuildResultLogger]
15:22:49.783 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
15:22:49.784 [LIFECYCLE] [org.gradle.BuildResultLogger]
15:22:49.784 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 46 mins 1.31 secs
When I go over the same procedure with sonar running on my local computer (same config file settings, etc), gradle build doesn't hang and finishes successfully.
I'm using following versions:
sonar 5.1.1 (application)
sonarqube 1.0 (gradle plugin)
gradle 1.11
java 8 (project to analyse)
mysql 5.5.43 (database sonar connects to)
java plugin 3.3 (sonar plugin)
sonargraph 3.4.2 (sonar plugin)
git 1.1 (sonar plugin)
Why does the database step hang for so long and fail?

Related

Liquibase Maven update Fails with Type Incompatibility Error

I am running through the tutorial of liquibase being new. After following instructions I am able to run liquibase update command with no issues, but if I try mvn liquibase:update I receive the following error:
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.9.0:update (default-cli) on project LiquibaseDemoMysql: A type incompatibility occurred while executing org.liquibase:liquibase-maven-plugin:3.9.0:update: class java.time.LocalDateTime cannot be cast to class java.lang.String (java.time.LocalDateTime and java.lang.String are in module java.base of loader 'bootstrap')
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.liquibase:liquibase-maven-plugin:3.9.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/duart/.m2/repository/org/liquibase/liquibase-maven-plugin/3.9.0/liquibase-maven-plugin-3.9.0.jar
[ERROR] urls[1] = file:/C:/Users/duart/.m2/repository/mysql/mysql-connector-java/8.0.23/mysql-connector-java-8.0.23.jar
[ERROR] urls[2] = file:/C:/Users/duart/.m2/repository/com/google/protobuf/protobuf-java/3.11.4/protobuf-java-3.11.4.jar
[ERROR] urls[3] = file:/C:/Users/duart/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[4] = file:/C:/Users/duart/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
[ERROR] urls[5] = file:/C:/Users/duart/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
[ERROR] urls[6] = file:/C:/Users/duart/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar
[ERROR] urls[7] = file:/C:/Users/duart/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
[ERROR] urls[8] = file:/C:/Users/duart/.m2/repository/com/google/inject/guice/4.0/guice-4.0-no_aop.jar
[ERROR] urls[9] = file:/C:/Users/duart/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[10] = file:/C:/Users/duart/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
[ERROR] urls[11] = file:/C:/Users/duart/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
[ERROR] urls[12] = file:/C:/Users/duart/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
[ERROR] urls[13] = file:/C:/Users/duart/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[14] = file:/C:/Users/duart/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[15] = file:/C:/Users/duart/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
[ERROR] urls[16] = file:/C:/Users/duart/.m2/repository/org/liquibase/liquibase-core/3.9.0/liquibase-core-3.9.0.jar
[ERROR] urls[17] = file:/C:/Users/duart/.m2/repository/javax/xml/bind/jaxb-api/2.3.0/jaxb-api-2.3.0.jar
[ERROR] urls[18] = file:/C:/Users/duart/.m2/repository/org/yaml/snakeyaml/1.24/snakeyaml-1.24.jar
[ERROR] urls[19] = file:/C:/Users/duart/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar
[ERROR] urls[20] = file:/C:/Users/duart/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Not sure what is causing this and haven't been able to find anything online regarding this. Has anyone had this issue and no how to resolve it?
I updated the version of the liquibase-maven-plugin from 3.9.0 to the latest. The version they have you. the version given in the tutorial is outdated.

Use scala to generate html with available libraries

I am scala newbie trying to create a simple scala program to generate a html and found salatags provides an api to generate it.
I followed the scalatags and used an example ScalaJSExample.scala and getting error.
Below is my build.sbt file and the error that I am getting
[error] (run-main-0) java.lang.Error: stub
[error] java.lang.Error: stub
[error] at scala.scalajs.runtime.package$.linkingInfo(package.scala:193)
[error] at scala.scalajs.runtime.package$.environmentInfo(package.scala:187)
[error] at scala.scalajs.js.Dynamic$.global(Dynamic.scala:78)
[error] at org.scalajs.dom.package$.window$lzycompute(package.scala:235)
[error] at org.scalajs.dom.package$.window(package.scala:235)
[error] at org.scalajs.dom.package$.document$lzycompute(package.scala:236)
[error] at org.scalajs.dom.package$.document(package.scala:236)
[error] at ScalaJSExample$.delayedEndpoint$ScalaJSExample$1(HtmlRenderer.scala:199)
[error] at ScalaJSExample$delayedInit$body.apply(HtmlRenderer.scala:193)
[error] at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
[error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
[error] at scala.App$$anonfun$main$1.apply(App.scala:76)
[error] at scala.App$$anonfun$main$1.apply(App.scala:76)
[error] at scala.collection.immutable.List.foreach(List.scala:381)
[error] at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
[error] at scala.App$class.main(App.scala:76)
[error] at ScalaJSExample$.main(HtmlRenderer.scala:193)
[error] at ScalaJSExample.main(HtmlRenderer.scala)
[error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error] at java.lang.reflect.Method.invoke(Method.java:497)
[error] at sbt.Run.invokeMain(Run.scala:89)
[error] at sbt.Run.run0(Run.scala:83)
[error] at sbt.Run.execute$1(Run.scala:61)
[error] at sbt.Run.$anonfun$run$4(Run.scala:73)
[error] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
[error] at sbt.util.InterfaceUtil$$anon$1.get(InterfaceUtil.scala:10)
[error] at sbt.TrapExit$App.run(TrapExit.scala:252)
[error] at java.lang.Thread.run(Thread.java:745)
[error] java.lang.RuntimeException: Nonzero exit code: 1
[error] at sbt.Run$.executeTrapExit(Run.scala:120)
[error] at sbt.Run.run(Run.scala:73)
[error] at sbt.Defaults$.$anonfun$bgRunTask$5(Defaults.scala:1155)
[error] at sbt.Defaults$.$anonfun$bgRunTask$5$adapted(Defaults.scala:1150)
[error] at sbt.internal.BackgroundThreadPool.$anonfun$run$1(DefaultBackgroundJobService.scala:331)
[error] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
[error] at scala.util.Try$.apply(Try.scala:209)
[error] at sbt.internal.BackgroundThreadPool$BackgroundRunnable.run(DefaultBackgroundJobService.scala:254)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[error] at java.lang.Thread.run(Thread.java:745)
[error] (compile:run) Nonzero exit code: 1
[error] Total time: 4 s, completed Oct 6, 2017 6:39:55 PM
sbt:src>
and build.sbt is
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
"org.scala-js" % "scalajs-dom_sjs0.6_2.11" % "0.9.3",
"org.scala-js" % "scalajs-library_2.11" % "0.6.20",
"com.lihaoyi" % "scalatags_2.11" % "0.6.7",
"org.scala-lang" % "scala-library" % scalaVersion.value,
"com.lihaoyi" % "scalatex-api_2.11" % "0.3.6"
)
//Getting error with the below plugin and commented it out
//addSbtPlugin("com.lihaoyi" % "scalatex-api_2.12" % "0.3.6")
//scalatex.SbtPlugin.projectSettings
// scalaVersion := scalaVesrion.value
Could someone see what is wrong and what is the simple way to generate static html as simple as
hello World!
in scala with some available scala libraries or apis?

PlayFramework 2.5 - Testing not using in-memory databse

I have been following tutorials on PlayFramework, but it seems that they are all outdated and for older version of Play.
I want to try JUnit test using mysql databse not h2 in-memory database.
I am using ebean ORC (which clearly has different api than it used to have inside play 2.2, and the api is not really well documented).
Anyway I want to try JUnit test on mysql databse, but I am always getting a configuration error.
This is how the JUnit test class looks:
public class ModelsTest extends WithApplication {
public Application app;
#Before
public void setUp() throws FileNotFoundException, IOException {
java.util.Properties externalProps=new java.util.Properties();
externalProps.load(new FileInputStream("resources/test-ebean.properties"));
ServerConfig config = new ServerConfig();
config.setName("test");
config.setDefaultServer(true);
config.loadFromProperties(externalProps);
EbeanServer server = EbeanServerFactory.create(config);
app = Helpers.fakeApplication();
Helpers.start(app);
}
#Test
public void createAndRetrieveUser() {
new User("bob#bob.bob", "admin", "admin").save();
User bob = User.find.where().eq("email", "bob#bob.bob").findUnique();
assertNotNull(bob);
assertEquals("admin", bob.login);
}
#After
public void stopApp() {
Helpers.stop(app);
}
test-ebean.properties file :
ebean.ddl.generate=true
ebean.ddl.run=true
datasource.default=db
datasource.db.username="root"
datasource.db.password="root"
datasource.db.databaseUrl="jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8"
datasource.db.databaseDriver=com.mysql.jdbc.Driver
When running test I am getting this error:
[error] Test ModelsTest.createAndRetrieveUser failed:` play.api.Configuration$$anon$1: Configuration error[null], took 4.969 sec
[error] at play.api.Configuration$.configError(Configuration.scala:154)
[error] at play.api.Configuration.reportError(Configuration.scala:806)
[error] at play.Configuration.reportError(Configuration.java:366)
[error] at play.db.ebean.DefaultEbeanConfig$EbeanConfigParser.parse(DefaultEbeanConfig.java:81)
[error] at play.db.ebean.DefaultEbeanConfig$EbeanConfigParser.get(DefaultEbeanConfig.java:60)
[error] at play.db.ebean.DefaultEbeanConfig$EbeanConfigParser.get(DefaultEbeanConfig.java:44)
[error] at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
[error] at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72)
[error] at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61)
[error] at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
[error] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
[error] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
[error] at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
[error] at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
[error] at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
[error] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:104)
[error] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
[error] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
[error] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
[error] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
[error] at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
[error] at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
[error] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
[error] at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
[error] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
[error] at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
[error] at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:205)
[error] at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:199)
[error] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
[error] at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:199)
[error] at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:180)
[error] at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
[error] at com.google.inject.Guice.createInjector(Guice.java:96)
[error] at com.google.inject.Guice.createInjector(Guice.java:84)
[error] at play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:181)
[error] at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:123)
[error] at play.api.test.FakeApplication.<init>(Fakes.scala:209)
[error] at play.test.FakeApplication.<init>(FakeApplication.java:51)
[error] at play.test.Helpers.fakeApplication(Helpers.java:124)
[error] at play.test.WithApplication.provideFakeApplication(WithApplication.java:46)
[error] at play.test.WithApplication.provideApplication(WithApplication.java:33)
[error] at play.test.WithApplication.startPlay(WithApplication.java:51)
[error] ...
[error] Caused by: java.lang.NullPointerException
[error] at play.db.ebean.DefaultEbeanConfig$EbeanConfigParser.parse(DefaultEbeanConfig.java:79)
[error] ... 78 more
[error] Test ModelsTest.createAndRetrieveUser failed: java.lang.NullPointerException: null, took 4.979 sec
[error] at play.test.Helpers.stop(Helpers.java:376)
[error] at ModelsTest.stopApp(ModelsTest.java:58)
[error] ...
[error] Failed: Total 1, Failed 1, Errors 0, Passed 0
[error] Failed tests:
[error] ModelsTest
[error] (test:testOnly) sbt.TestsFailedException: Tests unsuccessful
I just started learning play (but actually most of tutorials are outdated) and I have spent more time trying to configure it to run than actually coding. I guess I should look up another framework.
You don't need to set up a whole database just for testing (you are free to, of course). Play relies strongly on In-Memory databases (e.g. during development) and you can utilize this also in your tests:
#Test
public void findById() {
running(fakeApplication(inMemoryDatabase("test")), () -> {
User bob = User.findById(21l);
assertEquals("bob#bob.bob", bob.email);
assertEquals("admin", bob.login);
});
}
On the other hand if you really want to test the database access code you can go as far as creating a Database test object:
Database database = Databases.createFrom(
"com.mysql.jdbc.Driver",
"jdbc:mysql://localhost/test"
);
Which again can be in-memory:
Database database = Databases.inMemory(
"mydatabase",
ImmutableMap.of(
"MODE", "MYSQL"
),
ImmutableMap.of(
"logStatements", true
)
);
Just don't forget to release the resources after the test:
#After
public void shutdownDatabase() {
database.shutdown();
}

sonarRunner Anaylsis failed exception - Cannot analyze a .java file, NullPointerException sonar.sources

I'm running sonarRunner (Sonar Analysis) on Java project but getting the following error. I tried various options/settings as mentioned below but it's still failing. I even tried setting / passing -Dsonar.exclusions=src/java/com/thc/ids/biz/SomePlansvc/pvt/costestimate/datavalidation/Validators.java, it's still not ignoring the file.
12:51:38 12:51:38.426 INFO - Base dir: /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc
12:51:38 12:51:38.426 INFO - Working dir: /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/build/****
12:51:38 12:51:38.427 INFO - Source dirs: /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/src/java
12:51:38 12:51:38.427 INFO - Test dirs: /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/test/java, /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/src/java-test
12:51:38 12:51:38.427 INFO - Binary dirs: /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/build/classes/main
12:51:38 12:51:38.427 INFO - Source encoding: UTF-8, default locale: en_US
12:51:38 12:51:38.542 INFO - Sensor JavaSourceImporter...
12:51:39 12:51:39.910 INFO - Sensor JavaSourceImporter done: 1368 ms
12:51:39 12:51:39.910 INFO - Sensor JavaSquidSensor...
12:51:39 12:51:39.982 INFO - Java AST scan...
12:51:42 :****Runner FAILED
12:51:42
12:51:42 FAILURE: Build failed with an exception.
12:51:42
12:51:42 * What went wrong:
12:51:42 Execution failed for task ':****Runner'.
12:51:42 > org.****.squid.api.AnalysisException: SonarQube is unable to analyze file : '/rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/src/java/com/thc/ids/biz/SomePlansvc/pvt/costestimate/datavalidation/Validators.java'
12:51:42
12:51:42 * Try:
12:51:42 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
12:51:42
12:51:42 BUILD FAILED
12:51:42
OR with property -Dsonar.verbose=true
12:46:00 12:46:00.208 DEBUG - Remove data measure from memory: ncloc_data, id=6508635
12:46:00 12:46:00.221 DEBUG - Release semaphore on project : org.****.api.resources.Project#3f1ea2e9[id=9200,key=com.company.shenzi:SomePlanSvc,qualifier=TRK], with key batch-com.company.shenzi:SomePlanSvc
12:46:00 12:46:00.248 DEBUG - To prevent a memory leak, the JDBC Driver [org.postgresql.Driver] has been forcibly deregistered
12:46:00 :****Runner FAILED
12:46:00
12:46:00 FAILURE: Build failed with an exception.
12:46:00
12:46:00 * What went wrong:
12:46:00 Execution failed for task ':****Runner'.
12:46:00 > org.****.squid.api.AnalysisException: SonarQube is unable to analyze file : '/rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/src/java/com/thc/ids/biz/SomePlansvc/pvt/costestimate/datavalidation/Validators.java'
12:46:00
12:46:00 * Try:
12:46:00 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
12:46:00
12:46:00 BUILD FAILED
OR with --stacktrace --debug passed as arguments to Gradle while running sonarRunner task.
12:38:54 12:38:54.268 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader#7f1a8ee58 pairs: {null: HTTP/1.1 200 OK}{Server: Apache-Coyote/1.1}{X-Runtime: 12}{ETag: "791167fe40a105310f7617f6946dbf31"}{Cache-Control: private, max-age=0, must-revalidate}{Content-Type: application/json;charset=utf-8}{Content-Length: 484}{Date: Tue, 05 Aug 2014 16:38:54 GMT}
12:38:54 12:38:54.279 [QUIET] [system.out] 12:38:54.279 INFO - Apply project exclusions
12:38:54 12:38:54.408 [QUIET] [system.out] 12:38:54.408 INFO - ------------- Scan SomePlanSvc
12:38:54 12:38:54.412 [QUIET] [system.out] 12:38:54.412 INFO - Load module settings
12:38:54 12:38:54.416 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader#4d7b95636 pairs: {GET /batch_bootstrap/properties?project=com.company.shenzi:SomePlanSvc&dryRun=false HTTP/1.1: null}{Accept-Encoding: gzip}{User-Agent: Sonar Runner/2.0}{Host: cmSonar.main.company.com:9000}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Connection: keep-alive}
12:38:54 12:38:54.448 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader#6c8cbe528 pairs: {null: HTTP/1.1 200 OK}{Server: Apache-Coyote/1.1}{X-Runtime: 9}{ETag: "791167fe40a105310f7617f6946dbf31"}{Cache-Control: private, max-age=0, must-revalidate}{Content-Type: application/json;charset=utf-8}{Content-Length: 484}{Date: Tue, 05 Aug 2014 16:38:54 GMT}
12:38:54 12:38:55.271 [QUIET] [system.out] 12:38:55.270 INFO - Quality profile : [name=Sonar way with Findbugs,language=java]
12:38:54 12:38:55.286 [QUIET] [system.out] 12:38:55.286 INFO - Excluded tests:
12:38:55 12:38:55.286 [QUIET] [system.out] 12:38:55.286 INFO - **/package-info.java
12:38:55 12:38:55.371 [QUIET] [system.out] 12:38:55.371 INFO - Index files
12:38:55 12:38:55.903 [QUIET] [system.out] 12:38:55.903 INFO - 324 files indexed
12:38:55 12:38:55.916 [QUIET] [system.out] 12:38:55.915 INFO - Loading technical debt model...
12:38:55 12:38:56.645 [QUIET] [system.out] 12:38:56.645 INFO - Loading technical debt model done: 730 ms
12:38:55 12:38:56.668 [QUIET] [system.out] 12:38:56.668 INFO - Configure Maven plugins
12:38:56 12:38:57.214 [QUIET] [system.out] 12:38:57.214 INFO - Base dir: /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc
12:38:56 12:38:57.214 [QUIET] [system.out] 12:38:57.214 INFO - Working dir: /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/build/****
12:38:57 12:38:57.214 [QUIET] [system.out] 12:38:57.214 INFO - Source dirs: /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/src/java
12:38:57 12:38:57.215 [QUIET] [system.out] 12:38:57.215 INFO - Test dirs: /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/test/java, /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/src/java-test
12:38:57 12:38:57.215 [QUIET] [system.out] 12:38:57.215 INFO - Binary dirs: /rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/build/classes/main
12:38:57 12:38:57.215 [QUIET] [system.out] 12:38:57.215 INFO - Source encoding: UTF-8, default locale: en_US
12:38:57 12:38:57.317 [QUIET] [system.out] 12:38:57.317 INFO - Sensor JavaSourceImporter...
12:38:57 12:38:58.663 [QUIET] [system.out] 12:38:58.663 INFO - Sensor JavaSourceImporter done: 1346 ms
12:38:57 12:38:58.663 [QUIET] [system.out] 12:38:58.663 INFO - Sensor JavaSquidSensor...
12:38:58 12:38:58.742 [QUIET] [system.out] 12:38:58.742 INFO - Java AST scan...
12:38:58 12:39:01.222 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer#3cff8f2c, org.gradle.logging.internal.logback.LogbackLoggingConfigurer#2e10b0fd, org.gradle.logging.internal.JavaUtilLoggingConfigurer#49d3c9ab]
12:38:58 12:39:01.222 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on task artifact state cache (/rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/.gradle/1.6/taskArtifacts).
12:39:01 12:39:01.222 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
12:39:01 12:39:01.223 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':****Runner'
12:39:01 12:39:01.223 [LIFECYCLE] [org.gradle.TaskExecutionLogger] :****Runner FAILED
12:39:01 12:39:01.228 [ERROR] [org.gradle.BuildExceptionReporter]
12:39:01 12:39:01.229 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
12:39:01 12:39:01.229 [ERROR] [org.gradle.BuildExceptionReporter]
12:39:01 12:39:01.229 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
12:39:01 12:39:01.230 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':****Runner'.
12:39:01 12:39:01.230 [ERROR] [org.gradle.BuildExceptionReporter] > org.****.squid.api.AnalysisException: SonarQube is unable to analyze file : '/rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/src/java/com/thc/ids/biz/SomePlansvc/pvt/costestimate/datavalidation/Validators.java'
12:39:01 12:39:01.232 [ERROR] [org.gradle.BuildExceptionReporter]
12:39:01 12:39:01.232 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
12:39:01 12:39:01.233 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':****Runner'.
12:39:01 12:39:01.234 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
12:39:01 12:39:01.234 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
12:39:01 12:39:01.234 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
12:39:01 12:39:01.234 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.state.CacheLockReleasingTaskExecuter$1.run(CacheLockReleasingTaskExecuter.java:35)
12:39:01 12:39:01.234 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Factories$1.create(Factories.java:22)
12:39:01 12:39:01.234 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:179)
12:39:01 12:39:01.235 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:232)
12:39:01 12:39:01.235 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:142)
12:39:01 12:39:01.235 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:83)
12:39:01 12:39:01.235 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.state.CacheLockReleasingTaskExecuter.execute(CacheLockReleasingTaskExecuter.java:33)
12:39:01 12:39:01.236 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:58)
12:39:01 12:39:01.236 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ContextualisingTaskExecuter.execute(ContextualisingTaskExecuter.java:34)
12:39:01 12:39:01.236 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.state.CacheLockAcquiringTaskExecuter$1.run(CacheLockAcquiringTaskExecuter.java:39)
12:39:01 12:39:01.236 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Factories$1.create(Factories.java:22)
12:39:01 12:39:01.236 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:124)
12:39:01 12:39:01.236 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:112)
12:39:01 12:39:01.237 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:134)
12:39:01 12:39:01.237 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:79)
12:39:01 12:39:01.237 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.state.CacheLockAcquiringTaskExecuter.execute(CacheLockAcquiringTaskExecuter.java:37)
12:39:01 12:39:01.237 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
12:39:01 12:39:01.238 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
12:39:01 12:39:01.238 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
12:39:01 12:39:01.238 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)
12:39:01 12:39:01.238 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)
12:39:01 12:39:01.238 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:282)
12:39:01 12:39:01.238 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.executeTask(DefaultTaskPlanExecutor.java:48)
12:39:01 12:39:01.239 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.processTask(DefaultTaskPlanExecutor.java:34)
12:39:01 12:39:01.239 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:27)
12:39:01 12:39:01.239 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:89)
12:39:01 12:39:01.239 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
12:39:01 12:39:01.239 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
12:39:01 12:39:01.240 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
12:39:01 12:39:01.240 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
12:39:01 12:39:01.240 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.state.TaskCacheLockHandlingBuildExecuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)
12:39:01 12:39:01.240 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Factories$1.create(Factories.java:22)
12:39:01 12:39:01.240 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:124)
12:39:01 12:39:01.241 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:112)
12:39:01 12:39:01.241 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:134)
12:39:01 12:39:01.241 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:79)
12:39:01 12:39:01.241 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.state.TaskCacheLockHandlingBuildExecuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)
12:39:01 12:39:01.241 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
12:39:01 12:39:01.242 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
12:39:01 12:39:01.242 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
12:39:01 12:39:01.242 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
12:39:01 12:39:01.242 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
12:39:01 12:39:01.242 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)
12:39:01 12:39:01.243 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:166)
12:39:01 12:39:01.243 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
12:39:01 12:39:01.243 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
12:39:01 12:39:01.243 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)
12:39:01 12:39:01.243 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
12:39:01 12:39:01.244 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
12:39:01 12:39:01.244 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35)
12:39:01 12:39:01.244 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
12:39:01 12:39:01.244 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
12:39:01 12:39:01.244 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
12:39:01 12:39:01.244 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)
12:39:01 12:39:01.245 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)
12:39:01 12:39:01.245 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)
12:39:01 12:39:01.245 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)
12:39:01 12:39:01.245 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
12:39:01 12:39:01.245 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
12:39:01 12:39:01.246 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:48)
12:39:01 12:39:01.246 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
12:39:01 12:39:01.246 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.main(Main.java:39)
12:39:01 12:39:01.246 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
12:39:01 12:39:01.246 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
12:39:01 12:39:01.247 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:26)
12:39:01 12:39:01.247 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.****.runner.RunnerException: org.****.squid.api.AnalysisException: SonarQube is unable to analyze file : '/rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/src/java/com/thc/ids/biz/SomePlansvc/pvt/costestimate/datavalidation/Validators.java'
12:39:01 12:39:01.247 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.runner.Runner.delegateExecution(Runner.java:288)
12:39:01 12:39:01.247 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.runner.Runner.execute(Runner.java:151)
12:39:01 12:39:01.247 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.runner.Runner$execute.call(Unknown Source)
12:39:01 12:39:01.248 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.****.runner.SonarRunner.run(SonarRunner.groovy:52)
12:39:01 12:39:01.248 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:216)
12:39:01 12:39:01.248 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:122)
12:39:01 12:39:01.248 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)
12:39:01 12:39:01.248 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.****.runner.SonarRunner_Decorated.invokeMethod(Unknown Source)
12:39:01 12:39:01.248 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23)
12:39:01 12:39:01.249 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:217)
12:39:01 12:39:01.249 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
12:39:01 12:39:01.249 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:199)
12:39:01 12:39:01.249 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:526)
12:39:01 12:39:01.249 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:509)
12:39:01 12:39:01.250 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
12:39:01 12:39:01.250 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
12:39:01 12:39:01.250 [ERROR] [org.gradle.BuildExceptionReporter] ... 67 more
12:39:01 12:39:01.250 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.****.squid.api.AnalysisException: SonarQube is unable to analyze file : '/rootddisk/ci-jenkins/var_loc2/workspace/SomePlanSvc/src/java/com/thc/ids/biz/SomePlansvc/pvt/costestimate/datavalidation/Validators.java'
12:39:01 12:39:01.250 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.java.ast.AstScanner.scan(AstScanner.java:132)
12:39:01 12:39:01.251 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.java.JavaSquid.scanSources(JavaSquid.java:113)
12:39:01 12:39:01.251 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.java.JavaSquid.scan(JavaSquid.java:107)
12:39:01 12:39:01.251 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.plugins.java.JavaSquidSensor.analyse(JavaSquidSensor.java:79)
12:39:01 12:39:01.251 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:72)
12:39:01 12:39:01.251 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:114)
12:39:01 12:39:01.255 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.runner.Runner.delegateExecution(Runner.java:285)
12:39:01 12:39:01.256 [ERROR] [org.gradle.BuildExceptionReporter] ... 82 more
12:39:01 12:39:01.256 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NullPointerException
12:39:01 12:39:01.256 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.java.checks.EmptyMethodsCheck.isInAbstractClass(EmptyMethodsCheck.java:80)
12:39:01 12:39:01.256 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.java.checks.EmptyMethodsCheck.visitNode(EmptyMethodsCheck.java:47)
12:39:01 12:39:01.260 [ERROR] [org.gradle.BuildExceptionReporter] at org.****.java.ast.AstScanner.scan(AstScanner.java:93)
12:39:01 12:39:01.260 [ERROR] [org.gradle.BuildExceptionReporter] ... 110 more
12:39:01 12:39:01.260 [ERROR] [org.gradle.BuildExceptionReporter]
12:39:01 12:39:01.260 [LIFECYCLE] [org.gradle.BuildResultLogger]
12:39:01 12:39:01.260 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
12:39:01 12:39:01.261 [LIFECYCLE] [org.gradle.BuildResultLogger]
Validators.java file's code is:
package com.thc.ids.biz.someplansvc.pvt.costestimate.datavalidation;
import java.math.BigDecimal;
import java.util.Map;
/**
* Validate data
* #author Trinley
*
* #param <T>
*/
public enum Validators
{
VAL_PERCENT_DECIMAL
{
public void validate(Object value)
{
BigDecimal val = (BigDecimal)value;
if (val.compareTo(BigDecimal.ZERO) < 0 || val.compareTo(BigDecimal.ONE) > 0)
{
throw new IllegalArgumentException("Value: " + value + " out of range for: " + this);
}
}
},
VAL_POSITIVE_DECIMAL
{
public void validate(Object value)
{
BigDecimal val = (BigDecimal)value;
if (val.compareTo(BigDecimal.ZERO) < 0)
{
throw new IllegalArgumentException("Value: " + value + " out of range for: " + this);
}
}
},
VAL_NOP_BOOLEAN
{
public void validate(Object value) {}
},
VAL_NOP_DECIMAL
{
public void validate(Object value) {}
},
VAL_NOP_STRING
{
public void validate(Object value) {}
},
VAL_REQ_BOOLEAN
{
public void validate(Object value)
{
if (value == null)
{
throw new NoDataFoundException("A required boolean field is missing");
}
}
},
VAL_REQ_DECIMAL
{
public void validate(Object value)
{
if (value == null)
{
throw new NoDataFoundException("A required double field is missing");
}
}
},
VAL_REQ_GigaType
{
public void validate(Object value)
{
if (value == null)
{
throw new NoDataFoundException("A required GigaType field is missing");
}
}
},
VAL_REQ_MAP
{
public void validate(Object value)
{
if (value instanceof Map)
{
throw new NoDataFoundException("A Map field is invalid");
}
}
};
public abstract void validate(Object val);
}

Gradle + Sonar + Groovy = FAIL?

While executing:
gradle sonarAnalyze
for groovy project, following error occurs: loader constraint violation: loader (instance of org/codehaus/plexus/classworlds/ realm/ClassRealm) previously initiated loading for a different type with name "groovyjarjarantlr/TokenStream"
How this could be fixed?
Used versions:
gradle-1.0-milestone-8a
org.codehaus.groovy:groovy:1.8.4
sonar 2.13
Full stacktrace:
18:22:12.249 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':sonarAnalyze'
18:22:12.249 [ERROR] [org.gradle.BuildExceptionReporter]
18:22:12.264 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
18:22:12.264 [ERROR] [org.gradle.BuildExceptionReporter]
18:22:12.280 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
18:22:12.280 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':sonarAnalyze'.
18:22:12.296 [ERROR] [org.gradle.BuildExceptionReporter] > loader constraint violation: loader (instance of org/codehaus/plexus/classworlds/
realm/ClassRealm) previously initiated loading for a different type with name "groovyjarjarantlr/TokenStream"
18:22:12.311 [ERROR] [org.gradle.BuildExceptionReporter]
18:22:12.311 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
18:22:12.311 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonarAnaly
ze'.
18:22:12.327 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execut
eActions(ExecuteActionsTaskExecuter.java:68)
18:22:12.327 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execut
e(ExecuteActionsTaskExecuter.java:46)
18:22:12.327 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter
.execute(PostExecutionAnalysisTaskExecuter.java:34)
18:22:12.342 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter$1.r
un(CacheLockHandlingTaskExecuter.java:34)
18:22:12.342 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess$2.create(DefaultCacheAccess.
java:200)
18:22:12.342 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Default
CacheAccess.java:172)
18:22:12.358 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Default
CacheAccess.java:198)
18:22:12.358 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOper
ation(DefaultPersistentDirectoryStore.java:111)
18:22:12.358 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAcce
ss.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:83)
18:22:12.374 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter.exe
cute(CacheLockHandlingTaskExecuter.java:32)
18:22:12.374 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(
SkipUpToDateTaskExecuter.java:55)
18:22:12.374 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(Va
lidatingTaskExecuter.java:57)
18:22:12.389 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.
execute(SkipEmptySourceFilesTaskExecuter.java:41)
18:22:12.389 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.exe
cute(SkipTaskWithNoActionsExecuter.java:51)
18:22:12.389 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(Sk
ipOnlyIfTaskExecuter.java:52)
18:22:12.405 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.exe
cute(ExecuteAtMostOnceTaskExecuter.java:42)
18:22:12.405 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(Ab
stractTask.java:250)
18:22:12.405 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGrap
hExecuter.java:192)
18:22:12.421 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphE
xecuter.java:177)
18:22:12.421 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExe
cuter.java:83)
18:22:12.421 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExec
utionAction.java:36)
18:22:12.436 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.ja
va:61)
18:22:12.436 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter
.java:23)
18:22:12.436 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.
java:67)
18:22:12.452 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecute
r$1.run(TaskCacheLockHandlingBuildExecuter.java:31)
18:22:12.452 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess$1.create(DefaultCacheAccess.
java:111)
18:22:12.467 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.
java:126)
18:22:12.467 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.
java:109)
18:22:12.483 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(Defaul
tPersistentDirectoryStore.java:103)
18:22:12.483 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAcce
ss.useCache(DefaultTaskArtifactStateCacheAccess.java:79)
18:22:12.483 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecute
r.execute(TaskCacheLockHandlingBuildExecuter.java:29)
18:22:12.499 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.ja
va:61)
18:22:12.499 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter
.java:23)
18:22:12.499 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.
java:67)
18:22:12.499 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecut
ionAction.java:32)
18:22:12.514 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.ja
va:61)
18:22:12.514 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.ja
va:54)
18:22:12.514 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGrad
leLauncher.java:155)
18:22:12.530 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLaun
cher.java:110)
18:22:12.530 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher
.java:78)
18:22:12.530 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:42)
18:22:12.546 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:28)
18:22:12.546 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionReport
ingAction.java:32)
18:22:12.546 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionReport
ingAction.java:21)
18:22:12.561 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.execut
e(CommandLineActionFactory.java:238)
18:22:12.561 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.execut
e(CommandLineActionFactory.java:222)
18:22:12.561 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:48)
18:22:12.577 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:53)
18:22:12.577 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:51)
18:22:12.577 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.Execution.execute(Execution.java:28)
18:22:12.592 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:39)
18:22:12.592 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.main(Main.java:39)
18:22:12.592 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:51)
18:22:12.608 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:33)
18:22:12.608 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
18:22:12.608 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of
org/codehaus/plexus/classworlds/realm/ClassRealm) previously initiated loading for a different type with name "groovyjarjarantlr/TokenStrea
m"
18:22:12.624 [ERROR] [org.gradle.BuildExceptionReporter] at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassR
ealm.java:386)
18:22:12.624 [ERROR] [org.gradle.BuildExceptionReporter] at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(Self
FirstStrategy.java:42)
18:22:12.624 [ERROR] [org.gradle.BuildExceptionReporter] at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.jav
a:244)
18:22:12.639 [ERROR] [org.gradle.BuildExceptionReporter] at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.jav
a:230)
18:22:12.639 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.plugins.groovy.foundation.GroovyCpdTokenizer.tokenize(GroovyCpd
Tokenizer.java:43)
18:22:12.639 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.duplications.cpd.CPD.add(CPD.java:112)
18:22:12.655 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.duplications.cpd.CPD.add(CPD.java:91)
18:22:12.655 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.plugins.cpd.PmdEngine.configureCPD(PmdEngine.java:93)
18:22:12.655 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.plugins.cpd.PmdEngine.executeCPD(PmdEngine.java:72)
18:22:12.671 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.plugins.cpd.PmdEngine.analyse(PmdEngine.java:61)
18:22:12.671 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.plugins.cpd.CpdSensor.analyse(CpdSensor.java:82)
18:22:12.671 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
18:22:12.686 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.phases.Phases.execute(Phases.java:93)
18:22:12.686 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
18:22:12.686 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrap.Module.start(Module.java:83)
18:22:12.702 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:111)
18:22:12.702 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:101)
18:22:12.702 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrap.Module.start(Module.java:83)
18:22:12.717 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:10
2)
18:22:12.717 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrap.Module.start(Module.java:83)
18:22:12.717 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.Batch.execute(Batch.java:100)
18:22:12.733 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.Batch$execute.call(Unknown Source)
18:22:12.733 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.plugins.sonar.internal.SonarCodeAnalyzer.execute(SonarCode
Analyzer.groovy:51)
18:22:12.733 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.plugins.sonar.internal.SonarCodeAnalyzer$execute.call(Unkn
own Source)
18:22:12.749 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.plugins.sonar.SonarAnalyze.analyze(SonarAnalyze.groovy:48)
18:22:12.749 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(B
eanDynamicObject.java:196)
18:22:12.749 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.
java:102)
18:22:12.764 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDyna
micObject.java:93)
18:22:12.764 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.plugins.sonar.SonarAnalyze_Decorated.invokeMethod(Unknown
Source)
18:22:12.764 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23)
18:22:12.780 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFacto
ry$4.execute(AnnotationProcessingTaskFactory.java:150)
18:22:12.780 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFacto
ry$4.execute(AnnotationProcessingTaskFactory.java:145)
18:22:12.780 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTa
sk.java:495)
18:22:12.796 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTa
sk.java:484)
18:22:12.796 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execut
eActions(ExecuteActionsTaskExecuter.java:60)
18:22:12.811 [ERROR] [org.gradle.BuildExceptionReporter] ... 54 more
18:22:12.811 [ERROR] [org.gradle.BuildExceptionReporter]
18:22:12.827 [LIFECYCLE] [org.gradle.BuildResultLogger]
18:22:12.827 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
18:22:12.827 [LIFECYCLE] [org.gradle.BuildResultLogger]
18:22:12.842 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 1 mins 38.815 secs
It's a known incompatibility between Sonar and Gradle. Currently it's impossible to analyze Groovy code with Sonar/Gradle. Hopefully this will get addressed in a future Sonar/Gradle release.
I've forked the sonar-groovy-plugin here https://github.com/excentric/sonar-groovy-plugin
This fork allows sonar to analyse groovy code through gradle
Your other options is to crack open the sonar-groovy-plugin jar and add the following attribute to the manifest:
Plugin-ChildFirstClassLoader: true
I've now forked the latest 0.6 version of the plugin. Available here:
https://github.com/excentric/sonar-groovy