You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Nick Burch (JIRA)" <ji...@apache.org> on 2016/02/19 12:14:18 UTC
[jira] [Resolved] (TIKA-1862) Exception in thread "Thread-9"
java.lang.UnsatisfiedLinkError:
/usr/lib/jvm/jre/lib/amd64/headless/libmawt.so: libcups.so.2: cannot open
shared object file: No such file or directory
[ https://issues.apache.org/jira/browse/TIKA-1862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Burch resolved TIKA-1862.
------------------------------
Resolution: Invalid
This isn't a Tika issue. You either need to fix your JVM installation, or talk to the provider of your JVM about why they need cups to do simple headless graphical calculations
> Exception in thread "Thread-9" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/jre/lib/amd64/headless/libmawt.so: libcups.so.2: cannot open shared object file: No such file or directory
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TIKA-1862
> URL: https://issues.apache.org/jira/browse/TIKA-1862
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.11
> Environment: Ubuntu 14.04.03 with openjdk-7-jre, openjdk-7-jre-headless installed
> Reporter: Avinash
> Fix For: 1.13
>
>
> java -jar tika-app-1.11.jar --text testPDF_bookmarks.pdf
> Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/jre/lib/amd64/headless/libmawt.so: libcups.so.2: cannot open shared object file: No such file or directory
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
> at java.lang.Runtime.load0(Runtime.java:795)
> at java.lang.System.load(System.java:1062)
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)
> at java.lang.Runtime.loadLibrary0(Runtime.java:849)
> at java.lang.System.loadLibrary(System.java:1088)
> at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
> at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.awt.Toolkit.loadLibraries(Toolkit.java:1657)
> at java.awt.Toolkit.<clinit>(Toolkit.java:1686)
> at java.awt.Color.<clinit>(Color.java:275)
> at org.apache.pdfbox.pdmodel.PDPage.<clinit>(PDPage.java:79)
> at org.apache.pdfbox.pdmodel.PDPageNode.getAllKids(PDPageNode.java:217)
> at org.apache.pdfbox.pdmodel.PDPageNode.getAllKids(PDPageNode.java:185)
> at org.apache.pdfbox.pdmodel.PDDocumentCatalog.getAllPages(PDDocumentCatalog.java:213)
> at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:342)
> at org.apache.tika.parser.pdf.PDF2XHTML.process(PDF2XHTML.java:148)
> at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:148)
> at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
> at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
> at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
> at org.apache.tika.cli.TikaCLI$OutputType.process(TikaCLI.java:190)
> at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:491)
> at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:144)
> It works if libcups.so is installed, but libcups needs avahi which is not recommended from security standpoint.
> why does PDF extraction needs libmawt.so and/or libcups.so.2 ?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)