hadoop-ozone-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [hadoop-ozone] smengcl opened a new pull request #303: HDDS-2666. Suppress loader constraint violation message in TestOzoneFileSystemWithMocks
Date Wed, 04 Dec 2019 23:01:06 GMT
smengcl opened a new pull request #303: HDDS-2666. Suppress loader constraint violation message
in TestOzoneFileSystemWithMocks
URL: https://github.com/apache/hadoop-ozone/pull/303
 
 
   ## What changes were proposed in this pull request?
   
   Suppress loader constraint violation error message in `TestOzoneFileSystemWithMocks`:
   ```
   ERROR StatusLogger Could not reconfigure JMX
    java.lang.LinkageError: loader constraint violation: loader (instance of org/powermock/core/classloader/MockClassLoader)
previously initiated loading for a different type with name "javax/management/MBeanServer"
   	at java.lang.ClassLoader.defineClass1(Native Method)
   	at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
   	at org.powermock.core.classloader.MockClassLoader.loadUnmockedClass(MockClassLoader.java:250)
   	at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:194)
   	at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:71)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
   	at org.apache.logging.log4j.core.jmx.Server.unregisterAllMatching(Server.java:335)
   	at org.apache.logging.log4j.core.jmx.Server.unregisterLoggerContext(Server.java:259)
   	at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:164)
   	at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:140)
   	at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:558)
   	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:619)
   	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:636)
   	at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:231)
   ...
   ```
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-2666
   
   ## How was this patch tested?
   
   Run TestOzoneFileSystemWithMocks. Should no longer print `java.lang.LinkageError: loader
constraint violation`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


Mime
View raw message