jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miroslav Smiljanic (Jira)" <j...@apache.org>
Subject [jira] [Closed] (OAK-9417) ClassCastException in ConsolidatedListenerMBeanImpl
Date Thu, 03 Jun 2021 14:54:06 GMT

     [ https://issues.apache.org/jira/browse/OAK-9417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Miroslav Smiljanic closed OAK-9417.
-----------------------------------

> ClassCastException in ConsolidatedListenerMBeanImpl
> ---------------------------------------------------
>
>                 Key: OAK-9417
>                 URL: https://issues.apache.org/jira/browse/OAK-9417
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>    Affects Versions: 1.38.0
>            Reporter: Carsten Ziegeler
>            Assignee: Angela Schreiber
>            Priority: Critical
>             Fix For: 1.40.0
>
>
> The ConsolidatedListenerMBeanImpl makes a wrong assumption that the value of the jmx.objectname
service registration property always is an ObjectName - String is also a valid and allowed
type. If a String is used a ClassCastException is thrown:
> {noformat}
> [org.apache.jackrabbit.oak.jcr.observation.ConsolidatedListenerMBeanImpl(268)] : The
bindBackgroundObserverMBean method has thrown an exception (java.lang.ClassCastException:
class java.lang.String cannot be cast to class javax.management.ObjectName (java.lang.String
is in module java.base of loader 'bootstrap'; javax.management.ObjectName is in module java.management
of loader 'bootstrap'))
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message