Error occurred when updating OpenOffice document for Zotero 2.0
I have just upgraded Zotero from version 1.0 to version 2.0.2, and opened an OpenOffice document that I had previously made with Zotero 1.0. The first time I attempted to edit a citation, Zotero said: "Your document must be permanently upgraded in order to work with Zotero 2.0b7 or later. It is recommended that you make a backup before proceeding. Are you sure you want to continue?"
I clicked OK, and the following error message appeared in a dialog box:
An error occurred communicating with Zotero:
java.jang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1937)
at org.zotero.integration.ooo.ReferenceMark.getCode(ReferenceMark.java:243)
I clicked OK, and another dialog box appeared, saying: "Zotero experienced an error updating your document. fieldCode is null".
Creating a new document and adding a citation seems to work fine. Is there a way to work around this bug in order to update my documents to work with Zotero 2.0, or should I go back to Zotero 1.0?
I clicked OK, and the following error message appeared in a dialog box:
An error occurred communicating with Zotero:
java.jang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1937)
at org.zotero.integration.ooo.ReferenceMark.getCode(ReferenceMark.java:243)
I clicked OK, and another dialog box appeared, saying: "Zotero experienced an error updating your document. fieldCode is null".
Creating a new document and adding a citation seems to work fine. Is there a way to work around this bug in order to update my documents to work with Zotero 2.0, or should I go back to Zotero 1.0?
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
(Other suggestions in "Debugging Broken Documents", which I tried first, didn't work. I tried copying and pasting the document content into a new document. When I then tried to edit a citation in the new document, Zotero said: "You must insert a citation before performing this operation." I tried switching to a different bibliography style, but got the same "StringIndexOutOfBoundsException" error message as in my comment above.)