You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/12/09 08:46:12 UTC

[jira] [Updated] (PDFBOX-2550) ClassCastException in PDAnnotation.getColour

     [ https://issues.apache.org/jira/browse/PDFBOX-2550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-2550:
------------------------------------
    Description: 
{code}
java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast to org.apache.pdfbox.cos.COSArray
	at org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation.getColour(PDAnnotation.java:644)
	at org.apache.pdfbox.preflight.annotation.AnnotationValidator.checkColors(AnnotationValidator.java:134)
{code}
The cause is this:
{code}
/C 19 0 R
{code}
The current code doesn't expect it to be an indirect object.

  was:
{code}
java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast to org.apache.pdfbox.cos.COSArray
	at org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation.getColour(PDAnnotation.java:644)
	at org.apache.pdfbox.preflight.annotation.AnnotationValidator.checkColors(AnnotationValidator.java:134)
{code}



> ClassCastException in PDAnnotation.getColour
> --------------------------------------------
>
>                 Key: PDFBOX-2550
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2550
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 1.8.8, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>              Labels: Annotations
>
> {code}
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast to org.apache.pdfbox.cos.COSArray
> 	at org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation.getColour(PDAnnotation.java:644)
> 	at org.apache.pdfbox.preflight.annotation.AnnotationValidator.checkColors(AnnotationValidator.java:134)
> {code}
> The cause is this:
> {code}
> /C 19 0 R
> {code}
> The current code doesn't expect it to be an indirect object.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)