Hello Aparna,

Unfortunately it is not a possible solution to downgrade a dependency in Olingo.
But perhaps it is possible that you package commons-codec in version 1.6 in 
your service (".war” file)?

Kind regards,
Michael

> On 12 Feb 2015, at 07:40, Khare, Aparna <aparna.kh...@sap.com> wrote:
> 
> 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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to