Updated to reflect Sonar-Runner
We have these projects configured:
We're using this sonar-project.properties file in the root of the folder containing our application source:
sonar.projectKey=Southern
sonar.projectName=Southern
sonar.projectVersion=1.0
sonar.sources=.
We run the sonar-runner command in the same folder in which the above properties file exists. We get the following error:
ERROR: Error during SonarQube Scanner execution
ERROR: Unable to load component class org.sonar.batch.report.ActiveRulesPublishe
r
ERROR: Caused by: Unable to load component interface org.sonar.api.batch.rule.Ac
tiveRules
ERROR: Caused by: Unable to load component class org.sonar.batch.rule.ModuleQPro
files
ERROR: Caused by: Error 500 on http://localhost:9000/api/qualityprofiles/search.
protobuf?projectKey=Southern
ERROR:
The SonarQube application and website are running and available.
Downloaded the sonar-runner.
Updated properties file: sonar-sources=src. Scans ran but hung with an error that the DB was locked.
Rebooted the machine and restarted SonarQube. Problem resolved. All scans run.
Related
While running the below code I'm getting Main class not find an error, I'm trying to load the sample XML file through XDBC app-server and xcc connector. Can anyone help me to find the error in this statement?
My Marklogic version 10.0.2-1
Command:
java -classpath "C:\Users\test\Downloads\MarkXCC.Java-10.0.9\lib\marklogic-xcc-10.0.9.jar:C:\Users\test\Downloads\MarkXCC.Java-10.0.9\lib\marklogic-xcc-examples-10.0.9.jar" com.marklogic.xcc.examples.ContentLoader xcc://user:password#test02.com/:8103 hello.xml
Error: Could not find or load main class com.marklogic.xcc.examples.ContentLoader
Caused by: java.lang.ClassNotFoundException: com.marklogic.xcc.examples.ContentLoader
win10, 64bit, no hadoop variable in local(or is tried both). Need drill to gain access to db while testing api. JAVA_HOME is set correctly as also PATH contains directory for jdc bin folder.When i try to start drill-embedded.bat i got the followng error message(not full cause stack doesn't allow to paste bigger piece of code):
Error: Failure in starting embedded Drillbit: UNSUPPORTED_OPERATION ERROR: Failure while attempting to load instance of the class of type org.apache.drill.exec.store.StoragePluginRegistry requested at path drill.exec.storage.registry.
[Error Id: 3a07daa6-a6bc-4a8e-996a-67bc3aa3a9f4 ] (state=,code=0)
java.sql.SQLException: Failure in starting embedded Drillbit: UNSUPPORTED_OPERATION ERROR: Failure while attempting to load instance of the class of type org.apache.drill.exec.store.StoragePluginRegistry requested at path drill.exec.storage.registry.
[Error Id: 3a07daa6-a6bc-4a8e-996a-67bc3aa3a9f4 ]
at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:137)
at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:67)
at org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:67)
at org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:138)
at org.apache.drill.jdbc.Driver.connect(Driver.java:75)
at sqlline.DatabaseConnection.connect(DatabaseConnection.java:135)
at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:192)
at sqlline.Commands.connect(Commands.java:1364)
at sqlline.Commands.connect(Commands.java:1244)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
at sqlline.SqlLine.dispatch(SqlLine.java:730)
at sqlline.SqlLine.initArgs(SqlLine.java:410)
at sqlline.SqlLine.begin(SqlLine.java:515)
at sqlline.SqlLine.start(SqlLine.java:267)
at sqlline.SqlLine.main(SqlLine.java:206)
Caused by: org.apache.drill.common.exceptions.UserException: UNSUPPORTED_OPERATION ERROR: Failure while attempting to load instance of the class of type org.apache.drill.exec.store.StoragePluginRegistry requested at path drill.exec.storage.registry.
'''
This is a strange error. What version of Drill are you using?
Does it make a difference if you use this command:
sqlline.bat -u "jdbc:drill:zk=local"
What it looks like is happening is that the storage plugin registry is somehow corrupted. If storage plugin files are manually edited, or otherwise altered outside of Drill, this can happen.
While using the AWS Toolkit for Eclipse, an error has been encountered when attempting to upload a Lambda function; the error is that that JAR creation failed. It is a simple "Hello World" application that was created to ensure that the environment is working; it follows the AWS tutorial: https://docs.amazonaws.cn/toolkit-for-eclipse/v1/user-guide/lambda-tutorial.html
The "Maven Build..." works fine to create the JAR without any error; following the steps in https://docs.amazonaws.cn/en_us/lambda/latest/dg/java-create-jar-pkg-maven-and-eclipse.html.
Eclipse is being run on a Mac and the JRE is Amazon Corretto 11 (11.0.4).
Any suggestions?
Here are the details of the errors:
Failed to upload project to Lambda
m.amazonaws.eclipse.core.exceptions.AwsActionException
at com.amazonaws.eclipse.lambda.upload.wizard.UploadFunctionWizard.doFinish(UploadFunctionWizard.java:115)
at com.amazonaws.eclipse.core.plugin.AbstractAwsJobWizard$1.run(AbstractAwsJobWizard.java:35)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.NullPointerException
at com.amazonaws.eclipse.lambda.upload.wizard.util.UploadFunctionUtil.performFunctionUpload(UploadFunctionUtil.java:82)
at com.amazonaws.eclipse.lambda.upload.wizard.UploadFunctionWizard.doFinish(UploadFunctionWizard.java:111)
Unable to export project [testproject] to jar file
java.lang.reflect.InvocationTargetException: JAR creation failed. See details for additional information.
at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.singleRun(JarFileExportOperation.java:1006)
at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.execute(JarFileExportOperation.java:996)
at org.eclipse.ui.actions.WorkspaceModifyOperation.lambda$0(WorkspaceModifyOperation.java:110)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2295)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2322)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:131)
at com.amazonaws.eclipse.lambda.upload.wizard.util.FunctionJarExportHelper.exportProjectToJarFile(FunctionJarExportHelper.java:78)
at com.amazonaws.eclipse.lambda.upload.wizard.util.UploadFunctionUtil.performFunctionUpload(UploadFunctionUtil.java:68)
at com.amazonaws.eclipse.lambda.upload.wizard.UploadFunctionWizard.doFinish(UploadFunctionWizard.java:111)
at com.amazonaws.eclipse.core.plugin.AbstractAwsJobWizard$1.run(AbstractAwsJobWizard.java:35)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
While building a Maven project in Jenkins, I am getting below error. Can you provide steps to solve this error?
Building in workspace C:\Program Files (x86)\Jenkins\workspace\JenkinProject
Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven on Jenkins
ERROR: Failed to parse POMs
java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven\apache-maven-3.5.3 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven\apache-maven-3.5.3.__rename
at hudson.FilePath$29.invoke(FilePath.java:2107)
Finished: FAILURE
I am running command 'gradle sonarqube --stacktrace" which started resulting in the following:
Analysis report generated in /Users/shashank.devan/dev/myproject/build/sonar/batch-report
23:38:14.994 DEBUG - Couldn't delete lock file: /Users/shashank.devan/dev/myproject/./.sonar_lock java.nio.file.NoSuchFileException: /Users/shashank.devan/dev/myproject/./.sonar_lock
> Buildiat sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
at java.nio.file.Files.delete(Files.java:1126)
at org.sonar.home.cache.DirectoryLock.unlock(DirectoryLock.java:98)
at org.sonar.batch.scan.ProjectLock.stop(ProjectLock.java:57)..
..
What went wrong:
Execution failed for task ':myproject:sonarqube'.
> Unable to execute Sonar
Did I miss something? The command was working fine for other directories.
I faced this error recently. Analysis successful but report processing failed[Saying .sonarlock file couldn't be deleted]
I had warnings in the build but no error.
we need to check the logs of sonar analysis for more information.So from build console navigate to sonar url.
[INFO] [20:02:34.373] ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/com.app
Click on Administration->background tasks->(check your failed build with logs link at end)->open logs to check the error.
I had validation failed error for multimodule mvn project in sonar logs.
org.sonar.api.utils.MessageException: Validation of project failed:
o Module "com.app:app-bootstrap" is already part of project "com.app:appco"
Fixed it by updating the group id's of all my projects modules and submodules.