#1152578 reload4j: FTBFS: java.lang.NullPointerException: Cannot invoke "String.indexOf(String)" because the return value of "java.lang.System.getProperty(String)" is null

#1152578#5
Date:
2026-10-30 11:23:23 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:reload4j, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 s -- in org.apache.log4j.net.HashmapDOSTest
[WARNING] org.apache.log4j.net.HashmapDOSTest skipped
[INFO] Running org.apache.log4j.net.TelnetAppenderTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.401 s <<< FAILURE! -- in org.apache.log4j.net.TelnetAppenderTest
[ERROR] org.apache.log4j.net.TelnetAppenderTest.testIt -- Time elapsed: 1.401 s <<< ERROR!
java.lang.NullPointerException: Cannot invoke "String.indexOf(String)" because the return value of "java.lang.System.getProperty(String)" is null
	at org.apache.log4j.net.TelnetAppenderTest.testIt(TelnetAppenderTest.java:72)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)

[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   MinimumTestCase.ttcc:105
[ERROR]   PatternParserTestCase.mdcPattern:122
[ERROR]   XMLLayoutTestCase.locationInfo:81
[ERROR]   XMLLayoutTestCase.testCDATA:103
[ERROR]   XMLLayoutTestCase.testMDC:148
[ERROR]   XMLLayoutTestCase.testMDCEscaped:167
[ERROR]   XMLLayoutTestCase.testNull:123
[ERROR]   XMLLayoutTestCase.testSmoke:69
[ERROR] Errors:
[ERROR]   LevelTest.testDeserializeINFO:67 NullPointer Cannot invoke "String.startsWith(String)" because the return value of "java.lang.System.getProperty(String)" is null
[ERROR]   MDCTestCase.testRemoveLastKey:57->checkThreadLocalsForLeaks:71 » InaccessibleObject Unable to make field private java.lang.ThreadLocal$ThreadLocalMap java.lang.Thread.threadLocals accessible: module java.base does not "opens java.lang" to unnamed module @50cbc42f
[ERROR]   SocketServerTestCase.test1:120 » FileNotFound target/test-output/socketServerTestCase.out (No such file or directory)
[ERROR]   SocketServerTestCase.test2:141 » FileNotFound target/test-output/socketServerTestCase.out (No such file or directory)
[ERROR]   SocketServerTestCase.test3:161 » FileNotFound target/test-output/socketServerTestCase.out (No such file or directory)
[ERROR]   SocketServerTestCase.test4:183 NullPointer Cannot invoke "String.startsWith(String)" because the return value of "java.lang.System.getProperty(String)" is null
[ERROR]   SocketServerTestCase.test5:219 NullPointer Cannot invoke "String.startsWith(String)" because the return value of "java.lang.System.getProperty(String)" is null
[ERROR]   SocketServerTestCase.test6:253 NullPointer Cannot invoke "String.startsWith(String)" because the return value of "java.lang.System.getProperty(String)" is null
[ERROR]   SocketServerTestCase.test7:283 NullPointer Cannot invoke "String.startsWith(String)" because the return value of "java.lang.System.getProperty(String)" is null
[ERROR]   SocketServerTestCase.test8:312 NullPointer Cannot invoke "String.indexOf(String)" because the return value of "java.lang.System.getProperty(String)" is null
[ERROR]   TelnetAppenderTest.testIt:72 NullPointer Cannot invoke "String.indexOf(String)" because the return value of "java.lang.System.getProperty(String)" is null
[INFO]
[ERROR] Tests run: 656, Failures: 8, Errors: 11, Skipped: 3
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  57.651 s
[INFO] Finished at: 2026-10-29T21:34:32Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.6:test (default-test) on project reload4j: There are test failures.
[ERROR]
[ERROR] See /<<PKGBUILDDIR>>/target/surefire-reports for the individual test results.
[ERROR] See dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
dh_auto_test: error: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode test returned exit code 1
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1152578#8
Date:
2026-10-30 16:10:39 UTC
From:
To:
Hello,

Bug #1152578 in reload4j reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/java-team/reload4j/-/commit/cb150690d23b7bf2883507c00fe76c780db9620a

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1152578

#1152578#15
Date:
2026-10-30 16:34:10 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
reload4j, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1152578@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Bourg <ebourg@apache.org> (supplier of updated reload4j package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 30 Oct 2026 16:41:26 +0100
Source: reload4j
Architecture: source
Version: 1.2.26-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Emmanuel Bourg <ebourg@apache.org>
Closes: 1152578
Changes:
 reload4j (1.2.26-2) unstable; urgency=medium
 .
   * Team upload.
   * Fixed the build failure with surefire 3 (Closes: #1152578)
   * Removed the Priority field
Checksums-Sha1:
 cc9066510debd628a0a33b92042af8a212eab4b0 2128 reload4j_1.2.26-2.dsc
 f11b2f6b3642260f50a53857d24aed684534b211 2476 reload4j_1.2.26-2.debian.tar.xz
 57080772a249d8574cce39e35402d239eb7c03df 15800 reload4j_1.2.26-2_source.buildinfo
Checksums-Sha256:
 49c5b8c431dd580aa40e71c7d58a65e5ea5ade765185ffb3c43fa1a291175447 2128 reload4j_1.2.26-2.dsc
 616bc01d0e49c8b7df58f6187aaf872b116c1d21461c2f3525cac9abe430f52b 2476 reload4j_1.2.26-2.debian.tar.xz
 7ed3d644b9e0ec0284f665a97a9b3b4654218334082c0b7f42580ebca4b64727 15800 reload4j_1.2.26-2_source.buildinfo
Files:
 ee6b20f9b80a28eb7cef8f411b234adc 2128 java optional reload4j_1.2.26-2.dsc
 c6bd32684e9e0f57a71c77c6f3660b80 2476 java optional reload4j_1.2.26-2.debian.tar.xz
 79a52302f03782f209018de75b24cff8 15800 java optional reload4j_1.2.26-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmrkwXoSHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCsyZMP+gMSrVo9UjkAs0ZopsGy9ryEnILKqcUH
zZkl1nnZuMjDF74nWLd2lj8xdw+Fd+WJs4uRZI+EMk4Gdco8kMaV2k1e2ivE3I3Z
4NHaNjTo98/VjRDoGmtfA95nMmrA5e1rN2FOOd/mSwAbP/AZp/DCpgzsMBWGtOdT
Q/4xxorpi63vRxuABzMmykg700H6iz7IZmKPBm5ZUi/b7hRWHNdqoPYyQfsZZmJ6
5XZXIuajr4CGBL60jjXBYdFKFp9fnIEd/QCpf/0V3nPIxWfQN9nt+vpBTgNB9msW
VdKBaSEXRbgQH6QSaOcJ6WFs1kFY0U3YBRlg2PlkWdkGvbjn8crrlBysO9IXvFGC
mCd0N1fmnwDRwkMsbFK8dN7ctAmFs/XqnuPYSCeo1iH79KYfbcfWFAO+7wH8Wwoe
R4iAZyZ7Z82DaWuK6gGLKkQxSORi4mYA/mt/ddHM9ZloZMlq64IlOI+zAtBPz2s7
6Gst+Q3AhkWS4Hwd4i47nqedOIKiuRPp+4TFdvJmHzCAn02dL3/0zZLlEVyRIxZM
77RrnPW+HDCCTDP39kKTfeVbj0GvQ4Mqr6fJn8y4R3iOJiHiYwKgaVxZRUackeaK
J2vkYSAx3EacDDDoOUbQQyfloEM0unf03T9DP4nK1fYdHIl8/QyEvG8AZSCNG3tF
ufEdAM2QQLjg
=RMHH
-----END PGP SIGNATURE-----