Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-7139

Illegal reflective access by com.thoughtworks.xstream.core.util.Fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.14.4
    • 5.17.0
    • Broker

    Description

      Hi,

      After starting ActiveMQ broker with Java 11, I am seeing below illegal reflective access warnings from xstream. These will become errors in a future release and hence needs to be addressed. There is a github issue logged with xstream regarding this (https://github.com/x-stream/xstream/issues/101) but there doesn't seem to be a consensus on how this will be fixed.  Is there a workaround that we can put in ActiveMQ to avoid these warnings? I am not sure what is the right way to fix this for ActiveMQ -  move away from xstream as a long term fix?

      Logs:

      WARNING: An illegal reflective access operation has occurred

      WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/prod/tools/infra/apache/activemq/apache-activemq-5.14.4/lib/optional/xstream-1.4.9.jar) to field java.lang.reflect.Proxy.h

      WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields

      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

      WARNING: All illegal access operations will be denied in a future release

       

       

      Attachments

        Activity

          People

            mattrpav Matt Pavlovich
            xabhi Abhi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: