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

Pradeep Agrawal updated RANGER-3859:
------------------------------------
    Language: Trino  (was: Java)

> Fix the test failure for plugin-trino
> -------------------------------------
>
>                 Key: RANGER-3859
>                 URL: https://issues.apache.org/jira/browse/RANGER-3859
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>    Affects Versions: 2.1.0, 2.2.0, 2.3.0
>         Environment: macOS 12.5
> Java11
>            Reporter: Alvin Wo
>            Priority: Critical
>              Labels: Trino
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> I ran tests for plugin-trino and got failure like:
> {code:java}
> // code placeholder
> [ERROR] 
> org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControlTest
>   Time elapsed: 0.289 s  <<< ERROR!
> java.lang.ExceptionInInitializerError
>     at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:72)
>     at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:45)
>     at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
>     at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
>     at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
>     at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
>     at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
>     at 
> org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControl.<clinit>(RangerSystemAccessControl.java:61)
>     at 
> org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControlTest.setUpBeforeClass(RangerSystemAccessControlTest.java:70)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
>     at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>     at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>     at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>     at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>     at 
> org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
>     at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
>     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
>     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
>     at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:377)
>     at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:284)
>     at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:248)
>     at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:167)
>     at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456)
>     at 
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169)
>     at 
> org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595)
>     at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)
> Caused by: java.lang.IllegalStateException: Detected both 
> log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path, 
> preempting StackOverflowError. See also 
> http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.
>     at org.slf4j.impl.Log4jLoggerFactory.<clinit>(Log4jLoggerFactory.java:54)
>     ... 28 more {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to