hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
191 stars 98 forks source link

Setting publishDelay of the JAX RS Connector / ClassCastException #168

Open lojo opened 8 years ago

lojo commented 8 years ago

Setting the publishDelay value of the JAX RS connector results in a ClassCastException in class com.eclipsesource.jaxrs.publisher.internal.Configuration in method getPublishDelay().

E.g. karaf>config:property-set -p com.eclipsesource.jaxrs.connector publishDelay 150

results in the class cast exception mentioned above...

BryanHunt commented 8 years ago

The publisher expects the publishDelay to be a Long. I'm guessing that karaf is treating the value either as a String or Integer. This is not a problem with the publisher.

hhoffstaette commented 7 years ago

This is not a problem with the publisher.

Actually one could say that it is unless you start publishing metatype information. Right now the value type is not discoverable from the outside, and as such CM has no idea what to pass in.