Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2791

ArrayIndexOutOfBoundsException in SSLContextFactoryProvider

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.13.0
    • 2.14.0
    • None
    • None
    • Artemis 2.13.0 running in Karaf 4.2.8

    Description

      Hi,

      updated from 2.12.0 to 2.13.0 and new class org.apache.activemq.artemis.spi.core.remoting.ssl.SSLContextFactoryProvider introduced with ARTEMIS-2704 produces an ArrayIndexOutOfBoundsException on shutdown:

      ERROR	 org.apache.activemq.artemis.core.server	 FelixStartLevel	 [org.apache.activemq.artemis-server-osgi:2.13.0.SEE1]	 	 	 	 	 AMQ224068: Unable to stop component: org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl
      java.lang.ExceptionInInitializerError: null
      	at org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl.stop(RemotingServiceImpl.java:384) ~[?:?]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.stop(ActiveMQServerImpl.java:1153) ~[?:?]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.stop(ActiveMQServerImpl.java:1031) ~[?:?]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.stop(ActiveMQServerImpl.java:876) ~[?:?]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.stop(ActiveMQServerImpl.java:870) ~[?:?]
      	at org.apache.activemq.artemis.osgi.OsgiBroker$ServerTrackerCallBackImpl.stop(OsgiBroker.java:242) ~[?:?]
      	at org.apache.activemq.artemis.osgi.ProtocolTracker.protocolRemoved(ProtocolTracker.java:122) ~[?:?]
      	at org.apache.activemq.artemis.osgi.ProtocolTracker.removedService(ProtocolTracker.java:94) ~[?:?]
      	at org.apache.activemq.artemis.osgi.ProtocolTracker.removedService(ProtocolTracker.java:38) ~[?:?]
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:967) ~[osgi.core-6.0.0.jar:?]
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:870) ~[osgi.core-6.0.0.jar:?]
      	at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341) ~[osgi.core-6.0.0.jar:?]
      	at org.osgi.util.tracker.ServiceTracker.close(ServiceTracker.java:377) ~[osgi.core-6.0.0.jar:?]
      	at org.apache.activemq.artemis.osgi.OsgiBroker.stop(OsgiBroker.java:147) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_242]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_242]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_242]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242]
      	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228) ~[?:?]
      	at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) ~[?:?]
      	at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664) ~[?:?]
      	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510) ~[?:?]
      	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:317) ~[?:?]
      	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:307) ~[?:?]
      	at org.apache.felix.scr.impl.manager.SingleComponentManager.disposeImplementationObject(SingleComponentManager.java:407) ~[?:?]
      	at org.apache.felix.scr.impl.manager.SingleComponentManager.deleteComponent(SingleComponentManager.java:163) ~[?:?]
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.doDeactivate(AbstractComponentManager.java:831) ~[?:?]
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:805) ~[?:?]
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.dispose(AbstractComponentManager.java:584) ~[?:?]
      	at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.disposeComponents(ConfigurableComponentHolder.java:716) ~[?:?]
      	at org.apache.felix.scr.impl.BundleComponentActivator.dispose(BundleComponentActivator.java:510) ~[?:?]
      	at org.apache.felix.scr.impl.Activator.disposeComponents(Activator.java:429) ~[?:?]
      	at org.apache.felix.scr.impl.Activator.access$300(Activator.java:49) ~[?:?]
      	at org.apache.felix.scr.impl.Activator$ScrExtension.destroy(Activator.java:292) ~[?:?]
      	at org.apache.felix.scr.impl.AbstractExtender$1.run(AbstractExtender.java:216) ~[?:?]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_242]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_242]
      	at org.apache.felix.scr.impl.AbstractExtender.destroyExtension(AbstractExtender.java:238) ~[?:?]
      	at org.apache.felix.scr.impl.AbstractExtender.bundleChanged(AbstractExtender.java:132) ~[?:?]
      	at org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) ~[?:?]
      	at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) ~[?:?]
      	at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) ~[?:?]
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4583) ~[?:?]
      	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2628) ~[?:?]
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1393) ~[?:?]
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) ~[?:?]
      	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
      Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
      	at java.util.ArrayList.elementData(ArrayList.java:422) ~[?:1.8.0_242]
      	at java.util.ArrayList.get(ArrayList.java:435) ~[?:1.8.0_242]
      	at org.apache.activemq.artemis.spi.core.remoting.ssl.SSLContextFactoryProvider.<clinit>(SSLContextFactoryProvider.java:34) ~[?:?]
      	... 47 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            riconeubauer Rico Neubauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h