aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bischof (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (ARIES-1789) ClientBuilder and SSE
Date Tue, 24 Apr 2018 18:20:01 GMT

     [ https://issues.apache.org/jira/browse/ARIES-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stefan Bischof closed ARIES-1789.
---------------------------------
    Resolution: Fixed

> ClientBuilder and SSE
> ---------------------
>
>                 Key: ARIES-1789
>                 URL: https://issues.apache.org/jira/browse/ARIES-1789
>             Project: Aries
>          Issue Type: Bug
>          Components: jax-rs-whiteboard
>    Affects Versions: jax-rs-whiteboard-1.0.0
>            Reporter: Stefan Bischof
>            Priority: Major
>
> Hi,
> when using:
> clientBuilder.newBuilder();
> i got a
>  
> {code:java}
> java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder not
found by org.apache.aries.javax.jax.rs-api
> or 
> java.lang.ClassNotFoundException: org.glassfish.jersey.media.sse.internal.JerseySseEventSource$Builder
not found by org.apache.aries.javax.jax.rs-api [7]
>     at javax.ws.rs.sse.SseEventSource$Builder.newBuilder(SseEventSource.java:153)
>     at javax.ws.rs.sse.SseEventSource.target(SseEventSource.java:238)
>     at de.jena.servicehub.phone.demo.DemoSseClient.test(DemoSseClient.java:38)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:136)
>     at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:91)
>     at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571)
>     at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497)
>     at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386)
>     at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417)
>     at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229)
>     at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.media.sse.internal.JerseySseEventSource$Builder
not found by org.apache.aries.javax.jax.rs-api [7]
>     at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639{code}
>  
> Both builders uses defaultClassNames
>  
> {code:java}
> javax.ws.rs.client.ClientBuilder
> JAXRS_DEFAULT_CLIENT_BUILDER = "org.glassfish.jersey.client.JerseyClientBuilder";
>  
> javax.ws.rs.sse.SseEventSource.Builder
> String JAXRS_DEFAULT_SSE_BUILDER = "org.glassfish.jersey.media.sse.internal.JerseySseEventSource$Builder";
> {code}
> Both calls
> javax.ws.rs.client.FactoryFinder.find(..)
> and tryes to get the Object over
> -ServiceLoader
> -java.home/jaxrs.properties
> -SystemPropertys
> -Class.forName(defaultclassName);
> 1. is there any was to use .newBuilder?
> 2. is ther eny way to @Reference SseEventSource?
> 3. is there any handling of serverside events in Aries Whiteboard or is it necessary
to register the SseFeature of(cxf/jersy) by myselfe?
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message