You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Angela Schreiber (Jira)" <ji...@apache.org> on 2021/04/27 09:07:00 UTC

[jira] [Resolved] (OAK-9417) ClassCastException in ConsolidatedListenerMBeanImpl

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

Angela Schreiber resolved OAK-9417.
-----------------------------------
    Resolution: Fixed

[~cziegeler], i applied your patch with revision 1889232.


> 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)