N

Tuesday, March 21st, 2023 2:07 PM

IBM Cognos to Collibra Integration (v1.0.5) using collibra-integration-library-1.2.2 : Compilation Error - Class file has wrong version 55.0, should be 52.0

In order to build IBM Cognos to Collibra Integration v1.0.5 (Spring Boot) application, the below steps have been performed on windows server:

  1. Install JDK 1.8.0_362 and setup JAVA_HOME

  2. Install Apache Maven 3.8.6 and setup MAVEN_HOME

  3. Install Collibra-integration-library spring boot jar using the below command: Done
    mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -Dfile=collibra-integration-library-1.2.2.jar

  4. Install collibra-integration-library-1.2.2-javadoc jar using the below command:
    mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -Dfile=collibra-integration-library-1.2.2-javadoc -DgroupId=com.collibra.marketplace -DartifactId=collibra-integration-library -Dversion=1.2.2 -Dpackaging=jar -Dclassifier=javadoc

  5. Downloaded “cognos-integration-1.0.5” file from marketplace and extracted to “sbi-cognos-integration-1.0.5”:
    “cognos-integration-1.0.5” > sbi-cognos-integration-source-v1.0.5 > sbi-cognos-integration-source-v1.0.5 > v1.0.5 > “sbi-cognos-integration-1.0.5”

  6. Changed collibra.integration.library.version in the pom.xml :
    <collibra.integration.library.version>1.2.2</collibra.integration.library.version>

  7. Go to the root directory of “sbi-cognos-integration-1.0.5” and run the following command to build project “sbi-cognos-integration-1.0.5” which gives the below
    compilation error :
    mvn clean package

Error:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /app/cognos_connector/sbi-cognos-integration-1.0.5/src/main/java/com/collibra/marketplace/cognos/serivce/IntegrationProcessorService.java:[12,52] cannot access com.collibra.marketplace.library.integration.CollibraImportApiHelper
bad class file: /home/coladmin/.m2/repository/com/collibra/marketplace/collibra-integration-library/1.2.2/collibra-integration-library-1.2.2.jar(com/collibra/marketplace/library/integration/CollibraImportApiHelper.class)
class file has wrong version 55.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.065 s
[INFO] Finished at: 2023-03-17T13:13:44-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project cognos-integration: Compilation failure
[ERROR] /app/cognos_connector/sbi-cognos-integration-1.0.5/src/main/java/com/collibra/marketplace/cognos/serivce/IntegrationProcessorService.java:[12,52] cannot access com.collibra.marketplace.library.integration.CollibraImportApiHelper
[ERROR] bad class file: /home/coladmin/.m2/repository/com/collibra/marketplace/collibra-integration-library/1.2.2/collibra-integration-library-1.2.2.jar(com/collibra/marketplace/library/integration/CollibraImportApiHelper.class)
[ERROR] class file has wrong version 55.0, should be 52.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
[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/MojoFailureException
[coladmin@tlgsascs3497003 sbi-cognos-integration-1.0.5]$

3 Messages

2 years ago

It looks collibra-integration-library-1.2.2.jar has been built in Java 11; but IBM Cognos to Collibra Integration Project expects collibra-integration-library jar to be built in JAVA 8. So it is compatibility issue. Please suggest.

3 Messages

2 years ago

I am able to build the IBM Cognos Integration jar. Please ignore the above error.

36 Messages

 • 

1.6K Points

Hello,

I realize this is a year old, but if you remember, how did you get past the errors and build the IBM Cognos Integration jar?  I'm experimenting with this and am running into the same issues.

Loading...