IO Problem cloning an object: in BibTeX

Create issue
Issue #2818 resolved
Alberto Gallardo created an issue

This is from our production system using bibsonomy (bibsonomy-model-3.8.6):

9 Apr 2018 09:12:19,261 ERROR [    org.bibsonomy.model.BibTex: 867] IO Problem cloning an object: in BibTeX

The code is unfortunately silencing the cause.

Comments (2)

  1. Alberto Gallardo reporter

    Closing: Redeveloping the library seems to solve the error. I'll open a PR to address the silencing of the exception.

    I could patch the code to find out the cause. Apparently we have a non serializable org.bibsonomy.model.Document.

     19 Apr 2018 16:47:47,490 ERROR [    org.bibsonomy.model.BibTex: 867] IO Problem cloning an object: in BibTeX
    java.io.NotSerializableException: org.bibsonomy.model.Document
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
        at java.util.LinkedList.writeObject(LinkedList.java:1131)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1128)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
        at org.bibsonomy.model.BibTex.clone(BibTex.java:862)
        at org.bibsonomy.model.util.BibTexUtils.toBibtexString(BibTexUtils.java:670)
        at org.bibsonomy.model.util.BibTexUtils.toBibtexString(BibTexUtils.java:651)
        ...
    
  2. Log in to comment