question

KRDevaraj-4776 avatar image
0 Votes"
KRDevaraj-4776 asked vipullag-MSFT edited

ERROR JacksonVersion - Version '2.9.4' of package 'jackson-databind' is not supported

Hey,

i am using azure sdk(azure-storage-file-datalake, azure-core, azure-identity) for writing the avro data to azure datalake gen 2 from kafka(using connectors), but i am getting very weird errors as below

2022-05-12 10:46:10 ERROR JacksonVersion:506 - Version '2.9.4' of package 'jackson-annotations' is not supported (older than earliest supported version - 2.10.0), please upgrade.

2022-05-12 10:46:10 ERROR JacksonVersion:506 - Version '2.9.4' of package 'jackson-core' is not supported (older than earliest supported version - 2.10.0), please upgrade.

2022-05-12 10:46:10 ERROR JacksonVersion:506 - Version '2.9.4' of package 'jackson-databind' is not supported (older than earliest supported version - 2.10.0), please upgrade.




I have tried excluding the jackson dependencies and tried adding explicitly, still i am getting the errors.

please some one help on this


pom.xml(dependencies)

<dependencyManagement>
<dependencies>


 <dependency>
     <groupId>com.fasterxml.jackson.core</groupId>
     <artifactId>jackson-annotations</artifactId>
     <version>2.13.2</version>
     <scope>runtime</scope>
 </dependency>
 <dependency>
     <groupId>com.fasterxml.jackson.core</groupId>
     <artifactId>jackson-core</artifactId>
     <version>2.13.2</version>
     <scope>runtime</scope>
 </dependency>
 <dependency>
     <groupId>com.fasterxml.jackson.core</groupId>
     <artifactId>jackson-databind</artifactId>
     <version>2.13.2</version>
     <scope>runtime</scope>
 </dependency>
 <dependency>
     <groupId>com.fasterxml.jackson.dataformat</groupId>
     <artifactId>jackson-dataformat-xml</artifactId>
     <version>2.13.2</version>
     <scope>runtime</scope>
 </dependency>
 <dependency>
     <groupId>com.fasterxml.jackson.datatype</groupId>
     <artifactId>jackson-datatype-jsr310</artifactId>
     <version>2.13.2</version>
     <scope>runtime</scope>
 </dependency>

