Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0-beta5
-
None
-
None
Description
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.
Attachments
Issue Links
- links to