java.lang.LinkageError: javax/management/MBeanServer

Stack Overflow | RK3 | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    testing powermock simulate http server time out for client call

    Stack Overflow | 8 months ago | RK3
    java.lang.LinkageError: javax/management/MBeanServer

    Root Cause Analysis

    1. java.lang.LinkageError

      javax/management/MBeanServer

      at org.apache.logging.log4j.core.jmx.Server.unregisterAllMatching()
    2. Apache Log4j Core
      Log4jContextFactory.getContext
      1. org.apache.logging.log4j.core.jmx.Server.unregisterAllMatching(Server.java:328)
      2. org.apache.logging.log4j.core.jmx.Server.unregisterLoggerContext(Server.java:250)
      3. org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:162)
      4. org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:138)
      5. org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:502)
      6. org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:561)
      7. org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:577)
      8. org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:212)
      9. org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
      10. org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
      10 frames
    3. Apache Log4j API
      LogManager.getContext
      1. org.apache.logging.log4j.LogManager.getContext(LogManager.java:155)
      1 frame
    4. finagle-core
      SenderCatalogTest.timeout
      1. com.SenderUtil.initLogger(SenderUtil.java:64)
      2. com.SenderUtil.<clinit>(SenderUtil.java:18)
      3. com.SAEventSender.<clinit>(SASender.java:15)
      4. com.Sender.send(Sender.java:148)
      5. com.SenderCatalogTest.timeout(SenderCatalogTest.java:33)
      5 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    6. JUnit
      TestMethod.invoke
      1. org.junit.internal.runners.TestMethod.invoke(TestMethod.java:68)
      1 frame
    7. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:316)
      1 frame
    8. JUnit
      MethodRoadie.runBeforesThenTestThenAfters
      1. org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:88)
      2. org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:96)
      2 frames
    9. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:300)
      2. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:131)
      3. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.access$100(PowerMockJUnit47RunnerDelegateImpl.java:59)
      4. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner$TestExecutorStatement.evaluate(PowerMockJUnit47RunnerDelegateImpl.java:147)
      5. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.evaluateStatement(PowerMockJUnit47RunnerDelegateImpl.java:107)
      6. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:82)
      7. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:288)
      7 frames
    10. JUnit
      MethodRoadie.run
      1. org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:86)
      2. org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)
      2 frames
    11. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$1.run
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:208)
      2. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:147)
      3. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:121)
      3 frames
    12. JUnit
      ClassRoadie.runProtected
      1. org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:33)
      2. org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:45)
      2 frames
    13. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl.run
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:123)
      1 frame
    14. powermock-module-junit4-common
      AbstractCommonPowerMockRunner.run
      1. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:121)
      2. org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)
      2 frames
    15. powermock-module-junit4
      PowerMockRunner.run
      1. org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)
      1 frame
    16. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
      1 frame
    17. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
      5 frames