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

2021-04-27 Thread Angela Schreiber (Jira)


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

Angela Schreiber updated OAK-9417:
--
Fix Version/s: 1.40.0

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


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

2021-04-24 Thread Carsten Ziegeler (Jira)


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

Carsten Ziegeler updated OAK-9417:
--
Component/s: (was: core)
 jcr

> 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
>Priority: Critical
>
> 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)