Unshaded java dependencies in the AthenaJDBC jar

0

Not really a question, really -- more of a bug report, but I can't find a better channel for this.

It looks like the AthenaJDBC42-2.0.30.1001.jar contains a set of Apache Commons dependency classes which have not been "shaded" to avoid collision with other dependency jars; for example:

  268 Wed Jan 22 15:10:16 GMT 2020 org/apache/commons/codec/BinaryDecoder.class
   268 Wed Jan 22 15:10:16 GMT 2020 org/apache/commons/codec/BinaryEncoder.class
   588 Wed Jan 22 15:10:16 GMT 2020 org/apache/commons/codec/CharEncoding.class
  1286 Wed Jan 22 15:10:16 GMT 2020 org/apache/commons/codec/Charsets.class

Compare vs the Jackson dependency classes, which have been correctly shaded into the "com.simba.athena" package scope:

  449 Sun Mar 06 19:20:24 GMT 2022 com/simba/athena/shaded/fasterxml/jackson/annotation/JacksonAnnotation.class
   333 Sun Mar 06 19:20:24 GMT 2022 com/simba/athena/shaded/fasterxml/jackson/annotation/JacksonAnnotationValue.class
   542 Sun Mar 06 19:20:24 GMT 2022 com/simba/athena/shaded/fasterxml/jackson/annotation/JacksonAnnotationsInside.class

The unfortunate result of that for us was some NoSuchMethodError exceptions thrown from our code when it tried to use the Apache Commons CSVFormat lib:

Exception in thread "pool-001" java.lang.NoSuchMethodError: org.apache.commons.csv.CSVFormat.builder()Lorg/apache/commons/csv/CSVFormat$Builder;

Could this be fixed?

asked 2 years ago86 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions