I am using all latest jar and Java 8 and Java EE 6 version, getting java.lang.NoSuchMethodError
.
Tried with jersey-client-2.27.jar
, 2.26
, 2.28
version, still having the same problem, even checked that the method is available in the corresponding jar.
Client client = ClientBuilder.newClient();
WebTarget sendWT = client.target(blueMailUrl);
Invocation.Builder builder = sendWT
.request(MediaType.APPLICATION_JSON)
.header(
"Authorization",
"Basic " + DatatypeConverter.printBase64Binary((byte[]) (blueMailUserid + ":" + blueMailPassword).getBytes("UTF-8"))
);
It should not throw this error.