[ https://issues.apache.org/jira/browse/PDFBOX-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maruan Sahyoun reassigned PDFBOX-129: ------------------------------------- Assignee: Maruan Sahyoun > Error when setting the value of a combo box to " " > -------------------------------------------------- > > Key: PDFBOX-129 > URL: https://issues.apache.org/jira/browse/PDFBOX-129 > Project: PDFBox > Issue Type: Bug > Components: AcroForm > Affects Versions: 0.7.0, 1.8.7 > Assignee: Maruan Sahyoun > Labels: Appearance > Fix For: 2.0.0 > > Attachments: Doc1.pdf > > > [imported from SourceForge] > http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1422082 > Originally submitted by catalino on 2006-02-01 17:59. > Hi all. > When I try to set the value of a combo box to " ", it > gives the following error: > > Exception in thread "main" > java.lang.ArrayIndexOutOfBoundsException: -2 > at java.util.ArrayList.set(Unknown Source) > at > org.pdfbox.pdmodel.interactive.form.PDAppearance.setAppearanceValue(PDAppearance.java:323) > at > org.pdfbox.pdmodel.interactive.form.PDVariableText.setValue(PDVariableText.java:145) > at > org.pdfbox.pdmodel.interactive.form.PDChoiceField.setValue(PDChoiceField.java:91) > at pdfForms.PDFForms.setvalorCampo(PDFForms.java:235) > at pdfForms.SetValores.main(SetValores.java: > I found out the following. I think it may help you to > understand the problem. > When the default value, set by Acrobat Professional > 7.0, is set to " ", the error occurs; when is set to > another value, lets say "A", the value " " is setted > correctly. If i run the program again, trying to set > the value " ", the error does not ocurr. > > Thanks, > > Luis Catalino > [attachment on SourceForge] > http://sourceforge.net/tracker/download.php?group_id=78314&atid=552832&aid=1422082&file_id=165878 > Doc1.pdf (application/pdf), 198269 bytes > Form with a combo box -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org