Bug#1101420: pgpainless-cli: Fails with exception due to missing class

Guillem Jover guillem at debian.org
Thu Mar 27 09:18:42 GMT 2025


Package: pgpainless-cli
Version: 1.6.8-1
Severity: serious

Hi!

The dpkg test suite (in author mode, so not used during release or
normal package builds), has support to test its SOP support,
explicitly by calling pgpainless-cli, but it also contains run-time
dependencies on pgpainless-cli. But that has been failing for a
while, because the invocation of for example inline-verify triggers an
exception:

  ,---
  $ pgpainless-cli inline-verify hello-traditional_2.10-6.dsc /usr/share/keyrings/debian-keyring.gpg 
  Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/asn1/cryptlib/CryptlibObjectIdentifiers
          at org.bouncycastle.openpgp.PGPUtil$2.<init>(Unknown Source)
          at org.bouncycastle.openpgp.PGPUtil.<clinit>(Unknown Source)
          at org.pgpainless.util.ArmorUtils.getDecoderStream(ArmorUtils.java:598)
          at org.pgpainless.key.parsing.KeyRingReader.readPublicKeyRingCollection(KeyRingReader.java:285)
          at org.pgpainless.key.parsing.KeyRingReader.readPublicKeyRingCollection(KeyRingReader.java:266)
          at org.pgpainless.key.parsing.KeyRingReader.publicKeyRingCollection(KeyRingReader.java:101)
          at org.pgpainless.sop.KeyReader.readPublicKeys(KeyReader.java:49)
          at org.pgpainless.sop.InlineVerifyImpl.cert(InlineVerifyImpl.java:50)
          at org.pgpainless.sop.InlineVerifyImpl.cert(InlineVerifyImpl.java:32)
          at sop.cli.picocli.commands.InlineVerifyCmd.run(InlineVerifyCmd.java:67)
          at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
          at picocli.CommandLine.access$1300(CommandLine.java:145)
          at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
          at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
          at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
          at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
          at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
          at picocli.CommandLine.execute(CommandLine.java:2078)
          at sop.cli.picocli.SopCLI.execute(SopCLI.java:100)
          at org.pgpainless.cli.PGPainlessCLI.execute(PGPainlessCLI.java:39)
          at org.pgpainless.cli.PGPainlessCLI.main(PGPainlessCLI.java:26)
  Caused by: java.lang.ClassNotFoundException: org.bouncycastle.asn1.cryptlib.CryptlibObjectIdentifiers
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
          at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)
          ... 21 more
  `---

Thanks,
Guillem



More information about the pkg-java-maintainers mailing list