james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <server-...@james.apache.org>
Subject [jira] [Commented] (JAMES-1815) Crash when reading domainlist via JMX
Date Tue, 09 Aug 2016 10:34:20 GMT

    [ https://issues.apache.org/jira/browse/JAMES-1815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15413360#comment-15413360

ASF GitHub Bot commented on JAMES-1815:

Github user tfg13 commented on the issue:

    Ok, I changed the fix to introduce a new variable.
    I also noticed something else: When domains is null, ImmutableList.copyof(domains) will
crash with a NPE.
    Also fixed that.

> Crash when reading domainlist via JMX
> -------------------------------------
>                 Key: JAMES-1815
>                 URL: https://issues.apache.org/jira/browse/JAMES-1815
>             Project: James Server
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 3.0.0-beta5
>            Reporter: Tobias Fleig
> Reading the list of domains via JMX from:
> ObjectName: "org.apache.james:type=component,name=domainlist", Attribute "Domains"
> crashes with:
> java.lang.UnsupportedOperationException
> 	at com.google.common.collect.ImmutableCollection.add(ImmutableCollection.java:96)
> 	at org.apache.james.domainlist.lib.AbstractDomainList.getDomains(AbstractDomainList.java:131)
> 	at org.apache.james.domainlist.lib.DomainListManagement.getDomains(DomainListManagement.java:69)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> Some subclasses (JPADomainList, HBaseDomainList, MemoryDomainList) return an ImmutableList
in getDomainListInternal(). This list is then modified by getDomains() in AbstractDomainList,
which causes the crash above.
> We will supply a patch/pull request.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message