# Elasticsearch V8.10.4 died with a "noClassDefFoundError"

**URL:** <https://discuss.elastic.co/t/elasticsearch-v8-10-4-died-with-a-noclassdeffounderror/345555>\
**Category:** Elasticsearch\
**Created:** [October 23, 2023, 10:06am UTC](https://discuss.elastic.co/t/elasticsearch-v8-10-4-died-with-a-noclassdeffounderror/345555 "2023-10-23T10:06:11Z")\
**Posts on this page:** 8\
**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 23, 2023, 10:06am UTC](https://discuss.elastic.co/t/elasticsearch-v8-10-4-died-with-a-noclassdeffounderror/345555/1 "2023-10-23T10:06:11Z")

</div>

Hey folks,

I just setup a new ES node with V8.10.4 for indexing our nextcloud documents.

After about 3 millions of index docs created, the Nextcloud indexer sends a (encrypted) PDF which lets ES die poorly. 🥶

```auto
java.lang.NoClassDefFoundError: org/bouncycastle/cms/CMSException
	at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:?]
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:3549) ~[?:?]
	at java.lang.Class.getConstructor0(Class.java:3754) ~[?:?]
	at java.lang.Class.getDeclaredConstructor(Class.java:2930) ~[?:?]
	at org.apache.pdfbox.pdmodel.encryption.SecurityHandlerFactory.newSecurityHandler(SecurityHandlerFactory.java:132) ~[?:?]
	at org.apache.pdfbox.pdmodel.encryption.SecurityHandlerFactory.newSecurityHandlerForFilter(SecurityHandlerFactory.java:116) ~[?:?]
	at org.apache.pdfbox.pdmodel.encryption.PDEncryption.<init>(PDEncryption.java:97) ~[?:?]
	at org.apache.pdfbox.pdfparser.COSParser.prepareDecryption(COSParser.java:2974) ~[?:?]
	at org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:285) ~[?:?]
	at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:173) ~[?:?]
	at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:226) ~[?:?]
	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1232) ~[?:?]
	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1206) ~[?:?]
	at org.apache.tika.parser.pdf.PDFParser.getPDDocument(PDFParser.java:317) ~[?:?]
	at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:172) ~[?:?]
	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298) ~[?:?]
	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:195) ~[?:?]
	at org.apache.tika.Tika.parseToString(Tika.java:525) ~[?:?]
	at org.elasticsearch.ingest.attachment.TikaImpl.lambda$parse$0(TikaImpl.java:97) ~[?:?]
	at java.security.AccessController.doPrivileged(AccessController.java:714) ~[?:?]
	at org.elasticsearch.ingest.attachment.TikaImpl.parse(TikaImpl.java:96) ~[?:?]
	at org.elasticsearch.ingest.attachment.AttachmentProcessor.execute(AttachmentProcessor.java:121) ~[?:?]
	at org.elasticsearch.ingest.CompoundProcessor.innerExecute(CompoundProcessor.java:163) ~[elasticsearch-8.10.4.jar:?]
	at org.elasticsearch.ingest.CompoundProcessor.execute(CompoundProcessor.java:139) ~[elasticsearch-8.10.4.jar:?]
	at org.elasticsearch.ingest.Pipeline.execute(Pipeline.java:112) ~[elasticsearch-8.10.4.jar:?]
	at org.elasticsearch.ingest.IngestDocument.executePipeline(IngestDocument.java:853) ~[elasticsearch-8.10.4.jar:?]
	at org.elasticsearch.ingest.IngestService.executePipeline(IngestService.java:951) ~[elasticsearch-8.10.4.jar:?]
	at org.elasticsearch.ingest.IngestService.executePipelines(IngestService.java:827) ~[elasticsearch-8.10.4.jar:?]
	at org.elasticsearch.ingest.IngestService$1.doRun(IngestService.java:721) ~[elasticsearch-8.10.4.jar:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.10.4.jar:?]
	at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33) ~[elasticsearch-8.10.4.jar:?]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983) ~[elasticsearch-8.10.4.jar:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.10.4.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.lang.Thread.run(Thread.java:1583) ~[?:?]

```

I could isolate that suspicious document and let it index again on our current production node with ES 7.17.13 - and there is no moaning. ES still continues to do its work - as I would have expected from V8.10 also.

What could be the reasons?

Any help appreciated.  
Frank

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [October 25, 2023, 9:41am UTC](https://discuss.elastic.co/t/elasticsearch-v8-10-4-died-with-a-noclassdeffounderror/345555/2 "2023-10-25T09:41:58Z")

</div>

Hi @Franco901,

Thanks for flagging this issue. Since you see this issue in 8.10 and not 7.17.3 I'm wondering if a dependency is missing or changed. Do you mind raising a [GitHub issue](https://github.com/elastic/elasticsearch/issues/new/choose) for this one? I think a developer might have insights on this one, and I can't see a similar issue raised against the repo.

---

<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 25, 2023, 11:36am UTC](https://discuss.elastic.co/t/elasticsearch-v8-10-4-died-with-a-noclassdeffounderror/345555/3 "2023-10-25T11:36:28Z")

</div>

Hi Carly,

thanks for pointing me to the place where (hopefully) a developer can fix my issue.

Best regards  
Frank

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [October 27, 2023, 1:40pm UTC](https://discuss.elastic.co/t/elasticsearch-v8-10-4-died-with-a-noclassdeffounderror/345555/4 "2023-10-27T13:40:10Z")

</div>

Discussion has moved to [Elasticsearch V8.10.4 dies with a “noClassDefFoundError” · Issue #101307 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/101307). It looks like this was caused by the intentional removal of bouncycastle at [https://github.com/elastic/elasticsearch/pull/88031](https://github.com/elastic/elasticsearch/pull/88031).

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [October 31, 2023, 11:07am UTC](https://discuss.elastic.co/t/elasticsearch-v8-10-4-died-with-a-noclassdeffounderror/345555/5 "2023-10-31T11:07:46Z")

</div>

Thanks for the update @Keith_Massey!

---

<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:** [November 16, 2023, 7:23am UTC](https://discuss.elastic.co/t/elasticsearch-v8-10-4-died-with-a-noclassdeffounderror/345555/6 "2023-11-16T07:23:56Z")

</div>

Good news!

This morning I got new Version 8.11 from your RPM repo and installed it on a test node.  
Throwing one of the evil encrypted PDFs into it, doesn't seem to bring to death - as previous ES 7.17 did.

Tnx a lot.

Best regards  
Franco

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [November 16, 2023, 2:15pm UTC](https://discuss.elastic.co/t/elasticsearch-v8-10-4-died-with-a-noclassdeffounderror/345555/7 "2023-11-16T14:15:10Z")

</div>

Glad to hear it worked for you!

---

<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:** [December 14, 2023, 2:15pm UTC](https://discuss.elastic.co/t/elasticsearch-v8-10-4-died-with-a-noclassdeffounderror/345555/8 "2023-12-14T14:15:26Z")

</div>

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