You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Franck Valentin (JIRA)" <ji...@apache.org> on 2011/03/15 17:27:29 UTC

[jira] Created: (PDFBOX-980) Expected an integer type, actual='Active'

Expected an integer type, actual='Active'
-----------------------------------------

                 Key: PDFBOX-980
                 URL: https://issues.apache.org/jira/browse/PDFBOX-980
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 1.5.0
            Reporter: Franck Valentin
         Attachments: prot_dna_long.pdf

Hi,

When parsing the file http://www.ebi.ac.uk/luscombe/docs/prot_dna_long.pdf
I get the following exception:
Caused by: java.io.IOException: Error: Expected an integer type, actual='Active'
        at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1384) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:507) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:862) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:829) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (PDFBOX-980) Expected an integer type, actual='Active'

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-980.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0
         Assignee: Andreas Lehmkühler

The attached pdf works fine with the current trunk version (revision 1339254) without any further "tricks". The excpetion no longer appears.

Set to resolved.
                
> Expected an integer type, actual='Active'
> -----------------------------------------
>
>                 Key: PDFBOX-980
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-980
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Franck Valentin
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.7.0
>
>         Attachments: prot_dna_long.pdf
>
>
> Hi,
> When I try to parse the file I've attached (prot_dna_long.pdf)
> I get the following exception:
> Caused by: java.io.IOException: Error: Expected an integer type, actual='Active'
>         at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1384) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:507) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:862) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:829) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (PDFBOX-980) Expected an integer type, actual='Active'

Posted by "Franck Valentin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008420#comment-13008420 ] 

Franck Valentin commented on PDFBOX-980:
----------------------------------------

Hi Timo,

thanks for the swift reply  and for the hint to force the parsing of corrupted documents.

Regards,
Franck

> Expected an integer type, actual='Active'
> -----------------------------------------
>
>                 Key: PDFBOX-980
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-980
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Franck Valentin
>         Attachments: prot_dna_long.pdf
>
>
> Hi,
> When I try to parse the file I've attached (prot_dna_long.pdf)
> I get the following exception:
> Caused by: java.io.IOException: Error: Expected an integer type, actual='Active'
>         at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1384) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:507) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:862) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:829) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (PDFBOX-980) Expected an integer type, actual='Active'

Posted by "Franck Valentin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Franck Valentin updated PDFBOX-980:
-----------------------------------

    Description: 
Hi,

When I try to parse the file I've attached (prot_dna_long.pdf)
I get the following exception:
Caused by: java.io.IOException: Error: Expected an integer type, actual='Active'
        at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1384) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:507) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:862) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:829) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]


  was:
Hi,

When parsing the file http://www.ebi.ac.uk/luscombe/docs/prot_dna_long.pdf
I get the following exception:
Caused by: java.io.IOException: Error: Expected an integer type, actual='Active'
        at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1384) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:507) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:862) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:829) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]



> Expected an integer type, actual='Active'
> -----------------------------------------
>
>                 Key: PDFBOX-980
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-980
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Franck Valentin
>         Attachments: prot_dna_long.pdf
>
>
> Hi,
> When I try to parse the file I've attached (prot_dna_long.pdf)
> I get the following exception:
> Caused by: java.io.IOException: Error: Expected an integer type, actual='Active'
>         at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1384) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:507) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:862) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:829) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (PDFBOX-980) Expected an integer type, actual='Active'

Posted by "Franck Valentin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Franck Valentin updated PDFBOX-980:
-----------------------------------

    Attachment: prot_dna_long.pdf

> Expected an integer type, actual='Active'
> -----------------------------------------
>
>                 Key: PDFBOX-980
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-980
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Franck Valentin
>         Attachments: prot_dna_long.pdf
>
>
> Hi,
> When parsing the file http://www.ebi.ac.uk/luscombe/docs/prot_dna_long.pdf
> I get the following exception:
> Caused by: java.io.IOException: Error: Expected an integer type, actual='Active'
>         at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1384) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:507) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:862) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:829) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PDFBOX-980) Expected an integer type, actual='Active'

Posted by "carmina (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112465#comment-13112465 ] 

carmina commented on PDFBOX-980:
--------------------------------

Hi Franck,

Good day!

I happened to stumble on this bug and just wanted to ask how you were able
to resolve this?

Thanks for your help.

Best Regards,
Nina

-- 

*It's when things seem worst, you musn't quit! *

---------------------------------------------------------------------


> Expected an integer type, actual='Active'
> -----------------------------------------
>
>                 Key: PDFBOX-980
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-980
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Franck Valentin
>         Attachments: prot_dna_long.pdf
>
>
> Hi,
> When I try to parse the file I've attached (prot_dna_long.pdf)
> I get the following exception:
> Caused by: java.io.IOException: Error: Expected an integer type, actual='Active'
>         at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1384) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:507) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:862) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:829) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (PDFBOX-980) Expected an integer type, actual='Active'

Posted by "Timo Boehme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007389#comment-13007389 ] 

Timo Boehme commented on PDFBOX-980:
------------------------------------

You have a corrupt PDF file. It contains HTML code after the final %%EOF marker. You can parse the file if you specify 'force' parsing (PDDocument.load( InputStream, new RandomAccessBuffer(), true )).


> Expected an integer type, actual='Active'
> -----------------------------------------
>
>                 Key: PDFBOX-980
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-980
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Franck Valentin
>         Attachments: prot_dna_long.pdf
>
>
> Hi,
> When I try to parse the file I've attached (prot_dna_long.pdf)
> I get the following exception:
> Caused by: java.io.IOException: Error: Expected an integer type, actual='Active'
>         at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1384) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:507) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:862) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:829) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PDFBOX-980) Expected an integer type, actual='Active'

Posted by "Franck Valentin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13113940#comment-13113940 ] 

Franck Valentin commented on PDFBOX-980:
----------------------------------------

Hi Nina,

I don't work for the company anymore and so cannot access the code but as far as I remember I followed Timo's advice to force the parsing.

Regards,

Franck

> Expected an integer type, actual='Active'
> -----------------------------------------
>
>                 Key: PDFBOX-980
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-980
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Franck Valentin
>         Attachments: prot_dna_long.pdf
>
>
> Hi,
> When I try to parse the file I've attached (prot_dna_long.pdf)
> I get the following exception:
> Caused by: java.io.IOException: Error: Expected an integer type, actual='Active'
>         at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1384) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:507) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:862) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
>         at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:829) ~[ebinocle-indexer-1.0-SNAPSHOT-jar-with-dependencies.jar:na]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira