Any question?

I'm using Log4j 2.13.0.......

https://stackanswers.net/questions/powermock-after-log4j2-3-upgrade-could-not-reconfigure-jmx-java-lang-linkageerror



On 2020/04/29 11:55:32, EDMONDO SENA <edse...@gmail.com> wrote: 
> Sorry, we're using Java 11, Junit 4 e Log4j 2!
> 
> 
> On 2020/04/29 11:49:03, EDMONDO SENA <edse...@gmail.com> wrote: 
> > No It is not so!
> > 
> > PowerMock with java 11 and Log4j old version (1), everything was working.
> > Adding Log4j 2 We've that problem...
> > 
> > 
> > 
> > On 2020/04/29 11:33:24, Benjamin Asbach <contact-...@impl.it> wrote: 
> > > Hello Edmondo,
> > > 
> > > I don't think this is an log4j related issue.
> > > 
> > > You're using Powermock in combination with JUnit 5 which currently is 
> > > not supported [1]. There's some kind of workaround [2] you might try 
> > > that out.
> > > 
> > > Greetings
> > > Benjamin
> > > 
> > > [1] https://github.com/powermock/powermock/issues/830
> > > [2] 
> > > https://github.com/powermock/powermock/issues/830#issuecomment-616243661
> > > 
> > > On 2020-04-29 11:42, EDMONDO SENA wrote:
> > > > Hi Everybody,
> > > > 
> > > > I'm using log4j  2 with Junit 5 and java 11 with last version of
> > > > PowerMock, but the following error is showed:
> > > > 
> > > > "Could not reconfigure jmx
> > > > java.lang.LinkageError:  loader constraint violation : loader
> > > > org.powermock.core.classloader.javassist.JavassistMockClassLoader,
> > > > child of 'app' jdk.internal.loader.ClassLoader$AppClassLoader wants to
> > > > load interface javax.management.MBeanServer."
> > > > 
> > > > A different interface with the same name was previously loaded by 
> > > > 'bootstrap'.
> > > > 
> > > > Can you help me in order to fix this error?
> > > > Kind regards.
> > > > 
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> > > For additional commands, e-mail: log4j-user-h...@logging.apache.org
> > > 
> > > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> > For additional commands, e-mail: log4j-user-h...@logging.apache.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to