JSON over HTTP API Java encountering error and exceptions:java.lang.NoSuchFieldError: INSTANCE
posted 1 year ago
I have written Java API to perform request/response of JSON over http using apacheHTTP client library, Code is enlisted below. It is encountering some errors and exceptions, Can you please provide pointers, How to fix it? I am jinxed with the problem. I am using Eclipse Mars, Sun Oracle Java 8, Apache Tomcat 7.0.52, Ubuntu 14.04 as base system to produce this code.
In my view is there some library/jar to be added to classpath, thats why this run time error is occurring, Does I am using wrong environment, Kindly suggest fixers?