sergiosorias / jscep

Automatically exported from code.google.com/p/jscep
MIT License
0 stars 0 forks source link

java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
KeyPair kp = ...
X509Certificate identity = ...
PKCS10CertificationRequest csr = ...
EnrollmentResponse txn = client.enrol(identity, kp.getPrivate(), csr);

What is the expected output? What do you see instead?
I expect "txn" to contain SCEP issued certificate. Instead I get the exception 
(in client.enrol line): 
03-11 09:56:14.453: E/AndroidRuntime(29901): Caused by: 
java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString
03-11 09:56:14.453: E/AndroidRuntime(29901):    at 
org.jscep.client.Client.enrol(Client.java:629)
03-11 09:56:14.453: E/AndroidRuntime(29901):    at 
org.jscep.client.Client.enrol(Client.java:577)

What version of the product are you using? On what operating system?
I use jscep 2.0.1 and Android 2.3.3/4.1.2.

Please provide any additional information below.
It seems to be some namespace conflict in Android.

Original issue reported on code.google.com by maciek.m...@gmail.com on 11 Mar 2014 at 9:01

GoogleCodeExporter commented 9 years ago
Which version of Commons Codec is used by Android?

Original comment by da...@grant.org.uk on 11 Mar 2014 at 9:20

GoogleCodeExporter commented 9 years ago
Can you raise this on GitHub too please?

Original comment by da...@grant.org.uk on 11 Mar 2014 at 9:20

GoogleCodeExporter commented 9 years ago
commons-codec-1.7. I've created a copy of the issue on github at 
https://github.com/jscep/jscep/issues/19 .

Original comment by maciek.m...@gmail.com on 11 Mar 2014 at 9:30