Hi Robert, Thanks for taking a look at it.
Does anyone else see this? I was also not able to reproduce that error locally and the ci-builds.apache.org builds of the trunk seem to be working fine with both JDK 17 and 21 on linux and windows. I was using this environment to produce the release: Apache Maven 3.9.10 (5f519b97e944483d878815739f519b2eade0a91d) Maven home: /home/enorman/tools/apache-maven-3.9.10 Java version: 17.0.15, vendor: Ubuntu, runtime: /usr/lib/jvm/java-17-openjdk-amd64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "5.4.0-216-generic", arch: "amd64", family: "unix" Maybe something in your m2 cache is corrupted? Have you tried a build with a fresh local maven artifact repository? mvn clean verify -Dmaven.repo.local=/tmp/temp-repo Regards, Eric On Wed, Apr 15, 2026 at 4:13 AM Robert Munteanu <[email protected]> wrote: > On Tue, 2026-04-14 at 14:27 -0700, Eric Norman wrote: > > > > Staging repository: > > https://repository.apache.org/content/repositories/orgapachesling-3088/ > > I cannot build the project form the attached source archive. Tests fail > consistently on Java 17/21/25 for me. The initial failure is in the > ZipReaderTest and the others fail because slf4j cannot be initialised. > > Does anyone else see this? > > This particular failure was reproduced with > > Apache Maven 3.9.14 > Maven home: /usr/share/maven > Java version: 17.0.18, vendor: N/A, runtime: > /usr/lib64/jvm/java-17-openjdk-17 > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "6.19.11-1-default", arch: "amd64", family: > "unix" > > [INFO] Running > org.apache.sling.jcr.contentloader.internal.readers.ZipReaderTest > OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot > loader classes because bootstrap classpath has been appended > [ERROR] Tests run: 12, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: > 0.948 s <<< FAILURE! -- in > org.apache.sling.jcr.contentloader.internal.readers.ZipReaderTest > [ERROR] > org.apache.sling.jcr.contentloader.internal.readers.ZipReaderTest.removeTempFileLogWarningOnIOException > -- Time elapsed: 0.019 s <<< ERROR! > java.lang.IllegalStateException: Unexpected initialization failure > at org.slf4j.LoggerFactory.bind(LoggerFactory.java:216) > at > org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:187) > at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:511) > at > org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:497) > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:446) > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:472) > at > org.apache.sling.jcr.contentloader.internal.readers.ZipReader.removeTempFile(ZipReader.java:140) > at > org.apache.sling.jcr.contentloader.internal.readers.ZipReaderTest.lambda$removeTempFileLogWarningOnIOException$11(ZipReaderTest.java:260) > at > org.apache.sling.jcr.contentloader.internal.readers.ZipReaderTest.doWorkWithCapturedSystemErr(ZipReaderTest.java:351) > at > org.apache.sling.jcr.contentloader.internal.readers.ZipReaderTest.removeTempFileLogWarningOnIOException(ZipReaderTest.java:260) > Caused by: java.lang.NullPointerException: Cannot invoke > "java.nio.file.attribute.BasicFileAttributes.lastModifiedTime()" because > "this.attrs" is null > at > java.base/java.util.zip.ZipFile$Source$Key.hashCode(ZipFile.java:1398) > at java.base/java.util.HashMap.hash(HashMap.java:338) > at java.base/java.util.HashMap.getNode(HashMap.java:568) > at java.base/java.util.HashMap.get(HashMap.java:556) > at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1439) > at > java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:717) > at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:251) > at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:180) > at java.base/java.util.jar.JarFile.<init>(JarFile.java:346) > at > java.base/sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:103) > at > java.base/sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:72) > at > java.base/sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:168) > at > java.base/sun.net.www.protocol.jar.JarFileFactory.getOrCreate(JarFileFactory.java:91) > at > java.base/sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:117) > at > java.base/sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:160) > at > java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.parse(ServiceLoader.java:1172) > at > java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1213) > at > java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1228) > at > java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273) > at > java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309) > at > java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393) > at > org.slf4j.LoggerFactory.findServiceProviders(LoggerFactory.java:133) > at org.slf4j.LoggerFactory.bind(LoggerFactory.java:195) > ... 9 more >
