[jira] [Commented] (PDFBOX-3942) ClassCastException in getOptionalContentGroups
[ https://issues.apache.org/jira/browse/PDFBOX-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16187087#comment-16187087 ] ASF subversion and git services commented on PDFBOX-3942: - Commit 1810205 from [~tilman] in branch 'pdfbox/branches/1.8' [ https://svn.apache.org/r1810205 ] PDFBOX-3942: avoid ClassCastException, as suggested by Vlad-Tudor Marchis; add test > ClassCastException in getOptionalContentGroups > -- > > Key: PDFBOX-3942 > URL: https://issues.apache.org/jira/browse/PDFBOX-3942 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 1.8.13, 2.0.6, 2.0.7 >Reporter: Vlad-Tudor Marchis >Assignee: Tilman Hausherr >Priority: Minor > Labels: support > Fix For: 1.8.14, 2.0.8, 3.0.0 > > Attachments: PDOptionalContentProperties.java > > > I noticed this issue when trying to remove a set of layers I previously added > on a multi-page PDF. I noticed it in version 2.0.6, but might be present in > others. > Here is a stacktrace snippet: > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary > cannot be cast to org.apache.pdfbox.cos.COSObject > at > org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties.getOptionalContentGroups(PDOptionalContentProperties.java:180). > I looked at the source and saw the toDictionary method that seemed to be used > in every other place so I just put in in place and it seems to have solved > the issue. > I've uploaded the updated file, the one that I'm using, which you can review > and include in your project if it's a valid fix. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-3942) ClassCastException in getOptionalContentGroups
[ https://issues.apache.org/jira/browse/PDFBOX-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16185898#comment-16185898 ] ASF subversion and git services commented on PDFBOX-3942: - Commit 1810105 from [~tilman] in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1810105 ] PDFBOX-3942: correct test for getOptionalContentGroups() > ClassCastException in getOptionalContentGroups > -- > > Key: PDFBOX-3942 > URL: https://issues.apache.org/jira/browse/PDFBOX-3942 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.6 >Reporter: Vlad-Tudor Marchis >Assignee: Tilman Hausherr >Priority: Minor > Labels: support > Fix For: 2.0.8, 3.0.0 > > Attachments: PDOptionalContentProperties.java > > > I noticed this issue when trying to remove a set of layers I previously added > on a multi-page PDF. I noticed it in version 2.0.6, but might be present in > others. > Here is a stacktrace snippet: > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary > cannot be cast to org.apache.pdfbox.cos.COSObject > at > org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties.getOptionalContentGroups(PDOptionalContentProperties.java:180). > I looked at the source and saw the toDictionary method that seemed to be used > in every other place so I just put in in place and it seems to have solved > the issue. > I've uploaded the updated file, the one that I'm using, which you can review > and include in your project if it's a valid fix. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-3942) ClassCastException in getOptionalContentGroups
[ https://issues.apache.org/jira/browse/PDFBOX-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16185897#comment-16185897 ] ASF subversion and git services commented on PDFBOX-3942: - Commit 1810104 from [~tilman] in branch 'pdfbox/trunk' [ https://svn.apache.org/r1810104 ] PDFBOX-3942: correct test for getOptionalContentGroups() > ClassCastException in getOptionalContentGroups > -- > > Key: PDFBOX-3942 > URL: https://issues.apache.org/jira/browse/PDFBOX-3942 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.6 >Reporter: Vlad-Tudor Marchis >Assignee: Tilman Hausherr >Priority: Minor > Labels: support > Fix For: 2.0.8, 3.0.0 > > Attachments: PDOptionalContentProperties.java > > > I noticed this issue when trying to remove a set of layers I previously added > on a multi-page PDF. I noticed it in version 2.0.6, but might be present in > others. > Here is a stacktrace snippet: > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary > cannot be cast to org.apache.pdfbox.cos.COSObject > at > org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties.getOptionalContentGroups(PDOptionalContentProperties.java:180). > I looked at the source and saw the toDictionary method that seemed to be used > in every other place so I just put in in place and it seems to have solved > the issue. > I've uploaded the updated file, the one that I'm using, which you can review > and include in your project if it's a valid fix. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-3942) ClassCastException in getOptionalContentGroups
[ https://issues.apache.org/jira/browse/PDFBOX-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16182738#comment-16182738 ] Tilman Hausherr commented on PDFBOX-3942: - To test your application, you can get a snapshot here: https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.8-SNAPSHOT/ To see the current source, use svn or see here: https://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/optionalcontent/PDOptionalContentProperties.java?view=markup > ClassCastException in getOptionalContentGroups > -- > > Key: PDFBOX-3942 > URL: https://issues.apache.org/jira/browse/PDFBOX-3942 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.6 >Reporter: Vlad-Tudor Marchis >Assignee: Tilman Hausherr >Priority: Minor > Labels: support > Fix For: 2.0.8, 3.0.0 > > Attachments: PDOptionalContentProperties.java > > > I noticed this issue when trying to remove a set of layers I previously added > on a multi-page PDF. I noticed it in version 2.0.6, but might be present in > others. > Here is a stacktrace snippet: > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary > cannot be cast to org.apache.pdfbox.cos.COSObject > at > org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties.getOptionalContentGroups(PDOptionalContentProperties.java:180). > I looked at the source and saw the toDictionary method that seemed to be used > in every other place so I just put in in place and it seems to have solved > the issue. > I've uploaded the updated file, the one that I'm using, which you can review > and include in your project if it's a valid fix. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-3942) ClassCastException in getOptionalContentGroups
[ https://issues.apache.org/jira/browse/PDFBOX-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16182185#comment-16182185 ] Vlad-Tudor Marchis commented on PDFBOX-3942: I think I grabbed the source from an older version by accident. I will try the new versions, thank you! > ClassCastException in getOptionalContentGroups > -- > > Key: PDFBOX-3942 > URL: https://issues.apache.org/jira/browse/PDFBOX-3942 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.6 >Reporter: Vlad-Tudor Marchis >Assignee: Tilman Hausherr >Priority: Minor > Labels: support > Fix For: 2.0.8, 3.0.0 > > Attachments: PDOptionalContentProperties.java > > > I noticed this issue when trying to remove a set of layers I previously added > on a multi-page PDF. I noticed it in version 2.0.6, but might be present in > others. > Here is a stacktrace snippet: > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary > cannot be cast to org.apache.pdfbox.cos.COSObject > at > org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties.getOptionalContentGroups(PDOptionalContentProperties.java:180). > I looked at the source and saw the toDictionary method that seemed to be used > in every other place so I just put in in place and it seems to have solved > the issue. > I've uploaded the updated file, the one that I'm using, which you can review > and include in your project if it's a valid fix. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-3942) ClassCastException in getOptionalContentGroups
[ https://issues.apache.org/jira/browse/PDFBOX-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16181036#comment-16181036 ] Tilman Hausherr commented on PDFBOX-3942: - [~vmarchis] please check that this was all you had in mind; I saw more differences when doing a diff to your code, I suspect you were using a version even older. > ClassCastException in getOptionalContentGroups > -- > > Key: PDFBOX-3942 > URL: https://issues.apache.org/jira/browse/PDFBOX-3942 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.6 >Reporter: Vlad-Tudor Marchis >Priority: Minor > Labels: support > Fix For: 2.0.8, 3.0.0 > > Attachments: PDOptionalContentProperties.java > > > I noticed this issue when trying to remove a set of layers I previously added > on a multi-page PDF. I noticed it in version 2.0.6, but might be present in > others. > Here is a stacktrace snippet: > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary > cannot be cast to org.apache.pdfbox.cos.COSObject > at > org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties.getOptionalContentGroups(PDOptionalContentProperties.java:180). > I looked at the source and saw the toDictionary method that seemed to be used > in every other place so I just put in in place and it seems to have solved > the issue. > I've uploaded the updated file, the one that I'm using, which you can review > and include in your project if it's a valid fix. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-3942) ClassCastException in getOptionalContentGroups
[ https://issues.apache.org/jira/browse/PDFBOX-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16181033#comment-16181033 ] ASF subversion and git services commented on PDFBOX-3942: - Commit 1809760 from [~tilman] in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1809760 ] PDFBOX-3942: avoid ClassCastException, as suggested by Vlad-Tudor Marchis > ClassCastException in getOptionalContentGroups > -- > > Key: PDFBOX-3942 > URL: https://issues.apache.org/jira/browse/PDFBOX-3942 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.6 >Reporter: Vlad-Tudor Marchis >Priority: Minor > Labels: support > Attachments: PDOptionalContentProperties.java > > > I noticed this issue when trying to remove a set of layers I previously added > on a multi-page PDF. I noticed it in version 2.0.6, but might be present in > others. > Here is a stacktrace snippet: > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary > cannot be cast to org.apache.pdfbox.cos.COSObject > at > org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties.getOptionalContentGroups(PDOptionalContentProperties.java:180). > I looked at the source and saw the toDictionary method that seemed to be used > in every other place so I just put in in place and it seems to have solved > the issue. > I've uploaded the updated file, the one that I'm using, which you can review > and include in your project if it's a valid fix. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-3942) ClassCastException in getOptionalContentGroups
[ https://issues.apache.org/jira/browse/PDFBOX-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16181032#comment-16181032 ] ASF subversion and git services commented on PDFBOX-3942: - Commit 1809759 from [~tilman] in branch 'pdfbox/trunk' [ https://svn.apache.org/r1809759 ] PDFBOX-3942: avoid ClassCastException, as suggested by Vlad-Tudor Marchis > ClassCastException in getOptionalContentGroups > -- > > Key: PDFBOX-3942 > URL: https://issues.apache.org/jira/browse/PDFBOX-3942 > Project: PDFBox > Issue Type: Bug > Components: PDModel >Affects Versions: 2.0.6 >Reporter: Vlad-Tudor Marchis >Priority: Minor > Labels: support > Attachments: PDOptionalContentProperties.java > > > I noticed this issue when trying to remove a set of layers I previously added > on a multi-page PDF. I noticed it in version 2.0.6, but might be present in > others. > Here is a stacktrace snippet: > Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary > cannot be cast to org.apache.pdfbox.cos.COSObject > at > org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties.getOptionalContentGroups(PDOptionalContentProperties.java:180). > I looked at the source and saw the toDictionary method that seemed to be used > in every other place so I just put in in place and it seems to have solved > the issue. > I've uploaded the updated file, the one that I'm using, which you can review > and include in your project if it's a valid fix. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org