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

**URL:** <https://discuss.elastic.co/t/noclassdeffounderror-org-bouncycastle-asn1-asn1encodable-missing-asn-1-utility-classes/344734>\
**Category:** Elasticsearch\
**Created:** [October 10, 2023, 12:32pm UTC](https://discuss.elastic.co/t/noclassdeffounderror-org-bouncycastle-asn1-asn1encodable-missing-asn-1-utility-classes/344734 "2023-10-10T12:32:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Franco901](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/franco901/32/123902_2.png) [@Franco901](https://discuss.elastic.co/u/Franco901)\
**Post date:** [October 10, 2023, 12:32pm UTC](https://discuss.elastic.co/t/noclassdeffounderror-org-bouncycastle-asn1-asn1encodable-missing-asn-1-utility-classes/344734/1 "2023-10-10T12:32:41Z")

</div>

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:

```auto
[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](http://bouncycastle.org) site stated that the latest ASN1 classes would be in a  
[bcutil-jdk18on-176.jar](https://www.bouncycastle.org/download/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](https://artifacts.elastic.co/packages/8.x/yum)
> 
> gpgcheck = 1
> 
> gpgkey = [https://artifacts.elastic.co/GPG-KEY-elasticsearch](https://artifacts.elastic.co/GPG-KEY-elasticsearch)
> 
> name = External ES Repo for 8.x packages from [elasticsearch.co](http://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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 7, 2023, 12:33pm UTC](https://discuss.elastic.co/t/noclassdeffounderror-org-bouncycastle-asn1-asn1encodable-missing-asn-1-utility-classes/344734/2 "2023-11-07T12:33:05Z")

</div>

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