</dependencies>
</dependencyManagement>

     <dependencies>


     <dependency>
         <groupId>org.apache.kafka</groupId>
         <artifactId>connect-api</artifactId>
         <version>2.0.1</version>
         <scope>provided</scope>
     </dependency>
     <!--<dependency>
         <groupId>org.apache.kafka</groupId>
         <artifactId>kafka-clients</artifactId>
         <version>1.1.0</version>
         <scope>provided</scope>
     </dependency>-->
     <dependency>
         <groupId>log4j</groupId>
         <artifactId>log4j</artifactId>
         <version>1.2.17</version>
     </dependency>
     <!-- Apache avro dependency -->
     <dependency>
         <groupId>org.apache.avro</groupId>
         <artifactId>avro</artifactId>
         <version>1.8.2</version>
     </dependency>
     <!-- Newer versions of the storage account jar is not working. -->
     <dependency>
         <groupId>com.azure</groupId>
         <artifactId>azure-storage-file-datalake</artifactId>
         <version>12.9.0</version>
         <exclusions>
             <exclusion>
                 <groupId>com.azure</groupId>
                 <artifactId>azure-core</artifactId>
             </exclusion>
         </exclusions>
     </dependency>

     <!-- https://mvnrepository.com/artifact/com.azure/azure-core -->
     <dependency>
         <groupId>com.azure</groupId>
         <artifactId>azure-core</artifactId>
         <version>1.28.0</version>
         <exclusions>
             <!-- Collision with Kafka Jackson dependencies -->
             <exclusion>
                 <groupId>com.fasterxml.jackson.core</groupId>
                 <artifactId>jackson-core</artifactId>
             </exclusion>
             <exclusion>
                 <groupId>com.fasterxml.jackson.core</groupId>
                 <artifactId>jackson-annotations</artifactId>
             </exclusion>
             <exclusion>
                 <groupId>com.fasterxml.jackson.core</groupId>
                 <artifactId>jackson-databind</artifactId>
             </exclusion>
             <exclusion>
                 <groupId>com.fasterxml.jackson.dataformat</groupId>
                 <artifactId>jackson-dataformat-xml</artifactId>
             </exclusion>
             <exclusion>
                 <groupId>com.fasterxml.jackson.datatype</groupId>
                 <artifactId>jackson-datatype-jsr310</artifactId>
             </exclusion>
         </exclusions>
     </dependency>

     <dependency>
         <groupId>com.azure</groupId>
         <artifactId>azure-identity</artifactId>
         <version>1.5.1</version>
         <exclusions>
             <exclusion>
                 <groupId>com.azure</groupId>
                 <artifactId>azure-core</artifactId>
             </exclusion>
             <exclusion>
                 <groupId>com.microsoft.azure</groupId>
                 <artifactId>msal4j</artifactId>
             </exclusion>
             <exclusion>
                 <groupId>org.linguafranca.pwdb</groupId>
                 <artifactId>KeePassJava2</artifactId>
             </exclusion>
         </exclusions>
     </dependency>
     <dependency>
         <groupId>com.microsoft.azure</groupId>
         <artifactId>msal4j</artifactId>
         <version>1.9.1</version> <!-- {x-version-update;com.microsoft.azure:msal4j;external_dependency} -->
         <exclusions>
             <exclusion>
                 <groupId>com.fasterxml.jackson.core</groupId>
                 <artifactId>jackson-databind</artifactId>
             </exclusion>
         </exclusions>
     </dependency>
     <!-- Schema registry dependency -->

     <dependency>
         <groupId>io.confluent</groupId>
         <artifactId>kafka-connect-avro-converter</artifactId>
         <version>3.3.0</version>
         <exclusions>
             <exclusion>
             <groupId>io.confluent</groupId>
             <artifactId>kafka-schema-registry-client</artifactId>
             </exclusion>
         </exclusions>
     </dependency>

     <dependency>
         <groupId>io.confluent</groupId>
         <artifactId>kafka-schema-registry-client</artifactId>
         <version>3.3.0</version>
         <exclusions>
             <exclusion>
                 <groupId>com.fasterxml.jackson.core</groupId>
                 <artifactId>jackson-databind</artifactId>
             </exclusion>
         </exclusions>
     </dependency>
     <dependency>
         <groupId>org.mockito</groupId>
         <artifactId>mockito-core</artifactId>
         <version>2.21.0</version>
         <scope>test</scope>
     </dependency>
     <dependency>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <version>4.13.2</version>
         <scope>test</scope>
     </dependency>

</dependencies>

azure-data-lake-storage
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I found an identical question asked on Stack Overflow. The answer provided by "Jatin" is well researched and eloquent. Please take a look @KRDevaraj-4776 .


0 Votes 0 ·

Thanks, that didn't help me. is there any way to contact microsoft for these issues, to connect with them
.

0 Votes 0 ·
KRDevaraj-4776 avatar image
0 Votes"
KRDevaraj-4776 answered

Is there any way to contact microsoft for these issues, to connect with them

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KRDevaraj-4776 avatar image
1 Vote"
KRDevaraj-4776 answered MartinJaffer-MSFT commented

Hosting environment had those 2.9.4 versioned jackson jars which were loading at run time and causing the issues, i replaced those with newer version jars , its working all fine now.
(we had installed kafka client on the host, which internally had those jars inside kafka/libs)

got the ans from - https://github.com/Azure/azure-sdk-for-java/issues/28902

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @KRDevaraj-4776,
It was great to know that you were able to get to a resolution . We expect you to keep using this forum and also motivate others to do that same . You can always help other community members by answering to their queries ..

Thanks
Martin

0 Votes 0 ·