karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4432) Marshaller is not able to deal with some event properties
Date Tue, 22 Mar 2016 10:07:25 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15206098#comment-15206098
] 

ASF subversion and git services commented on KARAF-4432:
--------------------------------------------------------

Commit 69bbf4b3b60c04ac10c55117663aee8506d62ece in karaf-decanter's branch refs/heads/master
from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf-decanter.git;h=69bbf4b ]

KARAF-4432 - Update the json marshaller to deal with infinity double


> Marshaller is not able to deal with some event properties
> ---------------------------------------------------------
>
>                 Key: KARAF-4432
>                 URL: https://issues.apache.org/jira/browse/KARAF-4432
>             Project: Karaf
>          Issue Type: Bug
>          Components: decanter
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: decanter-1.1.0
>
>
> The Decanter json marshaller is not able to deal with some event property types:
> {code}
> 2016-03-22 10:31:18,254 | WARN  | Thread-38        | KafkaAppender                  
 | 55 - org.apache.karaf.decanter.appender.kafka - 1.1.0.SNAPSHOT | Error sending event to
kafka
> java.lang.NumberFormatException
>         at java.math.BigDecimal.<init>(BigDecimal.java:494)[:1.8.0_45]
>         at java.math.BigDecimal.<init>(BigDecimal.java:383)[:1.8.0_45]
>         at java.math.BigDecimal.<init>(BigDecimal.java:806)[:1.8.0_45]
>         at java.math.BigDecimal.valueOf(BigDecimal.java:1274)[:1.8.0_45]
>         at org.glassfish.json.JsonNumberImpl.getJsonNumber(JsonNumberImpl.java:70)[60:org.glassfish.javax.json:1.0.4]
>         at org.glassfish.json.JsonObjectBuilderImpl.add(JsonObjectBuilderImpl.java:107)[60:org.glassfish.javax.json:1.0.4]
>         at org.apache.karaf.decanter.marshaller.json.JsonMarshaller.addProperty(JsonMarshaller.java:182)[56:org.apache.karaf.decanter.marshaller.json:1.1.0.SNAPSHOT]
>         at org.apache.karaf.decanter.marshaller.json.JsonMarshaller.marshalAttribute(JsonMarshaller.java:121)[56:org.apache.karaf.decanter.marshaller.json:1.1.0.SNAPSHOT]
>         at org.apache.karaf.decanter.marshaller.json.JsonMarshaller.marshal(JsonMarshaller.java:72)[56:org.apache.karaf.decanter.marshaller.json:1.1.0.SNAPSHOT]
>         at org.apache.karaf.decanter.marshaller.json.JsonMarshaller.marshal(JsonMarshaller.java:64)[56:org.apache.karaf.decanter.marshaller.json:1.1.0.SNAPSHOT]
>         at org.apache.karaf.decanter.appender.kafka.KafkaAppender.handleEvent(KafkaAppender.java:148)[55:org.apache.karaf.decanter.appender.kafka:1.1.0.SNAPSHOT]
>         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_45]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_45]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_45]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_45]
>         at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message