Cannot create a bibliography

I am writing a document. a month ago I had a full biblio at the end. Today I notice that it is gone and I cannot create a new. I clicked Add/Edit Bibliography I got this message:

Zotero experienced an error updating your document.

An error occurred communicating with Zotero:
java.lang.ClassCastException: class com.sun.star.uno.Any cannot be cast to class java.lang.String (com.sun.star.uno.Any is in unnamed module of loader com.sun.star.lib.unoloader.UnoClassLoader @4517d9a3; java.lang.String is in module java.base of loader 'bootstrap')
at org.zotero.integration.ooo.comp.ReferenceMark.setText(ReferenceMark.java:230)
at org.zotero.integration.ooo.comp.CommMessage.execute(CommMessage.java:147)
at org.zotero.integration.ooo.comp.CommMessage.getBytes(CommMessage.java:61)
at org.zotero.integration.ooo.comp.CommServer.run(CommServer.java:84)
at java.base/java.lang.Thread.run(Thread.java:829)

Please anyone give a suggestion. I am using ver 5.0.54.
  • dstillman Zotero Team
    If you really mean Zotero 5.0.54, you'll need to upgrade to a current version before we can help you, as well as a current version of LibreOffice. 5.0.54 is from 2018.
  • adomasven Zotero Team
    @skaeoman You should certainly update both Zotero and LibreOffice, but this is a bug in LibreOffice that we have known of for a while and LibreOffice has not fixed https://github.com/zotero/zotero-libreoffice-integration/issues/50

    Using "Next style" property for LibreOffice styles will cause issues with Zotero.
  • I tried updating Zotero, what I got is:
    sudo apt-get install zotero-standalone
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    zotero-standalone is already the newest version (5.0.54-ubuntu1).

    I have updated LibreOffice.

    I am using Ubuntu 20.04, is this the limitation?
  • dstillman Zotero Team
    That's some unofficial, unmaintained package.

    https://www.zotero.org/support/installation#linux
  • Thank you I am trying to update Zotero.
    For now, I start a new document and the bibliography works well. So something is wrong with the setting of that particular file of mine.
    Where could the setting be?
  • dstillman Zotero Team
    You can see Troubleshooting Errors in Word Processor Documents, but you really need to update Zotero. We can't help you further here while you're on an outdated version.
  • adomasven Zotero Team
    @skaeoman I have already told you what the issue is. One of your styles, most likely a Footnote or Bibliography style has a custom "Next style" property set in LibreOffice. You need to remove that.
  • Thanks for your suggestions. Let me try that and will inform you soon.

  • I successfully got zotero 5.0.96.2.
  • I have got Libre 7.1 writer.
    Will try what you suggested.
  • Now I have 2 LibreWriter (1) Ver 6.4.7.2 (2) 7.1.3.2. and Zotero 5.0.96.2
    Both writers cannot create my bibliography in the mentioned document.

    As by 'Troubleshooting Errors in Word Processor Documents,I have tried deleting a part and tried creating the biblio, undoed and deleted the others but did not succeed.
    I might re-cite every citations in hope to undo the broken one(s).

    I checked the page style and it was the same with other sections. Usually I start a new section with "Right page' style, the next is 'Left page'. Same with paragraph styles, nothing unusual.

    A new problem, in Writer ver 7.1.3.2, I cannot add the Zotero buttons.
  • Unless I'm misunderstanding what you changed, this still applies:
    Using "Next style" property for LibreOffice styles will cause issues with Zotero.
    I don't know if this is unusual or not, but it's a known issue due to an upstream bug, linked above.
  • I have it back.
    It is the style. But I have to go to menu of 'Insert>Table of Contents and Index>Table of Contents, Index or Bibliography>Bibliography>Style' and edit the style inside this pane, not the paragraph where I want to place the biblio in my document. In the old document I might have changed the setting in the pane unintentionally.
    The 'usual' I mentioned above is about the paragraph styles I use in both of my documents, they are the same as I usually set them.
    Thanks for your suggestions.
Sign In or Register to comment.