Iam using sonarqube Version 5.0.1 along with sonar-ant-task-2.3.jar to analyse java source code.
My setup is working for many projects but for one project alone iam getting following error:
Caused by: com.persistit.exception.ConversionException: Requested
size=67108916 exceeds maximum size=67108864 at
com.persistit.Value.ensureFit(Value.java:784) at
com.persistit.Value.putCharSequenceInternal(Value.java:5411) at
com.persistit.Value.putUTF(Value.java:3518) at
org.sonar.batch.duplication.DuplicationBlockValueCoder.put(DuplicationBlockValueCoder.java:32)
at
org.sonar.batch.duplication.DuplicationGroupValueCoder.put(DuplicationGroupValueCoder.java:41)
at com.persistit.Value.put(Value.java:3453) at
com.persistit.encoding.CollectionValueCoder.put(CollectionValueCoder.java:126)
at com.persistit.Value.put(Value.java:3453) at
com.persistit.Value.put(Value.java:3255) at
org.sonar.batch.index.Cache.doPut(Cache.java:72) ... 57 more
Total time: 112 minutes 14 seconds
Build step 'Execute shell' marked build as failure
Finished: FAILURE
Can anyone please help me to fix the issue...
This issue is referenced by https://jira.sonarsource.com/browse/SONAR-6000 and is fixed in versions 4.5.4 and 5.1.
Related
I'm trying to upload my project to a remote sonarqube server.
This is the command I run sonar scanner:
sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=https://xxxx:9000 -Dsonar.login=the-secret-key -Dsonar.java.binaries=**/target/classes
but it throws the error on java.binaries.
INFO: Configured Java source version (sonar.java.source):
none
INFO: JavaClasspath initialization
ERROR: Invalid value for sonar.java.binaries
INFO: ------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------
INFO: Total time: 20.276s
INFO: Final Memory: 10M/161M
INFO: ------------------------------------------------------
------------------
ERROR: Error during SonarQube Scanner execution
No files nor directories matching **/target/classes
I tried different values like ./target, /target/, /target/classes (where the jar is being stored). However, I am encountering this error of not found. (even though the directory exists)
By running sonar:sonar on my IDE and maven sonar:sonar on my terminal would send over the result to sonarqube, but my goal is to include this command in my jet-steps
Very old post but may help someone. I had similar issue and below configuration worked for me:
sonar.sources=src/main/java
sonar.java.binaries=target/classes
We also experienced a similar issue on our project (Maven multimodule), and for us the following configuration made things work:
sonar.java.binaries=.
sonar.java.source=8
sonar.sources=.
PS Java source is just for reference, it should not matter to fix the issue.
In my case, Im working with gradle, and we have subaplications, we are using sonarqube plugin from azure. I have to adapt to find binaries like this way:
sonar.java.binaries=./streamHubAndroidSDK/build/**,./nota/build/**,./app/build/**
But later I found that its better to define like this:
sonar.java.binaries=**/build/**
I can find this first building Android-Gradle project locally, and looking for all .class generated with bash:
find . -path '*/build/*.class' | xargs | tr ' ' ','
Am new to Corda and IntelliJ. While following instructions at https://docs.corda.net/head/getting-set-up.html#run-from-intellij am unable to compile the Corda example app. Gradle sync is giving me the following exception
Warning:project ':kotlin-source': Unable to build Kotlin project configuration
Details: java.lang.reflect.InvocationTargetException: null
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':kotlin-source:integrationTestCompileClasspath'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.github.bft-smart:library:master-v1.1-beta-g6215ec8-87.
Required by:
project :kotlin-source > net.corda:corda-node-driver:3.2-corda > net.corda:corda-test-utils:3.2-corda > net.corda:corda-node:3.2-corda
Any guidance on what i am doing wrong here?
If i go to https://jitpack.io/com/github/bft-smart/library/master-v1.1-beta-g6215ec8-87/library-master-v1.1-beta-g6215ec8-87.jar It says "Build failed. See the log at jitpack.io"
As a further update the https://jitpack.io/com/github/bft-smart/library/master-v1.1-beta-g6215ec8-87/build.log shows the build failing since 30th August.
Any guidance on how i can force all of Corda to refer another version for the BFT-smart version? master-v1.1-beta-g34864da-135 ?
This was raised as an issue here and fixed here
Take a look at this post on how to resolve
getting the following error.
screenshot is also attached.
basically .bat is not getting generated.
ERROR: Step ‘Allure Report’ aborted due to exception:
java.io.IOException: Failed to rename C:\Users\dell\.jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\allure2\allure-2.4.1 to C:\Users\dell\.jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\allure2\allure-2.4.1.__rename
Now its working.
There is problem in allure command installation.
Maven central installer is giving error
Tried by giving link in jenkins global tool configuration and its working
Link : https://bintray.com/qameta/generic/download_file?file_path=io%2Fqameta%2Fallure%2Fallure%2F2.4.1%2Fallure-2.4.1.zip
I faced the same issue when configured with the latest version of Maven under Jenkins->Global Tool Configurations->Allure Commandline. Once i downgraded the Maven version I was able to generate allure reports successfully.
I had the same problem. In my case it was enough to delete allure-jenkins plugin from the list of plugins in Jenkins.
The maven repository appears to be down. Trying to fetch data from the following url results in an error:
https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml
Is this temporary or does this have to do with crosswalk no longer being developed?
=> Errors executing Cordova commands:
While building Cordova app for platform Android:
Error:/Users/fullhdpixel/Projects/MyRoutes/.meteor/local/cordova-build/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.
> Could not resolve org.xwalk:xwalk_core_library:23+. Required by: :android:unspecified
> Could not resolve org.xwalk:xwalk_core_library:23+.
> Failed to list versions for org.xwalk:xwalk_core_library.
> Unable to load Maven meta-data from https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml.
> Could not GET 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml'. Received status code 503 from server: Service Unavailable
There is already an open issue in their jira and another one on github. I guess it should be fixed by tomorrow (monday) as none of their maintainers will work on a weekend, be patient.
As the project maintainers stated here there will be no new releases but the source and repos will still be available for development.
Edit:
You can find a workaround until the servers are up again here.
It seems all of https://download.01.org is down!!!
An error occurred while processing your request.
Reference #30.22688343.1504522521.5cd76e0
Caused by: org.sonar.dotnet.tools.fxcop.FxCopException: FxCop execution failed with return code '2048'. Check FxCop documentation for more information.
at org.sonar.dotnet.tools.fxcop.FxCopRunner.execute(FxCopRunner.java:86)
at org.sonar.plugins.csharp.fxcop.FxCopSensor.launchFxCop(FxCopSensor.java:214)
at org.sonar.plugins.csharp.fxcop.FxCopSensor.analyse(FxCopSensor.java:169)
Please find the attached log for the error.
Softwares used:
Sonarqube-3.3.1
Maven-3.0.4
Fxcop-12.0
You are using a very old version of both SonarQube and of the SonarQube C# plugin - they both are no longer supported.
The current recommended and supported way of analyzing .NET projects is through the MSBuild SonarQube Runner.
You won't get help on such old versions of the SonarQube server and SonarQube C# plugin: Please upgrade.