Dear Colleagues,
We have a use case where we would deploy our content in SAP Hana Cloud
Platform (HCP).
We have a JPA entity which takes byte[] array. The olingo takes in dependency
for commons-codec-1.6.jar. Whereas the HCP platform requires a dependency to
commons-codec-1.4.jar .
Because of which we are encountering the below error
java.lang.NoSuchMethodError:
org.apache.commons.codec.binary.Base64.isBase64(Ljava/lang/String;)Z
org.apache.olingo.odata2.core.edm.EdmBinary.validateLiteral(EdmBinary.java:59)
org.apache.olingo.odata2.core.edm.EdmBinary.internalValueOfString(EdmBinary.java:91)
I understand this is not a bug with olingo but we would request incase you can
please change the code
instead of using isBase64(string) method which is not available in
commons-codec 1.4, if you can switch to isArrayByteBase64(byte[]) which is
present.
This way hopefully we would be able to resolve the issue.
Thanks,
Aparna