Skip to content

Commit dbf464c

Browse files
js8544kou
authored andcommitted
GH-34479: [Java] java-jars failing due to conflicting slf4j bindings (#34480)
### Describe the bug, including details regarding any error messages, version, and platform. Example failure build: https://github.com/ursacomputing/crossbow/actions/runs/4341450290/jobs/7582202736 > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in [jar:file:/Users/runner/.m2/repository/org/slf4j/slf4j-reload4j/1.7.36/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in [jar:file:/Users/runner/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. > SLF4J: Detected both log4j-over-slf4j.jar AND bound slf4j-reload4j.jar on the class path, preempting StackOverflowError. > SLF4J: See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details. Caused by apache/arrow#13861, hadoop-common 3.3.3 added dependency on reload4j( https://hadoop.apache.org/docs/r3.3.3/hadoop-project-dist/hadoop-common/release/3.3.3/RELEASENOTES.3.3.3.html). We should exclude slf4j-reload4j as suggested on the release note. ### Component(s) Java * Closes: #34479 Authored-by: Jin Shang <shangjin1997@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
1 parent 4badd76 commit dbf464c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

adapter/orc/pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
OF ANY KIND, either express or implied. See the License for the specific
1111
language governing permissions and limitations under the License. -->
1212

13-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13+
<project xmlns="http://maven.apache.org/POM/4.0.0"
14+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1416
<modelVersion>4.0.0</modelVersion>
1517
<dependencies>
1618
<dependency>
@@ -91,6 +93,14 @@
9193
<groupId>javax.servlet</groupId>
9294
<artifactId>servlet-api</artifactId>
9395
</exclusion>
96+
<exclusion>
97+
<groupId>org.slf4j</groupId>
98+
<artifactId>slf4j-reload4j</artifactId>
99+
</exclusion>
100+
<exclusion>
101+
<groupId>ch.qos.reload4j</groupId>
102+
<artifactId>reload4j</artifactId>
103+
</exclusion>
94104
</exclusions>
95105
</dependency>
96106
<dependency>

0 commit comments

Comments
 (0)