Skip to content
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

Change selection strategy to ManualSelectionStrategy #312

Conversation

joecorall
Copy link
Contributor

@ajstanley discovered with the cantaloupe selection strategy set to automatic, the kakadu java library is used to read JPEG2000 files, resulting in errors like

	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.UnsatisfiedLinkError: no kdu_jni in java.library.path: /usr/lib/jvm/java-17-openjdk/lib/server:/usr/lib/jvm/java-17-openjdk/lib:/usr/lib/jvm/java-17-openjdk/../lib:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2434)
	at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
	at java.base/java.lang.System.loadLibrary(System.java:1989)
	at kdu_jni.Kdu_message.<clinit>(Kdu_message.java:5)
	at edu.illinois.library.cantaloupe.processor.codec.jpeg2000.JPEG2000KakaduImageReader.<clinit>(JPEG2000KakaduImageReader.java:197)
	at edu.illinois.library.cantaloupe.processor.KakaduNativeProcessor.<init>(KakaduNativeProcessor.java:77)

We don't ship kakadu with cantaloupe due to its restrictive licensing, and instead use the openjpeg processor. Setting the selection strategy to manual uses the openjpeg processor instead of kakadu.

@joecorall
Copy link
Contributor Author

This can probably also close this old issue Islandora/documentation#922

@ajstanley ajstanley merged commit e55ae27 into Islandora-Devops:main Dec 1, 2023
@joecorall joecorall deleted the cantaloupe-manual-selection-strategy branch December 1, 2023 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants