Sonar successfully executed, no code coverage reported - java

I have a java-project that I wish to do some analysis on using Sonar.
I have a build.xml file with a target called sonar that just points out where my sonar-ant-task.jar-file is located, and this is the rest:
<sonar:sonar workDir="${source.path}" key="${ant.project.name}" version="${version}" xmlns:sonar="antlib:org.sonar.ant">
When I run it I get this:
sonar:
[sonar:sonar] Apache Ant(TM) version 1.8.2 compiled on December 20 2010
[sonar:sonar] Sonar Ant Task version: 1.0
[sonar:sonar] Sonar work directory: PATH/src
[sonar:sonar] Sonar server: http://localhost:9000
[sonar:sonar] Sonar version: 3.0.1
[sonar:sonar] 09:16:47.958 INFO o.s.c.p.Database - Create JDBC datasource
[sonar:sonar] 09:16:48.672 INFO actDatabaseConnector - Initializing Hibernate
[sonar:sonar] 09:16:50.700 INFO .s.b.b.ProjectModule - ------------- Analyzing package
[sonar:sonar] 09:16:51.407 INFO .s.b.ProfileProvider - Selected quality profile : [name=Sonar way with Findbugs,language=java]
[sonar:sonar] 09:16:51.426 INFO nPluginsConfigurator - Configure maven plugins...
[sonar:sonar] 09:16:51.549 INFO org.sonar.INFO - Compare to previous analysis (2012-10-15)
[sonar:sonar] 09:16:51.588 INFO org.sonar.INFO - Compare over 5 days (2012-10-10, analysis of 2012-10-15 09:09:26.826)
[sonar:sonar] 09:16:51.621 INFO org.sonar.INFO - Compare over 30 days (2012-09-15, analysis of 2012-10-15 09:09:26.826)
[sonar:sonar] 09:16:51.664 INFO .b.p.SensorsExecutor - Initializer ProjectFileSystemLogger...
[sonar:sonar] 09:16:51.668 INFO .b.p.SensorsExecutor - Initializer ProjectFileSystemLogger done: 4 ms
[sonar:sonar] 09:16:51.679 INFO p.PhasesTimeProfiler - Sensor JavaSourceImporter...
[sonar:sonar] 09:16:51.713 INFO p.PhasesTimeProfiler - Sensor JavaSourceImporter done: 34 ms
[sonar:sonar] 09:16:51.713 INFO p.PhasesTimeProfiler - Sensor SquidSensor...
[sonar:sonar] 09:16:51.745 INFO .s.p.s.SquidExecutor - Java Squid scan...
[sonar:sonar] 09:16:51.749 INFO .s.p.s.SquidExecutor - Java Squid scan done: 4 ms
[sonar:sonar] 09:16:51.749 INFO p.PhasesTimeProfiler - Sensor SquidSensor done: 36 ms
[sonar:sonar] 09:16:51.750 INFO p.PhasesTimeProfiler - Sensor SurefireSensor...
[sonar:sonar] 09:16:51.751 INFO s.p.s.SurefireSensor - parsing PATH\src\target\surefire-reports
[sonar:sonar] 09:16:51.757 INFO p.PhasesTimeProfiler - Sensor SurefireSensor done: 7 ms
[sonar:sonar] 09:16:51.757 INFO p.PhasesTimeProfiler - Sensor CpdSensor...
[sonar:sonar] 09:16:51.757 INFO org.sonar.INFO - SonarEngine is used
[sonar:sonar] 09:16:51.758 INFO p.PhasesTimeProfiler - Sensor CpdSensor done: 0 ms
[sonar:sonar] 09:16:51.758 INFO p.PhasesTimeProfiler - Sensor ProfileSensor...
[sonar:sonar] 09:16:52.403 INFO p.PhasesTimeProfiler - Sensor ProfileSensor done: 645 ms
[sonar:sonar] 09:16:52.404 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor...
[sonar:sonar] 09:16:52.435 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor done: 31 ms
[sonar:sonar] 09:16:52.436 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor...
[sonar:sonar] 09:16:52.465 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor done: 29 ms
[sonar:sonar] 09:16:52.750 INFO p.PhasesTimeProfiler - Execute decorators...
[sonar:sonar] 09:16:52.910 INFO .b.p.UpdateStatusJob - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000
[sonar:sonar] 09:16:52.911 INFO b.p.PostJobsExecutor - Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob
[sonar:sonar] 09:16:52.969 INFO b.p.PostJobsExecutor - Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob
[sonar:sonar] 09:16:52.982 INFO .p.d.p.KeepOneFilter - -> Keep one snapshot per day between 2012-09-17 and 2012-10-15
[sonar:sonar] 09:16:52.984 INFO DefaultPeriodCleaner - <- Delete snapshot: 2012-10-15T09:11:13+0200 [463]
[sonar:sonar] 09:16:53.006 INFO .p.d.p.KeepOneFilter - -> Keep one snapshot per week between 2011-10-17 and 2012-09-17
[sonar:sonar] 09:16:53.006 INFO .p.d.p.KeepOneFilter - -> Keep one snapshot per month between 2007-10-22 and 2011-10-17
[sonar:sonar] 09:16:53.007 INFO .d.p.DeleteAllFilter - -> Delete data prior to: 2007-10-22
[sonar:sonar] 09:16:53.011 INFO o.s.c.purge.PurgeDao - -> Clean package [id=404]
BUILD SUCCESSFUL
Total time: 7 seconds
When I browse to http://localhost:9000 I can see the Sonar dashboard with my project but no lines analyzed, it's all empty and code coverage says '-'.
Any ideas?
Thanks!

Is there any configuration options in you build.xml under the sonar:sonar tag?
It seems that you use the Sonar Ant task v1.0. In this case you have to define where your source code is according to this wiki page.
If you are new to Sonar, maybe you should try the Sonar Ant task v2.0.

Related

Docx4j in AWS Lambda

Hello I'm trying to implement this library in AWS lambda.
But I got stuck in
wordMLPackage = WordprocessingMLPackage.createPackage();
And the lambda would timeout.
I can execute the function in my local environment.
Anyone can help me here?
I'm Using Java JDK 8 for my local environment.
The lambda function has execution basic role and s3 full permission with 1024MB of memory and 10 seconds of execution limit. The function is not in any VPC.
EDIT:
Here's my full log after adding log4j
`START RequestId: ab3cc460-ddfd-11e7-bb93-43bcee7d169c Version: $LATEST
Dec 10, 2017 10:58:42 PM pp.generator.docx.RequestFunctionHandler
handleRequest
INFO: Handling request
Dec 10, 2017 10:58:43 PM pp.generator.docx.RequestFunctionHandler
handleRequest
INFO: Creating Word processingMLPackage
DEBUG org.docx4j.utils.ResourceUtils .getResource line 70 - Attempting to load: docx4j.properties
0 [main] DEBUG org.docx4j.utils.ResourceUtils - Attempting to load: docx4j.properties
DEBUG org.docx4j.utils.ResourceUtils .getResource line 87 - Trying Thread.currentThread().getContextClassLoader()
10 [main] DEBUG org.docx4j.utils.ResourceUtils - Trying Thread.currentThread().getContextClassLoader()
WARN org.docx4j.utils.ResourceUtils .getResource line 96 - Couldn't get resource: docx4j.properties
11 [main] WARN org.docx4j.utils.ResourceUtils - Couldn't get resource: docx4j.properties
WARN org.docx4j.Docx4jProperties .init line 22 - Couldn't find/read docx4j.properties; docx4j.properties not found via classloader.
12 [main] WARN org.docx4j.Docx4jProperties - Couldn't find/read docx4j.properties; docx4j.properties not found via classloader.
INFO org.docx4j.jaxb.Context .<clinit> line 86 - java.vendor=Oracle Corporation
76 [main] INFO org.docx4j.jaxb.Context - java.vendor=Oracle Corporation
INFO org.docx4j.jaxb.Context .<clinit> line 87 - java.version=1.8.0_141
76 [main] INFO org.docx4j.jaxb.Context - java.version=1.8.0_141
DEBUG org.docx4j.utils.ResourceUtils .getResource line 70 - Attempting to load: org/docx4j/wml/jaxb.properties
172 [main] DEBUG org.docx4j.utils.ResourceUtils - Attempting to load: org/docx4j/wml/jaxb.properties
DEBUG org.docx4j.utils.ResourceUtils .getResource line 87 - Trying Thread.currentThread().getContextClassLoader()
172 [main] DEBUG org.docx4j.utils.ResourceUtils - Trying Thread.currentThread().getContextClassLoader()
DEBUG org.docx4j.utils.ResourceUtils .getResource line 94 - Not using MOXy, since no resource: org/docx4j/wml/jaxb.properties
189 [main] DEBUG org.docx4j.utils.ResourceUtils - Not using MOXy, since no resource: org/docx4j/wml/jaxb.properties
INFO org.docx4j.jaxb.NamespacePrefixMapperUtils .getPrefixMapper line 75 -
Using NamespacePrefixMapperSunInternal, which is suitable for Java 6
432 [main] INFO org.docx4j.jaxb.NamespacePrefixMapperUtils - Using NamespacePrefixMapperSunInternal, which is suitable for Java 6
END RequestId: ab3cc460-ddfd-11e7-bb93-43bcee7d169c
REPORT RequestId: ab3cc460-ddfd-11e7-bb93-43bcee7d169c Duration: 10003.62 ms Billed Duration: 10000 ms Memory Size: 1024 MB Max Memory Used: 127 MB
2017-12-10T22:58:52.783Z ab3cc460-ddfd-11e7-bb93-43bcee7d169c Task timed out after 10.00 seconds`

Eureka Service fails with exception after client connects

I am following the example from here.
I also have the Eureka server running on localhost:8080.
As a next step I attempt to run the sample service, like this:
./gradlew :eureka-examples:runExampleService
Here is the output that I get:
$ ./gradlew :eureka-examples:runExampleService --stacktrace
Inferred project: eureka, version: 1.4.6-SNAPSHOT
Publication mavenNebula not found in project :.
[buildinfo] Properties file path was not found! (Relevant only for builds running on a CI Server)
Publication named 'mavenNebula' does not exist for project ':' in task ':artifactoryPublish'.
None of the specified publications matched for project ':' - nothing to publish.
:eureka-client:compileJava UP-TO-DATE
:eureka-client:processResources UP-TO-DATE
:eureka-client:classes UP-TO-DATE
:eureka-client:writeManifestProperties UP-TO-DATE
:eureka-client:jar
:eureka-examples:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 warning
:eureka-examples:processResources UP-TO-DATE
:eureka-examples:classes
:eureka-examples:runExampleService
[main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
[main] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
[main] INFO com.netflix.config.DynamicPropertyFactory - DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration#46ee7fe8
[main] INFO com.netflix.config.util.ConfigurationUtils - Loaded properties file file:/Users/lenok/Documents/Programming/Github/eureka/eureka-examples/conf/sample-eureka-service.properties
[main] WARN com.netflix.config.util.ConfigurationUtils - file:/Users/lenok/Documents/Programming/Github/eureka/eureka-examples/conf/sample-eureka-service.properties is already loaded
[main] INFO com.netflix.appinfo.providers.EurekaConfigBasedInstanceInfoProvider - Setting initial instance status as: STARTING
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using JSON encoding codec LegacyJacksonJson
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using JSON decoding codec LegacyJacksonJson
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using XML encoding codec XStreamXml
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using XML decoding codec XStreamXml
[main] INFO com.netflix.discovery.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration
[main] INFO com.netflix.discovery.DiscoveryClient - Disable delta property : false
[main] INFO com.netflix.discovery.DiscoveryClient - Single vip registry refresh property : null
[main] INFO com.netflix.discovery.DiscoveryClient - Force full registry fetch : false
[main] INFO com.netflix.discovery.DiscoveryClient - Application is null : false
[main] INFO com.netflix.discovery.DiscoveryClient - Registered Applications size is zero : true
[main] INFO com.netflix.discovery.DiscoveryClient - Application version is -1: true
[main] INFO com.netflix.discovery.DiscoveryClient - Getting all instance registry info from the eureka server
[main] INFO com.netflix.discovery.DiscoveryClient - The response status is 200
[main] INFO com.netflix.discovery.DiscoveryClient - Starting heartbeat executor: renew interval is: 30
[main] INFO com.netflix.discovery.InstanceInfoReplicator - InstanceInfoReplicator onDemand update allowed rate per min is 4
Registering service to eureka with STARTING status
Simulating service initialization by sleeping for 2 seconds...
Done sleeping, now changing status to UP
[main] INFO com.netflix.discovery.DiscoveryClient - Saw local status change event StatusChangeEvent [timestamp=1458260744041, current=UP, previous=STARTING]
Waiting ... verifying service registration with eureka ...
[DiscoveryClient-InstanceInfoReplicator-0] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_SAMPLEREGISTERINGSERVICE/Alenas-MacBook-Pro.local: registering service...
[DiscoveryClient-InstanceInfoReplicator-0] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_SAMPLEREGISTERINGSERVICE/Alenas-MacBook-Pro.local - registration status: 204
Waiting ... verifying service registration with eureka ...
Waiting ... verifying service registration with eureka ...
Service started and ready to process requests..
> Building 88% > :eureka-examples:runExampleService
After I start the client, like this:
$ ./gradlew :eureka-examples:runExampleClient
Inferred project: eureka, version: 1.4.6-SNAPSHOT
Publication mavenNebula not found in project :.
[buildinfo] Properties file path was not found! (Relevant only for builds running on a CI Server)
Publication named 'mavenNebula' does not exist for project ':' in task ':artifactoryPublish'.
None of the specified publications matched for project ':' - nothing to publish.
:eureka-client:compileJava UP-TO-DATE
:eureka-client:processResources UP-TO-DATE
:eureka-client:classes UP-TO-DATE
:eureka-client:writeManifestProperties UP-TO-DATE
:eureka-client:jar
:eureka-examples:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 warning
:eureka-examples:processResources UP-TO-DATE
:eureka-examples:classes
:eureka-examples:runExampleClient
[main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
[main] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
[main] INFO com.netflix.config.DynamicPropertyFactory - DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration#46ee7fe8
[main] INFO com.netflix.config.util.ConfigurationUtils - Loaded properties file file:/Users/lenok/Documents/Programming/Github/eureka/eureka-examples/conf/sample-eureka-client.properties
[main] WARN com.netflix.config.util.ConfigurationUtils - file:/Users/lenok/Documents/Programming/Github/eureka/eureka-examples/conf/sample-eureka-client.properties is already loaded
[main] INFO com.netflix.appinfo.providers.EurekaConfigBasedInstanceInfoProvider - Setting initial instance status as: STARTING
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using JSON encoding codec LegacyJacksonJson
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using JSON decoding codec JacksonJson
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using XML encoding codec XStreamXml
[main] INFO com.netflix.discovery.provider.DiscoveryJerseyProvider - Using XML decoding codec XStreamXml
[main] INFO com.netflix.discovery.shared.resolver.aws.ConfigClusterResolver - Resolving eureka endpoints via configuration
[main] INFO com.netflix.discovery.DiscoveryClient - Disable delta property : false
[main] INFO com.netflix.discovery.DiscoveryClient - Single vip registry refresh property : null
[main] INFO com.netflix.discovery.DiscoveryClient - Force full registry fetch : false
[main] INFO com.netflix.discovery.DiscoveryClient - Application is null : false
[main] INFO com.netflix.discovery.DiscoveryClient - Registered Applications size is zero : true
[main] INFO com.netflix.discovery.DiscoveryClient - Application version is -1: true
[main] INFO com.netflix.discovery.DiscoveryClient - Getting all instance registry info from the eureka server
[main] INFO com.netflix.discovery.DiscoveryClient - The response status is 200
[main] INFO com.netflix.discovery.DiscoveryClient - Not registering with Eureka server per configuration
Found an instance of example service to talk to from eureka: sampleservice.mydomain.net:8001
healthCheckUrl: http://Alenas-MacBook-Pro.local:8001/healthcheck
override: UNKNOWN
Connected to server. Sending a sample request: FOO Thu Mar 17 17:11:33 PDT 2016
Waiting for server response..
Received response from server: BAR Thu Mar 17 17:11:33 PDT 2016
Exiting the client. Demo over..
BUILD SUCCESSFUL
Total time: 9.497 secs
It basically connects to the server and waits for response, etc.
At the same time on the service terminal I see the following happening. Sometimes when I do these actions I see the successful response on the eureka service:
Client got connected... processing request from the client
Received a request from the example client: FOO Thu Mar 17 17:30:16 PDT 2016
Sending the response to the client: BAR Thu Mar 17 17:30:16 PDT 2016
Simulating service doing work by sleeping for 10 seconds...
Removing registration from eureka
[main] INFO com.netflix.discovery.DiscoveryClient - DiscoveryClient_SAMPLEREGISTERINGSERVICE/Alenas-MacBook-Pro.local - deregister status: 200
Shutting down server. Demo over.
BUILD SUCCESSFUL
Total time: 4 mins 53.331 secs
And sometimes it gives errors, like here:
Client got connected... processing request from the client
Received a request from the example client: FOO Thu Mar 17 17:33:30 PDT 2016
Sending the response to the client: BAR Thu Mar 17 17:33:30 PDT 2016
Simulating service doing work by sleeping for 10 seconds...
Removing registration from eureka
Exception in thread "main" java.lang.NoClassDefFoundError: com/netflix/discovery/shared/transport/decorator/EurekaHttpClientDecorator$2
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.cancel(EurekaHttpClientDecorator.java:71)
at com.netflix.discovery.DiscoveryClient.unregister(DiscoveryClient.java:886)
at com.netflix.discovery.DiscoveryClient.shutdown(DiscoveryClient.java:869)
at com.netflix.eureka.ExampleServiceBase.stop(ExampleServiceBase.java:89)
at com.netflix.eureka.ExampleServiceBase.start(ExampleServiceBase.java:80)
at com.netflix.eureka.ExampleEurekaService.main(ExampleEurekaService.java:45)
Caused by: java.lang.ClassNotFoundException: com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$2
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 6 more
:eureka-examples:runExampleService FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':eureka-examples:runExampleService'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
* Try:
Run with --info or --debug option to get more log output.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':eureka-examples:runExampleService'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
at org.gradle.launcher.Main.doAction(Main.java:33)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56)
Caused by: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:365)
at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:31)
at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:60)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
... 47 more
BUILD FAILED
Total time: 1 mins 1.267 secs
Please, help me get the example properly running. What might be the problem?

SonarQube Component Coverage details with JUnitTest reports: How to avoid resource not found warning?

I'm pretty new to sonar but unfortunately I wasn't able to find any information in the net the last to days which could help me to solve my problem.
I'm running a SonarRunner on a Jenkins server and I'm trying to insert jUnit reports in order to see some content in the Coverage tab of the project on SonarQube.
The problem seems to be in loading the created jUnit report since the error message is pointing out to the junit framework:
INFO: SonarQube Server 5.3
13:39:28.405 INFO - Load global repositories
13:39:28.608 INFO - Load global repositories (done) | time=203ms
13:39:28.639 INFO - User cache: C:\Windows\system32\config\systemprofile\.sonar\cache
13:39:28.890 INFO - Load plugins index
13:39:28.890 INFO - Load plugins index (done) | time=0ms
13:39:29.202 INFO - Process project properties
13:39:29.249 INFO - Load project repositories
13:39:29.339 INFO - Load project repositories (done) | time=90ms
13:39:29.339 INFO - Apply project exclusions
13:39:29.444 INFO - Load quality profiles
13:39:29.516 INFO - Load quality profiles (done) | time=72ms
13:39:29.519 INFO - Load active rules
13:39:29.766 INFO - Load active rules (done) | time=247ms
13:39:29.771 WARN - SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project.
13:39:29.771 INFO - Publish mode
13:39:29.771 INFO - ------------- Scan DatensatzManager
13:39:29.834 INFO - Load server rules
13:39:29.879 INFO - Load server rules (done) | time=45ms
13:39:29.911 INFO - Base dir: D:\SonarTest\P2209-DatensatzManager\03-Umsetzung\06-Src
13:39:29.911 INFO - Working dir: D:\SonarTest\P2209-DatensatzManager\03-Umsetzung\06-Src\.sonar
13:39:29.911 INFO - Source paths: src
13:39:29.911 INFO - Test paths: test/com/carmeq/dia/dsm
13:39:29.911 INFO - Source encoding: windows-1252, default locale: de_DE
13:39:29.911 INFO - Index files
13:39:30.051 INFO - 162 files indexed
13:39:30.051 INFO - Quality profile for java: Sonar way
13:39:30.067 INFO - Sensor JavaSquidSensor
13:39:30.257 INFO - Configured Java source version: none
13:39:30.459 INFO - Java Main Files AST scan...
13:39:30.459 INFO - 144 source files to be analyzed
13:39:40.551 INFO - 99/144 files analyzed, current file: D:\SonarTest\P2209-DatensatzManager\03-Umsetzung\06-Src\src\com\carmeq\dia\dsm\core\util\RawDatasetImportExport.java
13:39:50.558 INFO - 138/144 files analyzed, current file: D:\SonarTest\P2209-DatensatzManager\03-Umsetzung\06-Src\src\com\carmeq\dia\dsm\template_editor\logic\GUIActions.java
13:39:51.303 INFO - Java Main Files AST scan done: 20844 ms
13:39:51.303 INFO - 144/144 source files have been analyzed
13:39:51.303 WARN - Java bytecode has not been made available to the analyzer. The org.sonar.java.bytecode.visitor.DependenciesVisitor#1f6e340, org.sonar.java.checks.UnusedPrivateMethodCheck#1f9344b are disabled.
13:39:51.303 INFO - Java Test Files AST scan...
13:39:51.303 INFO - 18 source files to be analyzed
13:39:51.702 INFO - Java Test Files AST scan done: 399 ms
13:39:51.702 INFO - 18/18 source files have been analyzed
13:39:51.702 INFO - Sensor JavaSquidSensor (done) | time=21635ms
13:39:51.702 INFO - Sensor Lines Sensor
13:39:51.718 INFO - Sensor Lines Sensor (done) | time=16ms
13:39:51.718 INFO - Sensor QProfileSensor
13:39:51.718 INFO - Sensor QProfileSensor (done) | time=0ms
13:39:51.718 INFO - Sensor SurefireSensor
13:39:51.718 INFO - parsing D:\SonarTest\P2209-DatensatzManager\03-Umsetzung\06-Src\report
13:39:51.792 WARN - Resource not found: junit.framework.TestSuite
13:39:51.795 INFO - Sensor SurefireSensor (done) | time=77ms
13:39:51.795 INFO - Sensor SCM Sensor
13:39:51.795 INFO - No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
13:39:51.795 INFO - Sensor SCM Sensor (done) | time=0ms
13:39:51.795 INFO - Sensor Code Colorizer Sensor
13:39:51.798 INFO - Sensor Code Colorizer Sensor (done) | time=3ms
13:39:51.798 INFO - Sensor CPD Sensor
13:39:51.798 INFO - JavaCpdEngine is used for java
13:39:52.234 INFO - Sensor CPD Sensor (done) | time=436ms
13:39:52.602 INFO - Analysis report generated in 352ms, dir size=3 MB
13:39:52.986 INFO - Analysis reports compressed in 384ms, zip size=1 MB
13:39:53.102 INFO - Analysis report uploaded in 116ms
13:39:53.102 INFO - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/my:project
13:39:53.102 INFO - Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
13:39:53.102 INFO - More about the report processing at http://localhost:9000/api/ce/task?id=AVLvPnH_lmKETL1ow_XQ
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
Total time: 25.530s
Final Memory: 6M/134M
INFO: ------------------------------------------------------------------------
Finished: SUCCESS
I absolutely don't know why Sonar is searching for the junit.framework.TestSuite. Is there anyone who can help me to solve this?
Cheers!
Please note that surefire sensor is about execution of unit tests NOT coverage.
To get coverage displayed, you need to provide a coverage report that you can generate using JaCoCo (recommended way and included in sonar java plugin) or using cobertura (need to install the dedicated plugin for SonarQube).
The surefire sensor will only get you information about the execution of tests.

Not able to execute java-custom-rules plugin in SonarQube

I am a newbie to SonarQube and I am working on creating a new Metrics for SOnarQube.
As a part of learning am trying the examples in the SonarQube site.
I was trying the example given here
I used maven clean and maven build in eclipse and created the jar file. I placed the jar file in the "extension/plugins" directory in the SonarQube server (I have locally installed the server in my Win 7 machine).
Then I used SonarQube Runner to link my project with SonarQube. How ever am getting this error:
C:\xxx\Desktop\Workspace\sonar-test>sonar-runner -e
C:\sonar-runner-2.4
SonarQube Runner 2.4
Java 1.6.0_21 Sun Microsystems Inc. (32-bit)
Windows 7 6.1 x86
INFO: Error stacktraces are turned on.
INFO: Runner configuration file: C:\sonar-runner-2.4\conf\sonar-runner.propertie
s
INFO: Project configuration file: C:\xxx\Desktop\Workspace\sona
r-test\sonar-project.properties
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Work directory: C:\xxx\Desktop\Workspace\sonar-test\.\.so
nar
INFO: SonarQube Server 4.5.1
13:47:39.244 INFO - Load global referentials...
13:47:39.546 INFO - Load global referentials done: 308 ms
13:47:39.570 INFO - User cache: C:\xxx\.sonar\cache
13:47:39.597 INFO - Install plugins
13:47:39.994 INFO - Install JDBC driver
13:47:40.012 INFO - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar
13:47:42.259 INFO - Initializing Hibernate
13:47:45.201 INFO - Load project referentials...
13:47:45.894 INFO - Load project referentials done: 693 ms
13:47:45.896 INFO - Load project settings
13:47:47.144 INFO - Loading technical debt model...
13:47:47.195 INFO - Loading technical debt model done: 51 ms
13:47:47.208 INFO - Apply project exclusions
13:47:47.920 INFO - ------------- Scan sonar-test
13:47:47.947 INFO - Load module settings
13:47:49.148 INFO - Loading rules...
13:47:50.030 INFO - Loading rules done: 882 ms
13:47:50.106 INFO - Configure Maven plugins
13:47:50.327 INFO - Compare to previous analysis (2014-11-06)
13:47:50.352 INFO - Compare over 30 days (2014-10-07, analysis of 2014-11-06 12
:28:06.816)
13:47:50.356 INFO - No quality gate is configured.
13:47:50.840 INFO - Base dir: C:\xxx\Desktop\Workspace\sonar-t
est\.
13:47:50.841 INFO - Working dir: C:\xxx\Desktop\Workspace\sona
r-test\.\.sonar
13:47:50.846 INFO - Source paths: src
13:47:50.847 INFO - Source encoding: UTF-8, default locale: en_US
13:47:50.849 INFO - Index files
13:47:51.001 INFO - 2 files indexed
13:47:51.146 INFO - Quality profile for java: Sonar way
13:47:51.171 INFO - Sensor JavaSquidSensor...
13:47:51.363 INFO - Java Main Files AST scan...
13:47:51.377 INFO - 2 source files to be analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 13.831s
Final Memory: 8M/99M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher
.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102
)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.NoSuchMethodError: org.sonar.plugins.java.api.tree.Tree.is(
[Lorg/sonar/plugins/java/api/tree/Tree$Kind;)Z
at org.sonar.samples.java.ExampleCheck.visitMethod(ExampleCheck.java:69)
at org.sonar.java.model.declaration.MethodTreeImpl.accept(MethodTreeImpl
.java:118)
at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.
java:41)
at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.
java:35)
at org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitClass(BaseTreeVi
sitor.java:64)
at org.sonar.java.model.declaration.ClassTreeImpl.accept(ClassTreeImpl.j
ava:107)
at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.
java:41)
at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.
java:35)
at org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitCompilationUnit(
BaseTreeVisitor.java:50)
at org.sonar.java.model.JavaTree$CompilationUnitTreeImpl.accept(JavaTree
.java:120)
at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.
java:41)
at org.sonar.samples.java.ExampleCheck.scanFile(ExampleCheck.java:51)
at org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:91)
at com.sonar.sslr.impl.ast.AstWalker.walkAndVisit(AstWalker.java:67)
at org.sonar.java.ast.AstScanner.simpleScan(AstScanner.java:118)
at org.sonar.java.ast.AstScanner.scan(AstScanner.java:83)
at org.sonar.java.JavaSquid.scanSources(JavaSquid.java:135)
at org.sonar.java.JavaSquid.scan(JavaSquid.java:128)
at org.sonar.plugins.java.JavaSquidSensor.analyse(JavaSquidSensor.java:8
6)
at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.
java:79)
at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:7
0)
at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:119)
at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanConta
iner.java:194)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentCo
ntainer.java:92)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.
java:77)
at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.j
ava:233)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScan
Container.java:228)
at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanCon
tainer.java:221)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentCo
ntainer.java:92)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.
java:77)
at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:64)
at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:51)
at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.ja
va:125)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentCo
ntainer.java:92)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.
java:77)
at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapCon
tainer.java:173)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java
:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher
.java:87)
... 9 more
ERROR:
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
According to this example this must create a issue whenever it encounters a method and a annotation starting with a letter 'Z'.
I tried creating a class with such inputs:
sample.java
package test;
public class Sample {
public static void main(String[] args) {
System.out.println("Test");
}
#Ztest(val="hi")
public static void add()
{
System.out.println("Add Method");
}
}
I also created an annotation file:
Ztest.java
package test;
public #interface Ztest {
String val();
}
But when I execute with the SonarQube Runner am getting the above error.
Kindly help me with this.
NoSuchMethodError means that a class is found by the classloader, but the method is missing. This occurs when you are using an older or newer version of a library at runtime, than your rule was compiled with. If you have multiple versions of the same library on your classpath, this still can occur, since the classloader will only load the class once, and I'm not sure if one can tell which version it will use.
If you look at the dependencies of java-custom-rule, it depends on sonar-java-plugin version 2.5, please check if your sonarqube instance has the same version of this plugin.
EDIT tl;dr update your sonarqube java plugin

Out of memory:java heap size in sonar?

I am analysing a large project in Sonar and getting following error,
00:41:48.325 INFO - Base dir: C:\Users\Administrator\Desktop\sonar-runner-dist-2.4\sonar-runner-2.4\bin\.
00:41:48.325 INFO - Working dir: C:\Users\Administrator\Desktop\sonar-runner-dist-2.4\sonar-runner-2.4\bin\.\.sonar
00:41:48.325 INFO - Source encoding: UTF-8, default locale: en_US
00:41:48.325 INFO - Quality profile for java: PMD
00:41:48.332 INFO - Sensor QProfileSensor...
00:41:48.336 INFO - Sensor QProfileSensor done: 4 ms
00:41:48.336 INFO - Sensor CpdSensor...
00:41:48.336 INFO - SonarEngine is used for java
00:41:48.336 INFO - Sensor CpdSensor done: 0 ms
00:41:48.336 INFO - Sensor InitialOpenIssuesSensor...
00:41:48.486 INFO - Sensor InitialOpenIssuesSensor done: 150 ms
00:41:48.486 INFO - Sensor ProfileEventsSensor...
00:41:48.602 INFO - Sensor ProfileEventsSensor done: 116 ms
00:41:48.603 INFO - Sensor ProjectLinksSensor...
00:41:48.605 INFO - Sensor ProjectLinksSensor done: 2 ms
00:41:48.606 INFO - Sensor VersionEventsSensor...
00:41:48.631 INFO - Sensor VersionEventsSensor done: 26 ms
00:41:48.631 INFO - Sensor FileHashSensor...
00:41:48.631 INFO - Sensor FileHashSensor done: 0 ms
00:41:48.794 INFO - Execute decorators...
00:41:49.256 INFO - Store results in database
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 1:19:23.133s
Final Memory: 11M/494M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:2694)
at java.lang.String.<init>(String.java:203)
at java.lang.StringBuilder.toString(StringBuilder.java:405)
at com.persistit.Value.get(Value.java:2143)
at com.persistit.DefaultValueCoder$ObjectFieldAccessor.fromValue(DefaultValueCoder.java:560)
at com.persistit.DefaultValueCoder.renderDefaultFields(DefaultValueCoder.java:1154)
at com.persistit.DefaultValueCoder.render(DefaultValueCoder.java:1132)
at com.persistit.DefaultValueCoder.get(DefaultValueCoder.java:1065)
at com.persistit.Value.get(Value.java:2413)
at com.persistit.encoding.CollectionValueCoder.render(CollectionValueCoder.java:220)
at com.persistit.encoding.CollectionValueCoder.get(CollectionValueCoder.java:167)
at com.persistit.Value.get(Value.java:2413)
at com.persistit.DefaultValueCoder$ObjectFieldAccessor.fromValue(DefaultValueCoder.java:560)
at com.persistit.DefaultValueCoder.renderDefaultFields(DefaultValueCoder.java:1154)
at com.persistit.DefaultValueCoder.render(DefaultValueCoder.java:1132)
at com.persistit.DefaultValueCoder.get(DefaultValueCoder.java:1065)
at com.persistit.Value.get(Value.java:2413)
at com.persistit.encoding.CollectionValueCoder.render(CollectionValueCoder.java:232)
at com.persistit.encoding.CollectionValueCoder.get(CollectionValueCoder.java:167)
at com.persistit.Value.get(Value.java:2413)
at com.persistit.DefaultValueCoder$ObjectFieldAccessor.fromValue(DefaultValueCoder.java:560)
at com.persistit.DefaultValueCoder.renderDefaultFields(DefaultValueCoder.java:1154)
at com.persistit.DefaultValueCoder.render(DefaultValueCoder.java:1132)
at com.persistit.DefaultValueCoder.get(DefaultValueCoder.java:1065)
at com.persistit.Value.get(Value.java:2413)
at com.persistit.Value.get(Value.java:2015)
at org.sonar.batch.index.Cache$ValueIterator.next(Cache.java:400)
at org.sonar.batch.index.Cache$ValueIterator.next(Cache.java:373)
at org.sonar.core.issue.db.IssueStorage.batchInsert(IssueStorage.java:77)
at org.sonar.core.issue.db.IssueStorage.save(IssueStorage.java:66)
at org.sonar.batch.issue.IssuePersister.persist(IssuePersister.java:52)
at org.sonar.batch.phases.PhaseExecutor.executePersisters(PhaseExecutor.java:163)
ERROR:
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
Can any one help me in finding out error,i am analysing project by setting java heap to 2048m in wrapper.conf i got out of memory heap size,so i tired to set java heap size to 5120 and sonar-runner-opts to 8192 but still its failing at same point,
These are the plugins which i have used abacus,checkstyles,pmd,java,useless code tracker
Database:mysql
Thanks in advance
Check the answer of this question .. it will help you wither to set the memory or fixing the issue of wrong selection with file extension
Sonar - OutOfMemoryError: Java heap space
If your code is to big then you have to break it into modules .. check this
http://docs.codehaus.org/display/ENUNCIATE/Multi-Module+Projects
I hope this could help!

Categories

Resources