[Dspace-tech] FW: XPDF: filter-media error "cannot find the file"

3 views
Skip to first unread message

Álvaro Vargas Quezada

unread,
Aug 26, 2015, 11:39:50 AM8/26/15
to dspace-...@lists.sourceforge.net, dspac...@lists.sourceforge.net
Hi everyone!

I'm trying to use XPDF in my DSpace site, but when I execute the filter-media command it throws me a lot of errors. The jpg files are ok, it shows the thumbnail, that means xpdf works, but it says "cannot find the file specified", if it is about the xpdf that's wrong because the xpdf files are there, and if it is because of the pdf, it is also wrong because when I go to the specified item, I can open the documento without problems. 

Below I let you the error, I hope you can help me :) I'm using DSpace 1.8.2, Apache Tomcat 6.0, XPDF 3.01

Muchas gracias desde Chile!
:D

ERROR filtering, skipping bitstream:
        Item Handle: 123456789/1359
        Bundle Name: ORIGINAL
        File Size: 32379168
        Checksum: 5ee6a48c6d7cc9c7d4fc1bf0b4fbc426 (MD5)
        Asset Store: 0
java.io.IOException: Cannot run program "http://localhost:80/xpdf/pdftotext": CreateProcess error=2, The system cannot find the file specified
java.io.IOException: Cannot run program "http://localhost:80/xpdf/pdftotext": CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at org.dspace.app.mediafilter.XPDF2Text.getDestinationStream(XPDF2Text.java:111)
        at org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:737)
        at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:561)
        at org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:511)
        at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:479)
        at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:414)
        at org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:333)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 15 more
ERROR filtering, skipping bitstream:

SUZUKI Keiji

unread,
Aug 26, 2015, 11:39:58 AM8/26/15
to Álvaro Vargas Quezada, dspac...@lists.sourceforge.net, dspace-...@lists.sourceforge.net
Hi Álvaro,


> java.io.IOException: Cannot run program "http://localhost:80/xpdf/pdftotext": CreateProcess error=2, The system cannot find the file specified

This error means that the value of the property "xpdf.path.pdftotext" in [dspace]/config/dspace.cfg is "http://localhost:80/xpdf/pdftotext". 
Double-check if this property is set to the valid path.

Keiji Suzuki
Ebetsu, Japan

2013/8/1 Álvaro Vargas Quezada <al...@outlook.com>
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Álvaro Vargas Quezada

unread,
Aug 26, 2015, 11:40:10 AM8/26/15
to SUZUKI Keiji, dspac...@lists.sourceforge.net, dspace-...@lists.sourceforge.net
Thanks for your answer Keiji!

I changed the url to "http://localhost/xpdf/pdftotext" and the error stills, I have configure that url in Tomcat, but nothing :/

Could it be the xpdf version? Or sth like that?

Thanks again :)


Date: Thu, 1 Aug 2013 10:21:02 +0900
Subject: Re: [Dspace-tech] FW: XPDF: filter-media error "cannot find the file"
From: zu...@mbc.ocn.ne.jp
To: al...@outlook.com
CC: dspace-...@lists.sourceforge.net; dspac...@lists.sourceforge.net

Mark H. Wood

unread,
Aug 26, 2015, 11:40:12 AM8/26/15
to dspac...@lists.sourceforge.net, dspace-...@lists.sourceforge.net
On Thu, Aug 01, 2013 at 11:49:39AM -0400, Álvaro Vargas Quezada wrote:
> Thanks for your answer Keiji!
> I changed the url to "http://localhost/xpdf/pdftotext" and the error stills, I have configure that url in Tomcat, but nothing :/

The value of xpdf.path.pdftotext is not a URL; it is a local
filesystem path. On a working system here we have:

xpdf.path.pdftotext = /usr/bin/pdftotext

Try 'which pdftotext' to see where yours is.

--
Mark H. Wood, Lead System Programmer mw...@IUPUI.Edu
Machines should not be friendly. Machines should be obedient.
signature.asc

Álvaro Vargas Quezada

unread,
Aug 26, 2015, 11:40:13 AM8/26/15
to Mark H. Wood, dspac...@lists.sourceforge.net, dspace-...@lists.sourceforge.net
Wow!!! 

Thanks Mark!! That was! I changed the path to /usr/bin/pdftotext and it works! Wow I have been weeks trying to fix this. Thanks a lot!!! 

:D

Date: Thu, 1 Aug 2013 15:31:19 -0400
From: mw...@IUPUI.Edu
To: dspac...@lists.sourceforge.net; dspace-...@lists.sourceforge.net
Subject: Re: [Dspace-general] [Dspace-tech] FW: XPDF: filter-media error "cannot find the file"
------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________ Dspace-general mailing list Dspace-...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-general
Reply all
Reply to author
Forward
0 new messages