Getting Error while upgrading Sonar to 5.5 Version and failing to Start - plugins

I recently upgraded my Sonar Version to 5.5 and all the compatible plugins with it.
Here are the versions of the plugins installed:-
sonar-ldap-plugin-1.5.1.jar
sonar-javascript-plugin-2.13.jar
sonar-java-plugin-3.14.jar
sonar-build-breaker-plugin-2.1.jar
sonar-php-plugin-2.8.jar
sonar-findbugs-plugin-3.3.jar
If I use sonar-findbugs-plugin-3.3.jar, the Sonar is not getting Up and throwing below error :-
java.lang.IllegalArgumentException: The rule 'EC_INCOMPATIBLE_ARRAY_COMPARE' of repository 'findbugs' is declared several times
If I downgrade the Jar to sonar-findbugs-plugin-3.2.jar it works but fails to analyse the Project and throws below error :-
An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar
I have tried the versions - 3.3,3.3.1 and 3.3.2
Any Help ?

Related

Liquibase Unsupported major.minor version 51.0

I am attempting to set up Liquibase 3.6.1 on a solaris VM.
My JRE is 1.6.0_151-b10.
My Liquibase.properties file is configured as follows:
driver:oracle.jdbc.OracleDriver
classpath:/export/home/oracle/Liquibase/lib/OJDBC-Full/ojdbc6.jar
url:jdbc:oracle:thin:#db:port/instance
username:uname
password:pword
When calling "./Liquibase --version" (for example), I get an error.
Exception in thread "main" java.lang.UnsupportedClassVersionError: Liquibase/integration/commandline/Main : Unsupported major.minor version 51.0
I have looked around for another post relating to a similar issue with java version/Liquibase issue. The closest I have found was relating to the "api" not being compatible with the version of java installed (version or release or update).
I apologize for the noob quality post, and I hope you folk can help.
Liquibase 3.6.1 requires minimally java 1.7.
You can find more about java versions here

SonarLint 3.2 with SonarQube 6.2

Ha anyone else run into an issue when connecting the SonarLint plugin, version 3.2.0, to a SonarQube 6.2 server where the following error is thrown:
java.lang.NoClassDefFoundError: com/villagechief/sonar/salesforce/core/ApexCodeColorizer
I connected the plugin to the SonarQube server in order to bind the project. It looks like the rules where pulled properly, but when I click on 'Analyze' or 'Analyze changed files', the error above is thrown.
These are my properties being passed:
extraProperties: {sonar.java.source=1.8, sonar.java.target=1.8, sonar.libraries=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home}

Upgrading version of org.eclipse.osgi jar

I'm trying to upgrade the OSGI framework jar from 3.8.1 to 3.10.1 but I'm facing some issues like some projects are available under 3.8.1 but not present under 3.10.1.
Examples : Projects such as org.eclipse.osgi.framework.adaptor & org.eclipse.osgi.framework.internal.core are no longer available under 3.10.1 jar but are present in 3.8.1
My project is currently using 3.8.1 but when I'm trying to upgrade to org.eclipse.osgi_3.10.1 then it's showing the following error:
Unresolved bundle : org.eclipse.osgi.framework.adaptor.
What can be the workaround for this?

Maven 3.2.5 doesn't work with JDK6

I have an issue and after many attempts don't know how to resolve it.
I have Java/Maven project with JDK 6 and installed Maven 3.2.5 in Eclipse Luna
Now I'm trying to run clean install command to create ZIP package but getting the following error message:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ABC: Fatal error compiling: invalid target release: 1.7
Does someone has this issue before and how do you resolve it.?
Could you help me please?
Thanks in advance.
The project you are attempting to compile specifies that the generated bytecode should be for Java 1.7. To do that you have to have a JDK7 or later.
Either change the project to specify 1.6, or upgrade your Java to 1.7. (There is really no reason to still stay on Java 1.6, it is old and obsolete now.)

RoboVM not working on JDK 1.8.0 b112

I'm running Eclipse with RoboVM plugin and I wanted to try IOSDemo sample project described on robovm.org (http://www.robovm.org/docs.html). When creating the project in Eclipse and running it I got following error message.
An internal error occurred during: "Launching IOSDemo".
java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object; from class soot.toolkits.scalar.LocalSplitter
I found out that it's related to JDK version (I'm running JDK 8.0 ea, build 112). When running on JDK 1.7.0_45 and building the project on cmd line it builds and runs OK.
Is it known problem, is there any workaround or fix? Thanks
This is most probably due to a bug [1] in the recent early access builds of Java8. It looks like the bug was resolved a few days ago but as far as I can see the fix didn't make it into the b113 build. Please use the latest Java7 release or an earlier Java8 EA build until a Java8 build is available with this fix included.
[1] https://bugs.openjdk.java.net/browse/JDK-8026394