-
Notifications
You must be signed in to change notification settings - Fork 1.6k
java.lang.NoSuchMethodError: 'void org.apache.tika.parser.pdf.PDF2XHTML.setIgnoreContentStreamSpaceGlyphs(boolean)' #3265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I tried to reproduce the issue using version 1.0.0-RC1, following the code and Maven dependencies you provided, but I was unable to replicate the problem. Could you provide a minimal demo project that can reproduce the issue? Additionally, Spring AI 1.0.0 GA has already been released — you could also try that version to see if the issue still persists. |
|
…gs (spring-projects#3271) Fixes: spring-projects#3265 * Bump org.apache.pdfbox to 3.0.4 * Guard against empty unicode strings Auto-cherry-pick to 1.0.x Signed-off-by: David Frizelle <david.frizelle@gmail.com> --------- Signed-off-by: David Frizelle <david.frizelle@gmail.com> Signed-off-by: minsoo.nam <minsoo.nam@linecorp.com>
I'm using Spring AI 1.0.0. Is there a way to work around this problem without moving to snapshot version? |
Yes you can add pdfbox version 3.0.4 as a dependency to your project and exclude the dependency from ai-pdf-document-reader. |
Bug description
An error occurs when processing PDF files using TikaDocumentReader. This issue does not occur in version 1.0.0-M6.
Environment
Spring Boot version: 3.4.5
Spring AI version: 1.0.0-RC1
Java version: 21
The text was updated successfully, but these errors were encountered: