Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1815

Crash when reading domainlist via JMX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-beta5
    • None
    • JMX
    • 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

          Activity

            People

              Unassigned Unassigned
              tfg13 Tobias Fleig
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: