Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8778

SyslogTest.canReceiveSyslogMessages() failed with AMQ classloader error

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Critical
    • Resolution: Fixed
    • 19.0.0
    • 19.0.0
    • Testing / JUnit
    • Security Level: Default (Default Security Scheme)
    • None

    Description

      I saw a failure in SyslogTest.canReceiveSyslogMessages() at appears to be a race condition while refreshing the bundles on startup of the Minion container:

      Exception in thread "ActiveMQ InactivityMonitor WriteCheckTimer" java.lang.NoClassDefFoundError: org/apache/activemq/transport/AbstractInactivityMonitor$3
      	at org.apache.activemq.transport.AbstractInactivityMonitor.writeCheck(AbstractInactivityMonitor.java:158)
      	at org.apache.activemq.transport.AbstractInactivityMonitor$2.run(AbstractInactivityMonitor.java:122)
      	at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
      	at java.util.TimerThread.mainLoop(Timer.java:555)
      	at java.util.TimerThread.run(Timer.java:505)
      Caused by: java.lang.ClassNotFoundException: Unable to load class 'org.apache.activemq.transport.AbstractInactivityMonitor$3' because the bundle wiring for org.apache.activemq.activemq-osgi is no longer valid.
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1539)
      	at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 5 more
      

      This might be caused because we aren't shutting down ActiveMQ completely whenever the blueprint contexts refresh. I'll check on this behavior.

      The inactivity timers might also be involved in bug NMS-8714.

      Attachments

        Issue Links

          Activity

            People

              j-white Jesse White
              seth Seth Leger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: