NoClassDefFoundError: org/bouncycastle/asn1/ASN1Encodable - Missing ASN.1 Utility Classes

Hello there,

I have a Nextcloud instance (V26) with an Elasticsearch V8.2.10 as full text search component.
While indexing user data my ES node poorly died this morning with a missing class not found exception.

It seems that a user has an encrypted PDF document which is sent to the ES instance, which is trying to decode it, but has no bcutil class libraries at hand.

I searched for bc*.jar libs beyond the elasticsearch installation (/usr/share/elasticsearch) and find only these:

[root@ncsearch01 elasticsearch]# find . -name "bc*.jar"

./lib/tools/plugin-cli/bc-fips-1.0.2.jar

./lib/tools/plugin-cli/bcpg-fips-1.0.4.jar

./lib/tools/security-cli/bcpkix-jdk15on-1.64.jar

./lib/tools/security-cli/bcprov-jdk15on-1.64.jar

The bouncycastle.org site stated that the latest ASN1 classes would be in a
bcutil-jdk18on-176.jar

Is there a problem in the ES distribution (yum Repo) or do I have to install this lib myself?

Yum Repo:
Elastic.repo

[Elasticsearch]

baseurl = https://artifacts.elastic.co/packages/8.x/yum

gpgcheck = 1

gpgkey = https://artifacts.elastic.co/GPG-KEY-elasticsearch

name = External ES Repo for 8.x packages from elasticsearch.co

On the other hand:

Why is Elastic trying to decrypt a PDF instead of skipping it (encrypted content) and continue its work?

Best regards
Frank

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.