#1057536 tiles-autotag: FTBFS with default Java 21

#1057536#5
Date:
2023-12-05 21:10:09 UTC
From:
To:
Dear Maintainers,

The package tiles-autotag ftbfs with default Java 21.
The relevant part of the build log:
---------------
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest
[ERROR] Tests run: 5, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.517 s <<< FAILURE! - in org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest
[ERROR] testEvaluateWithoutWriting(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)  Time elapsed: 0.397 s  <<< ERROR!
java.lang.IllegalArgumentException: Could not create type
	at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWriting(AbstractModelBodyTest.java:95)
Caused by: java.lang.IllegalArgumentException: org.easymock.mocks.Writer$$$EasyMock$1 must be defined in the same package as org.easymock.internal.ClassProxyFactory
	at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWriting(AbstractModelBodyTest.java:95)

[ERROR] testEvaluateWithoutWritingException(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)  Time elapsed: 0.041 s  <<< ERROR!
java.lang.Exception: Unexpected exception, expected<java.io.IOException> but was<java.lang.IllegalArgumentException>
	at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWritingException(AbstractModelBodyTest.java:111)
Caused by: java.lang.IllegalArgumentException: org.easymock.mocks.Writer$$$EasyMock$2 must be defined in the same package as org.easymock.internal.ClassProxyFactory
	at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWritingException(AbstractModelBodyTest.java:111)

[ERROR] testEvaluateAsStringException(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)  Time elapsed: 0.022 s  <<< ERROR!
java.lang.Exception: Unexpected exception, expected<java.io.IOException> but was<java.lang.IllegalArgumentException>
	at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateAsStringException(AbstractModelBodyTest.java:75)
Caused by: java.lang.IllegalArgumentException: org.easymock.mocks.Writer$$$EasyMock$3 must be defined in the same package as org.easymock.internal.ClassProxyFactory
	at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateAsStringException(AbstractModelBodyTest.java:75)

[ERROR] testEvaluate(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)  Time elapsed: 0.018 s  <<< ERROR!
java.lang.IllegalArgumentException: Could not create type
	at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluate(AbstractModelBodyTest.java:46)
Caused by: java.lang.IllegalArgumentException: org.easymock.mocks.Writer$$$EasyMock$4 must be defined in the same package as org.easymock.internal.ClassProxyFactory
	at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluate(AbstractModelBodyTest.java:46)

[INFO] Running org.apache.tiles.autotag.core.runtime.util.NullWriterTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.tiles.autotag.core.runtime.util.NullWriterTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   AbstractModelBodyTest.testEvaluate:46 » IllegalArgument Could not create type
[ERROR]   AbstractModelBodyTest.testEvaluateAsStringException »  Unexpected exception, e...
[ERROR]   AbstractModelBodyTest.testEvaluateWithoutWriting:95 » IllegalArgument Could no...
[ERROR]   AbstractModelBodyTest.testEvaluateWithoutWritingException »  Unexpected except...
[INFO]
[ERROR] Tests run: 8, Failures: 0, Errors: 4, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Autotags 1.2:
[INFO]
[INFO] Autotags ........................................... SUCCESS [  0.002 s]
[INFO] Autotag - Core runtime ............................. FAILURE [ 10.816 s]
[INFO] Autotag - Core ..................................... SKIPPED
[INFO] Tiles Autotag - JSP tags automatic generation ...... SKIPPED
[INFO] Autotag - Freemarker support ....................... SKIPPED
[INFO] Autotag - Velocity support ......................... SKIPPED
[INFO] maven-autotag-plugin Maven Mojo .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.903 s
[INFO] Finished at: 2023-12-04T19:54:39Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.3:test (default-test) on project tiles-autotag-core-runtime: There are test failures.
[ERROR]
[ERROR] Please refer to /<<PKGBUILDDIR>>/tiles-autotag-core-runtime/target/surefire-reports for the individual test results.
[ERROR] Please refer to 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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :tiles-autotag-core-runtime
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 -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties 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:4: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2023-12-04T19:54:39Z
---------------

#1057536#10
Date:
2024-02-16 03:22:14 UTC
From:
To:
Hi,

The issue is caused by the outdated version of the byte-buddy. Upgrading it
to 1.14 should solve the issue.
The issue can be worked around by adding -Dnet.bytebuddy.experimental=true
to the argLine in maven-surefire-plugin.
This is the same issue as[1].

 Best Regards,
  Vladimir.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=105751

#1057536#15
Date:
2024-02-21 06:16:03 UTC
From:
To:
FTBFS with Java 21 fixed via the work-around for now.
#1057536#18
Date:
2024-02-21 06:14:29 UTC
From:
To:
Hello,

