Gary Hodgson created KARAF-3655:
-----------------------------------
Summary: Elasticsearch Appender fails to install after recent
change of JSON parser
Key: KARAF-3655
URL: https://issues.apache.org/jira/browse/KARAF-3655
Project: Karaf
Issue Type: Bug
Components: decanter
Reporter: Gary Hodgson
A recent commit (9a68a08) to the Elasticsearch appender appears to have broken
it.
There appears to be a typo in the features file, as
"org.apache.johnzon/javax.json" does not exist. I suspect that this is meant
to be "org.apache.johnzon/johnzon-core".
Attempting with this however throws a "Jar is not a bundle". Attempting to
wrap the jar (via wrap:mvn:...) gets a step further, but then there appears to
be another missing requirement. org.apache.geronimo.specs/geronimo-json_1.0_spec
Once all of these are specified the feature can be installed, but on attempting
to append to Elasticsearch the following Exception is thrown:
{code}
javax.json.JsonException: org.apache.johnzon.core.JsonProviderImpl not found
at
javax.json.spi.JsonProvider.doLoadProvider(JsonProvider.java:132)[98:org.apache.geronimo.specs.geronimo-json_1.0_spec:1.0.0.alpha-1]
at
javax.json.spi.JsonProvider.provider(JsonProvider.java:64)[98:org.apache.geronimo.specs.geronimo-json_1.0_spec:1.0.0.alpha-1]
at
javax.json.Json.createObjectBuilder(Json.java:88)[98:org.apache.geronimo.specs.geronimo-json_1.0_spec:1.0.0.alpha-1]
at
org.apache.karaf.decanter.appender.elasticsearch.ElasticsearchAppender.send(ElasticsearchAppender.java:141)[101:org.apache.karaf.decanter.appender.elasticsearch:3.0.0.SNAPSHOT]
at
org.apache.karaf.decanter.appender.elasticsearch.ElasticsearchAppender.handleEvent(ElasticsearchAppender.java:130)[101:org.apache.karaf.decanter.appender.elasticsearch:3.0.0.SNAPSHOT]
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)