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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/12/17 08:44:46 UTC

[jira] [Comment Edited] (OAK-3802) SessionMBean not getting registered due to MalformedObjectNameException

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

Chetan Mehrotra edited comment on OAK-3802 at 12/17/15 7:43 AM:
----------------------------------------------------------------

Fixed with 1720487

There is still one problem that any exception happening within the scheduled jobs do not get detected (logged) due to [way ScheduledExecutor works|http://stackoverflow.com/q/1660834/1035417]. Handling that would require bit wider change.

[~mduerig] Thoughts? Also would be good if you can have a look at commit done in [1720487|https://github.com/apache/jackrabbit-oak/commit/18e4af1c66bcbef18f034471d23b6f9eab43631c]


was (Author: chetanm):
Fixed with 1720487

There is still one problem that any exception happening within the scheduled jobs do not get detected (logged) due to [way ScheduledExecutor works|http://stackoverflow.com/q/1660834/1035417]. Handling that would require bit wider change.

[~mduerig] Thoughts? Also would be good if you can have a look at commit done in [1720487|http://svn.apache.org/viewvc?view=revision&revision=1720487]

> SessionMBean not getting registered due to MalformedObjectNameException
> -----------------------------------------------------------------------
>
>                 Key: OAK-3802
>                 URL: https://issues.apache.org/jira/browse/OAK-3802
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.3.11
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>              Labels: regresion
>             Fix For: 1.3.13
>
>
> Due to changes done in OAK-3477 SessionMBean is not getting registered as it contains ',' in the ObjectName. Unfortunately the exception thrown gets lost and this did not got detected so far
> {noformat}
> javax.management.MalformedObjectNameException: Invalid character in value: `,'
> 	at javax.management.ObjectName.checkValue(ObjectName.java:1009)
> 	at javax.management.ObjectName.construct(ObjectName.java:725)
> 	at javax.management.ObjectName.<init>(ObjectName.java:1425)
> 	at org.apache.jackrabbit.oak.spi.whiteboard.WhiteboardUtils.registerMBean(WhiteboardUtils.java:79)
> 	at org.apache.jackrabbit.oak.spi.whiteboard.WhiteboardUtils.registerMBean(WhiteboardUtils.java:68)
> 	at org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl$RegistrationTask.run(RepositoryImpl.java:523)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> {noformat}
> The name passed for ObjectName is 
> {code}
> {name=admin@session-11@Dec 17, 2015 9:57:11 AM, type=SessionStatistics}
> {code}



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