[ 
https://issues.apache.org/jira/browse/GEODE-2171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kirk Lund updated GEODE-2171:
-----------------------------
    Affects Version/s: 1.0.0-incubating

> Tests that use PowerMock fail with java.lang.UnsatisfiedLinkError on Windows
> ----------------------------------------------------------------------------
>
>                 Key: GEODE-2171
>                 URL: https://issues.apache.org/jira/browse/GEODE-2171
>             Project: Geode
>          Issue Type: Bug
>          Components: tests
>    Affects Versions: 1.0.0-incubating
>            Reporter: Kirk Lund
>              Labels: PowerMock, UnitTest, Windows
>
> Some of the tests that use PowerMock appear to be failing on Windows with 
> java.lang.UnsatisfiedLinkError involving jansi library: 
> java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no 
> jansi64-1.8 in java.library.path, no jansi-1.8 in java.library.path, no jansi 
> in java.library.path, Native Library C:\cygwin\tmp\jansi-64-1.8.dll already 
> loaded in another classloader]
> Example stack:
> {noformat}
> java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no 
> jansi64-1.8 in java.library.path, no jansi-1.8 in java.library.path, no jansi 
> in java.library.path, Native Library C:\cygwin\tmp\jansi-64-1.8.dll already 
> loaded in another classloader]
>       at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:184)
>       at org.fusesource.hawtjni.runtime.Library.load(Library.java:142)
>       at org.fusesource.jansi.internal.Kernel32.<clinit>(Kernel32.java:37)
>       at 
> org.fusesource.jansi.WindowsAnsiOutputStream.<clinit>(WindowsAnsiOutputStream.java:52)
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>       at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>       at 
> org.apache.logging.log4j.core.appender.ConsoleAppender.getOutputStream(ConsoleAppender.java:253)
>       at 
> org.apache.logging.log4j.core.appender.ConsoleAppender.getDefaultManager(ConsoleAppender.java:218)
>       at 
> org.apache.logging.log4j.core.appender.ConsoleAppender.createDefaultAppenderForLayout(ConsoleAppender.java:145)
>       at 
> org.apache.logging.log4j.core.config.AbstractConfiguration.setToDefault(AbstractConfiguration.java:552)
>       at 
> org.apache.logging.log4j.core.config.DefaultConfiguration.<init>(DefaultConfiguration.java:47)
>       at 
> org.apache.logging.log4j.core.LoggerContext.<init>(LoggerContext.java:73)
>       at 
> org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.createContext(ClassLoaderContextSelector.java:171)
>       at 
> org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.locateContext(ClassLoaderContextSelector.java:145)
>       at 
> org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:74)
>       at 
> org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:227)
>       at 
> org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
>       at org.apache.logging.log4j.LogManager.getContext(LogManager.java:174)
>       at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:631)
>       at org.apache.geode.internal.logging.LogService.init(LogService.java:82)
>       at 
> org.apache.geode.internal.logging.LogService.<clinit>(LogService.java:73)
>       at 
> org.apache.geode.internal.cache.tier.sockets.Message.<clinit>(Message.java:92)
>       at 
> sun.reflect.GeneratedSerializationConstructorAccessor159.newInstance(Unknown 
> Source)
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>       at 
> org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.newInstance(SunReflectionFactoryInstantiator.java:45)
>       at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:73)
>       at 
> org.mockito.internal.creation.instance.ObjenesisInstantiator.newInstance(ObjenesisInstantiator.java:14)
>       at 
> org.powermock.api.mockito.repackaged.ClassImposterizer.createProxy(ClassImposterizer.java:143)
>       at 
> org.powermock.api.mockito.repackaged.ClassImposterizer.imposterise(ClassImposterizer.java:58)
>       at 
> org.powermock.api.mockito.internal.mockcreation.MockCreator.createMethodInvocationControl(MockCreator.java:111)
>       at 
> org.powermock.api.mockito.internal.mockcreation.MockCreator.mock(MockCreator.java:59)
>       at org.powermock.api.mockito.PowerMockito.mock(PowerMockito.java:203)
>       at 
> org.powermock.api.extension.listener.AnnotationEnabler.standardInject(AnnotationEnabler.java:106)
>       at 
> org.powermock.api.extension.listener.AnnotationEnabler.beforeTestMethod(AnnotationEnabler.java:54)
>       at 
> org.powermock.tests.utils.impl.PowerMockTestNotifierImpl.notifyBeforeTestMethod(PowerMockTestNotifierImpl.java:90)
>       at 
> org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:292)
>       at 
> org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:127)
>       at 
> org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:82)
>       at 
> org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:282)
>       at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:87)
>       at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:50)
>       at 
> org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:207)
>       at 
> org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:146)
>       at 
> org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:120)
>       at 
> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
>       at 
> org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
>       at 
> org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:122)
>       at 
> org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:106)
>       at 
> org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)
>       at 
> org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)
>       at 
> org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114)
>       at 
> org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57)
>       at 
> org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
>       at 
> org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
>       at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:497)
>       at 
> org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
>       at 
> org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
>       at 
> org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
>       at 
> org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
>       at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
>       at 
> org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
>       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:497)
>       at 
> org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
>       at 
> org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
>       at 
> org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:377)
>       at 
> org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
>       at 
> org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>       at java.lang.Thread.run(Thread.java:745)
> {noformat}
> List of affected tests:
> * UnregisterInterestTest



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to