cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: error in client program
Date Sun, 25 Sep 2016 16:11:44 GMT
I think this issue and the one reported in the next email are caused by 
some API mix in, ex, JAX-RS 1.1 & 2.0.

Sergey
On 25/09/16 01:47, Yaragalla Muralidhar wrote:
> I have written the following code for cxf client
>
> public static void main(String[] args) {
> Client client = ClientBuilder.newBuilder().newClient();
> WebTarget target = client.target("http://localhost:8080/weath/api/v1");
> target = target.path("cities/cities");
> Invocation.Builder builder = target.request();
> Response response = builder.get();
> System.out.println(response);
>
> }
>
>
> the above code is giving the following error:-
>
> Exception in thread "main" java.lang.AbstractMethodError:
> javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
> at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:119)
> at org.apache.cxf.jaxrs.client.spec.ClientImpl.target(ClientImpl.java:109)
> at org.ymd.CxfClient.main(CxfClient.java:15)
>
>
> how can i rectify this?
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
>
> *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
>


Mime
View raw message