Do you use json marshaller on both collector and appender ? 

What collectors are you using ?

And both rest appender/collector are on the same karaf instance (localhost) ?

Let me try a new test (I did it this morning).

Regards
JB

> Le 30 mars 2020 à 12:42, dzoni <christian.jaeg...@zf.com> a écrit :
> 
> thank u very much for ur fast answers
> 
> ok i changed now the config-file like this
> 
> *org.apache.karaf.decanter.collector.rest-1.cfg*
> url=http://localhost:8181
> paths=decanter/collect
> 
> *org.apache.karaf.decanter.appender.rest.cfg*
> uri=http://localhost:8181/decanter/collect
> 
> the Server-Side don't show any warn-messges more
> 
> but on the Client side i'm getting now following warns:
> Can't request REST service
> java.io.IOException: Server returned HTTP response code: 405 for URL:
> http://localhost:8181/decanter/collect
>        at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
> ~[?:1.8.0_242]
>        at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
> ~[?:1.8.0_242]
>        at
> org.apache.karaf.decanter.collector.rest.RestCollector.run(RestCollector.java:97)
> [!/:?]
>        at
> org.apache.karaf.scheduler.core.QuartzJobExecutor.execute(QuartzJobExecutor.java:60)
> [!/:?]
>        at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [!/:?]
>        at
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
> [!/:?]
> 
> 
> thanks for response
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Reply via email to