Backtrace when refreshing the document

While using Firefox (ID "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0") with Zotero 4.0.26.2, current Word Processing plugins, LibreOffice libreoffice-4.3.6.2 and Java 1.7.0_75 on RHEL-7, when refreshing the database inside of the Writer, I get sometimes this backtrace and the document is not updated:

Zotero experienced an error updating your document.

An error occurred communicating with Zotero:
com.sun.star.uno.RuntimeException: SwXReferenceMark::InsertRefMark(): cannot insert attribute
at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:177)
at com.sun.proxy.$Proxy34.attach(Unknown Source)
at org.zotero.integration.ooo.comp.ReferenceMark.reattachMark(ReferenceMark.java:452)
at org.zotero.integration.ooo.comp.ReferenceMark.setCode(ReferenceMark.java:271)
at org.zotero.integration.ooo.comp.CommMessage.execute(CommMessage.java:131)
at org.zotero.integration.ooo.comp.CommMessage.getBytes(CommMessage.java:40)
at org.zotero.integration.ooo.comp.CommServer.run(CommServer.java:60)
at java.lang.Thread.run(Thread.java:745)
'An error occurred communicating with Zotero:
com.sun.star.uno.RuntimeException: SwXReferenceMark::InsertRefMark(): cannot insert attribute
at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:177)
at com.sun.proxy.$Proxy34.attach(Unknown Source)
at org.zotero.integration.ooo.comp.ReferenceMark.reattachMark(ReferenceMark.java:452)
at org.zotero.integration.ooo.comp.ReferenceMark.setCode(ReferenceMark.java:271)
at org.zotero.integration.ooo.comp.CommMessage.execute(CommMessage.java:131)
at org.zotero.integration.ooo.comp.CommMessage.getBytes(CommMessage.java:40)
at org.zotero.integration.ooo.comp.CommServer.run(CommServer.java:60)
at java.lang.Thread.run(Thread.java:745)
' when calling method: [zoteroIntegrationField::setCode]
  • I experienced almost the same error today suddendly without apparent reason (OS X 10.10.4, Zotero Standalone 4.0.28, , LibreOffice 4.4.4.3)

    --------- Error message ---------
    Zotero experienced an error updating your document.

    An error occurred communicating with Zotero:
    com.sun.star.uno.RuntimeException: SwXReferenceMark::InsertRefMark(): cannot insert attribute
    at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
    at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:179)
    at com.sun.proxy.$Proxy26.attach(Unknown Source)
    at org.zotero.integration.ooo.comp.ReferenceMark.reattachMark(ReferenceMark.java:452)
    at org.zotero.integration.ooo.comp.ReferenceMark.setText(ReferenceMark.java:232)
    at org.zotero.integration.ooo.comp.CommMessage.execute(CommMessage.java:127)
    at org.zotero.integration.ooo.comp.CommMessage.getBytes(CommMessage.java:40)
    at org.zotero.integration.ooo.comp.CommServer.run(CommServer.java:60)
    at java.lang.Thread.run(Thread.java:745)
    'An error occurred communicating with Zotero:
    com.sun.star.uno.RuntimeException: SwXReferenceMark::InsertRefMark(): cannot insert attribute
    at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
    at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:179)
    at com.sun.proxy.$Proxy26.attach(Unknown Source)
    at org.zotero.integration.ooo.comp.ReferenceMark.reattachMark(ReferenceMark.java:452)
    at org.zotero.integration.ooo.comp.ReferenceMark.setText(ReferenceMark.java:232)
    at org.zotero.integration.ooo.comp.CommMessage.execute(CommMessage.java:127)
    at org.zotero.integration.ooo.comp.CommMessage.getBytes(CommMessage.java:40)
    at org.zotero.integration.ooo.comp.CommServer.run(CommServer.java:60)
    at java.lang.Thread.run(Thread.java:745)
    ' when calling method: [zoteroIntegrationField::setText]
    --------- End of Error message ---------
  • Fixed by using a previous version of my document.
  • I had the same problem. There are other threads about it:

    https://forums.zotero.org/discussion/41263/update-corrupts-document/
    https://forums.zotero.org/discussion/41847/zotero-crashes-on-citation-insertion/

    In fact I had turned on track changes also, and this error happened afterwards. Turning off track changes did not solve the problem.

    Copying all the text to a new document did.

    Track changes is a useful feature. It would be nice if it can be solved.

    My setup:
    Win 8.1 64bit
    Java build 1.8.0_51-b16
    Firefox 40
    LibreOffice 4.4.5.2
    Zotero extension 4.0.28.1
    Zotero libreoffice extension 3.5.9
Sign In or Register to comment.