Bug #1057536 in tiles-autotag 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/tiles-autotag/-/commit/a2ac6cd882bd6996621ad3c23473c17c6e48cbc7
------------------------------------------------------------------------
Add -Dnet.bytebuddy.experimental=true to maven properties

Work-around FTBFS with Java 21 (Closes: #1057536)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1057536

#1057536#25
Date:
2024-02-21 06:38:52 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
tiles-autotag, 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 1057536@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
tony mancill <tmancill@debian.org> (supplier of updated tiles-autotag 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: Tue, 20 Feb 2024 22:08:14 -0800
Source: tiles-autotag
Architecture: source
Version: 1.2-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: tony mancill <tmancill@debian.org>
Closes: 1057536
Changes:
 tiles-autotag (1.2-5) unstable; urgency=medium
 .
   * Team upload
   * Add -Dnet.bytebuddy.experimental=true to maven properties
     Work-around FTBFS with Java 21 (Closes: #1057536)
     Thank you to Vladimir Petko for the bug report and resolution.
   * Bump Standards-Version to 4.6.2
   * Collapse Build-Depends-Indep into Build-Depends
   * Set Rules-Requires-Root: no in debian/control
   * Ship Apache NOTICE file
   * Freshen years in debian/copyright
Checksums-Sha1:
 56ab1a0e4e60a5869dcae006ef0dec9134b981de 2224 tiles-autotag_1.2-5.dsc
 55ed4f0ec1d0fa8207bf73f1dda6586beebafc30 6092 tiles-autotag_1.2-5.debian.tar.xz
 18e6ad83147f0cebb8a926d9b63fd84b2cb77e8f 14903 tiles-autotag_1.2-5_amd64.buildinfo
Checksums-Sha256:
 da0fb1ad16e36f4b6f578bb387c021efb5ae17933d2e78d07449bede5273dcaf 2224 tiles-autotag_1.2-5.dsc
 7de1c233517a09d03eeb9ac16cf0de407ad627b3bddfa8adfd7ac2e8fca59e00 6092 tiles-autotag_1.2-5.debian.tar.xz
 ea9a75d1b6b9755a1e168216a37c5e6f2d502cdd8edd9e1fa06415a9a0e3db17 14903 tiles-autotag_1.2-5_amd64.buildinfo
Files:
 18ee4c6a77ce26cad528b812431c7852 2224 java optional tiles-autotag_1.2-5.dsc
 ac23a3090d8cb6a9d5c38f097d2d7802 6092 java optional tiles-autotag_1.2-5.debian.tar.xz
 ff572bd7f0e61435419a75752b988034 14903 java optional tiles-autotag_1.2-5_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEE5Qr9Va3SequXFjqLIdIFiZdLPpYFAmXVlL4UHHRtYW5jaWxs
QGRlYmlhbi5vcmcACgkQIdIFiZdLPpbsPg//TDxF1Q8m2JymqHxdHIwvXOr+wz0N
e3fuvqc1VRe8kPB0LgaoZ+d9XlyZdcC2uaEnkKmGzo0VZ7tQdM7Lb8mKCMvyVWey
Q94D8KJg+BDERPv2M2APt739C8fxsxutxCb4VUoF7/o/pbiVjZMYTcx04egUScNm
fC7U/YwuowpgbWcxiQRj3UA85CfU+mC2xTFc3SseZdLb8CoUMTsNxCvTUzEXeCWY
J58p1zwQ53Syy/hd5N5USJD1O5z6pPX7x8W8jVaVMrWkVqNevdU8xpCT0doGBFJi
IrSCEH0ASJPdNIQUmEBmkxrmxLPgThTLP7EmZKFoH74DoDK0dWAhq1+DFyM8fRsX
ZnhyiNbnmVdV3uswWm7ZjIp2tl7DRDiVCUFoTZhuwi1e7VjLgPWT+PPuskqDQ5U4
pzW2MHRJM2hUKOqv5ccy90wJiQlf3NPii9xf7oxT0xx82jLDkXWP1f0oJKULyONn
sJCLGV3p6BaPJL4nEftUwbXmib7Z98/ohEqktx2eNoe57HjnOXngVqvLT695Gghm
ymckK/suexLQbqnjPjlkrkNv7CKqYIDg7LomRaYdy/DrXVq8GpALFMQynFRgbudm
17jhj0mxoKg4PiGKte4t8SKa+p4VCRVO1kfxzPLkp6wCw4AhWrf0F7A6Vt1xuGFC
bqafOvZLWxHbb28=
=3Fyh
-----END PGP SIGNATURE-----