[ https://issues.apache.org/jira/browse/KARAF-4733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré resolved KARAF-4733. ----------------------------------------- Resolution: Won't Fix > Elasticsearch appender fails to insert uptime > --------------------------------------------- > > Key: KARAF-4733 > URL: https://issues.apache.org/jira/browse/KARAF-4733 > Project: Karaf > Issue Type: Bug > Components: decanter > Reporter: Jean-Baptiste Onofré > Assignee: Jean-Baptiste Onofré > > Depending of the data collected, the elasticsearch appender may fail to > insert the corresponding document: > {code} > 2016-09-26 09:27:12,823 | WARN | Thread-20 | ElasticsearchAppender > | 260 - org.apache.karaf.decanter.appender.elasticsearch.rest - 1.2.0 > | Can't append into Elasticsearch > java.lang.IllegalStateException: > {"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse > [Uptime]"}],"type":"mapper_parsing_exception","reason":"failed to parse > [Uptime]","caused_by":{"type":"number_format_exception","reason":"For input > string: \"3 days 16 hours\""}} > at > org.apache.karaf.decanter.appender.elasticsearch.rest.ElasticsearchAppender.send(ElasticsearchAppender.java:112)[260:org.apache.karaf.decanter.appender.elasticsearch.rest:1.2.0] > at > org.apache.karaf.decanter.appender.elasticsearch.rest.ElasticsearchAppender.handleEvent(ElasticsearchAppender.java:99)[260:org.apache.karaf.decanter.appender.elasticsearch.rest:1.2.0] > at > org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415)[3:org.apache.karaf.services.eventadmin:4.0.4] > at > org.apache.felix.eventadmin.impl.tasks.HandlerTask.run(HandlerTask.java:90)[3:org.apache.karaf.services.eventadmin:4.0.4] > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_91] > at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_91] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91] > at java.lang.Thread.run(Thread.java:745)[:1.8.0_91] > {code} > This case should be fix in the marshaller which should convert the uptime > string as int. -- This message was sent by Atlassian JIRA (v6.3.4#6332)