#1139493 unirest-java: FTBFS: /<<PKGBUILDDIR>>/src/test/java/com/mashape/unirest/test/helper/JacksonObjectMapper.java:[22,48] error: unreported exception IOException; must be caught or declared to be thrown

#1139493#5
Date:
2026-06-09 09:48:11 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/202606/

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:unirest-java, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=maven
   dh_auto_clean -O--buildsystem=maven
	bash -c "for dir in \$(find . -name target -type d); do if [ -f \$(echo \$dir | sed -e s/target\$/pom.xml/) ]; then rm -Rf \$dir; fi done"
	mh_unpatchpoms -plibunirest-java-java
   dh_autoreconf_clean -O--buildsystem=maven
   dh_clean -O--buildsystem=maven
 debian/rules binary
dh binary --buildsystem=maven
   dh_update_autotools_config -O--buildsystem=maven
   dh_autoreconf -O--buildsystem=maven
   dh_auto_configure -O--buildsystem=maven
	mh_patchpoms -plibunirest-java-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
   dh_auto_build -O--buildsystem=maven
	/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 package -DskipTests -Dnotimestamp=true -Dlocale=en_US
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/usr/share/maven/lib/guava.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.mashape.unirest:unirest-java >------------------
[INFO] Building unirest-java 1.4.8
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact org.apache.maven.plugins:maven-surefire-plugin:jar:2.17 has been relocated to org.apache.maven.plugins:maven-surefire-plugin:jar:2.22.3
[WARNING] The artifact org.apache.maven.plugins:maven-jar-plugin:jar:3.1.2 has been relocated to org.apache.maven.plugins:maven-jar-plugin:jar:3.3.0
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ unirest-java ---
[INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/main/resources
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ unirest-java ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 29 source files with javac [forked debug target 1.5] to target/classes
Use of target 1.5 is no longer supported, switching to 8
Use of source 1.5 is no longer supported, switching to 8
[WARNING] Unable to autodetect 'javac' path, using 'javac' from the environment.
[WARNING] [options] bootstrap class path is not set in conjunction with -source 8
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ unirest-java ---
[INFO] Copying 2 resources from src/test/resources to target/test-classes
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ unirest-java ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 3 source files with javac [forked debug target 1.5] to target/test-classes
Use of target 1.5 is no longer supported, switching to 8
Use of source 1.5 is no longer supported, switching to 8
[WARNING] Unable to autodetect 'javac' path, using 'javac' from the environment.
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] [options] bootstrap class path is not set in conjunction with -source 8
[INFO] 1 warning
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] To suppress warnings about obsolete options, use -Xlint:-options.
/<<PKGBUILDDIR>>/src/test/java/com/mashape/unirest/test/helper/JacksonObjectMapper.java:[22,48] error: unreported exception IOException; must be caught or declared to be thrown
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.071 s
[INFO] Finished at: 2026-06-08T22:03:06Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:testCompile (default-testCompile) on project unirest-java: Compilation failure
[ERROR] To suppress warnings about obsolete options, use -Xlint:-options.
[ERROR] /<<PKGBUILDDIR>>/src/test/java/com/mashape/unirest/test/helper/JacksonObjectMapper.java:[22,48] error: unreported exception IOException; must be caught or declared to be thrown
[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_build: 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 package -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1139493#8
Date:
2026-06-20 21:19:58 UTC
From:
To:
Hello,

Bug #1139493 in unirest-java 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/unirest-java/-/commit/d496f9d165c0f0a4379e5c9b21a0df1a494c13f1

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1139493

#1139493#15
Date:
2026-06-20 22:24:14 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
unirest-java, 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 1139493@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 unirest-java 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: Sat, 20 Jun 2026 14:05:17 -0700
Source: unirest-java
Architecture: source
Version: 1.4.8-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: tony mancill <tmancill@debian.org>
Closes: 1139493
Changes:
 unirest-java (1.4.8-4) unstable; urgency=medium
 .
   * Patch for jackson-core 2.14.1-2 (Closes: #1139493)
Checksums-Sha1:
 148a1ec0a5dcc0db6ff4444d0c570cd5f3f493bd 2183 unirest-java_1.4.8-4.dsc
 cbc0bf609d209d4e343853da00a7ba0ab2ded4b2 8668 unirest-java_1.4.8-4.debian.tar.xz
 1e79e9e0a5f209ddf9bf4bed002222245fc1ec62 15134 unirest-java_1.4.8-4_amd64.buildinfo
Checksums-Sha256:
 74e27a508bb690f5a89fa6a9d8b5d4a3f69401e626b2e2d066439d7b0217a1aa 2183 unirest-java_1.4.8-4.dsc
 eff4406a02817971488ab9b35978e574b5a81ce374cc2d88b4b51a1b587806dc 8668 unirest-java_1.4.8-4.debian.tar.xz
 0d6aa6e2343854044d396a26929179d1befc2803e71542f24ac5e480ceae67a3 15134 unirest-java_1.4.8-4_amd64.buildinfo
Files:
 52e7a1fcca475ff89ce613518dadc71f 2183 java optional unirest-java_1.4.8-4.dsc
 c82be85c4fd02af08f829a05c97338f9 8668 java optional unirest-java_1.4.8-4.debian.tar.xz
 bfb22b411aa38e25c121259a661e15d0 15134 java optional unirest-java_1.4.8-4_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEE5Qr9Va3SequXFjqLIdIFiZdLPpYFAmo3A+cUHHRtYW5jaWxs
QGRlYmlhbi5vcmcACgkQIdIFiZdLPpZyNBAAtEOF7kGZXok+1vhZKaVUBtytgClk
s0I4vYLi8aIoYzBCUUYLg5/QUzPzJxiYWANNGtw3HjGiwLJOVqN5TWyF6ra1KQ+p
a+dSdjD0W3T4HJGkln/C43QJb7kua5HOIznlEeq8JQaaOGRsaSjTs4xtGsyPvgIX
YdCGaXgaw6j3nFqG256uAE2FHMgeQT+4TiERk83205IkCXjWMAVsEU+6Hz3ds4X/
5/oTGK664aWP5JAmk9gbzXifyPXgNHgFz9DKQFajTbO354C+ZFZLVwcyO5f27OiU
UxvWWubRQYDtmqC1VkUW9PsrD0sU0t4Au+WT+o00St4uY7IHrGNeKIaG2sSPv9c0
GLi+8IJwx/nlGncdw+BP4qKXFjQ5LxlfvK0ZJlY7yAU28SqlqxB5PwrrF0SlfZUM
h3NINcul5/Un8eDZ54BOwG3FWxws2l8FbCB0e5MP+zvhjowSqyxHqogea2hatRF+
uM8lPKsDKuR8x7AuzVFbpVKHFyIpAFKREIBEu9ylZE+PXwX2A/6ZHJcKMKsvB4aI
rfRakjVyHtnnkr9P1pXPxXZv66c3hTg1ov8nvS2lMXRAGlA2dNVM2IaQCu0+/a7F
aCaCUKmDRW8ywITpbTZhsXADCzGl6HA8gqVTYfamzuL5ImADg9EdOGWf+vv1bZNm
1+8OS2BmvBo+9jk=
=xN2n
-----END PGP SIGNATURE-----