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-4440) Decanter eventadmin collector should cast type property as String
Date Wed, 23 Mar 2016 16:14:25 GMT

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

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

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

KARAF-4440 - Cast the type event property as a String


> Decanter eventadmin collector should cast type property as String
> -----------------------------------------------------------------
>
>                 Key: KARAF-4440
>                 URL: https://issues.apache.org/jira/browse/KARAF-4440
>             Project: Karaf
>          Issue Type: Bug
>          Components: decanter
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: decanter-1.1.0
>
>
> The Decanter EventAdmin Collector is just a "bridge" from internal events to decanter
events. It doesn't change the type of event, that could be object.
> It may result to ClassCastException like:
> {code}
> 2016-03-23 16:23:16,312 | WARN  | Thread-25        | KafkaAppender                  
 | 55 - org.apache.karaf.decanter.appender.kafka - 1.1.0.SNAPSHOT | Error sending event to
kafka
> java.lang.ClassCastException: org.apache.karaf.features.FeatureEvent$EventType cannot
be cast to java.lang.String
>         at org.apache.karaf.decanter.appender.kafka.KafkaAppender.handleEvent(KafkaAppender.java:156)[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 org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:110)[3:org.apache.karaf.services.eventadmin:4.0.4]
>         at org.apache.felix.eventadmin.impl.handler.EventAdminImpl.sendEvent(EventAdminImpl.java:187)[3:org.apache.karaf.services.eventadmin:4.0.4]
>         at org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator.sendEvent(EventAdminSecurityDecorator.java:96)[3:org.apache.karaf.services.eventadmin:4.0.4]
>         at org.apache.karaf.decanter.collector.eventadmin.EventCollector.handleEvent(EventCollector.java:44)[61:org.apache.karaf.decanter.collector.eventadmin: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}
> The Decanter EventAdmin Collector should cast all property values as String.



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

Mime
View raw message