Speichern der XML-Datei funktioniert nicht mehr

Bisher gab es aber beim Öffnen keine Probleme

Wed Dec 07 21:39:07 GMT 2022
XML kann nicht geparst werden: 
---- Debugging information ----
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       : 
class               : java.util.ArrayList
required-type       : java.util.ArrayList
converter-type      : com.thoughtworks.xstream.converters.collections.CollectionConverter
path                : /client/securities/security[42]/prices
line number         : 104192
class[1]            : name.abuchen.portfolio.model.Security
required-type[1]    : name.abuchen.portfolio.model.Security
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : name.abuchen.portfolio.model.Client
required-type[2]    : name.abuchen.portfolio.model.Client
version             : not available
-------------------------------

java.io.IOException: XML kann nicht geparst werden: 
---- Debugging information ----
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       : 
class               : java.util.ArrayList
required-type       : java.util.ArrayList
converter-type      : com.thoughtworks.xstream.converters.collections.CollectionConverter
path                : /client/securities/security[42]/prices
line number         : 104192
class[1]            : name.abuchen.portfolio.model.Security
required-type[1]    : name.abuchen.portfolio.model.Security
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : name.abuchen.portfolio.model.Client
required-type[2]    : name.abuchen.portfolio.model.Client
version             : not available
-------------------------------

	at name.abuchen.portfolio.model.ClientFactory$XmlSerialization.load(ClientFactory.java:130)

	at name.abuchen.portfolio.model.ClientFactory$PlainWriter.load(ClientFactory.java:156)

	at name.abuchen.portfolio.model.ClientFactory.load(ClientFactory.java:533)

	at name.abuchen.portfolio.ui.editor.LoadClientThread.run(LoadClientThread.java:34)

Caused by: com.thoughtworks.xstream.converters.ConversionException: 
---- Debugging information ----
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       : 
class               : java.util.ArrayList
required-type       : java.util.ArrayList
converter-type      : com.thoughtworks.xstream.converters.collections.CollectionConverter
path                : /client/securities/security[42]/prices
line number         : 104192
class[1]            : name.abuchen.portfolio.model.Security
required-type[1]    : name.abuchen.portfolio.model.Security
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : name.abuchen.portfolio.model.Client
required-type[2]    : name.abuchen.portfolio.model.Client
version             : not available
-------------------------------

	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81)

	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)

	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68)

	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:499)

	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:425)

	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:277)

	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74)

	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)

	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68)

	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:52)

	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readBareItem(AbstractCollectionConverter.java:132)

	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:117)

	at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentElementToCollection(CollectionConverter.java:99)

	at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:92)

	at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:86)

	at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:81)

	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74)

	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)

	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68)

	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:499)

	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:425)

	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:277)

	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74)

	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)

	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68)

	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:52)

	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:136)

	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)

	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1421)

	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1399)

	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1284)

	at name.abuchen.portfolio.model.ClientFactory$XmlSerialization.load(ClientFactory.java:118)

	... 3 more

Caused by: com.thoughtworks.xstream.io.StreamException: 

	at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:126)

	at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)

	at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:135)

	at com.thoughtworks.xstream.io.xml.AbstractPullReader.hasMoreChildren(AbstractPullReader.java:87)

	at com.thoughtworks.xstream.io.ReaderWrapper.hasMoreChildren(ReaderWrapper.java:32)

	at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:90)

	at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:86)

	at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:81)

	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74)

	... 34 more

Caused by: java.io.EOFException: no more data available - expected end tags </price></prices></security></securities></client> to close start tag <price> from line 104192 and start tag <prices> from line 102057 and start tag <security> from line 102049 and start tag <securities> from line 4 and start tag <client> from line 1, parser stopped on TEXT seen ...price t="2017-02-20" v="10180000000"/>\n        <price t="2017-02-2... @104192:28

	at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035)

	at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)

	at org.xmlpull.mxp1.MXParser.parseAttribute(MXParser.java:2026)

	at org.xmlpull.mxp1.MXParser.parseStartTag(MXParser.java:1799)

	at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1127)

	at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

	at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)

	... 42 more

OK, die Datei ist beschädigt und endet mitten im Wort (sozusagen).

Die Java-Version steht unter „Über Portfolio Performance“ im Hilfe-Menü. Richtig wäre Version 11. Falsch wäre alles unter 11 oder über 16.

1 Like

Java: 11.0.15+10-LTS

Die backup datei lässt sich öffnen. Beim Abspeichern stürzt PP immer ab. Dadurch kann dann wohl die Datei nicht unbeschädigt abgespeichert werden.

Kannst du mir mal das komplette Log an portfolio dot performance dot help at gmail dot com schicken? Hilfe → Fehlerprotokoll speichern… Das enthält auch die Logs von dem vorherigen Starts

1 Like

Hi Andreas, ist unterwegs

2 Likes

auch bei mir ist PP in letzter Zeit merklich langsamer geworden. Speichern und Ansichtwechsel im Programm.
MacBook Pro (Intel) und Monterey 12.6

Ich konnte jetzt die XML in einem anderen Verzeichnis speichern. Danke für Eure Hilfe!

Hatte ich natürlich gelesen und versucht

Nach ziemlich genau einem Jahr habe ich wieder das Problem mit dem Speichern der XML-Datei. Beim Speichern stürzt PP ab und beim öffnen der aktuellsten Back ups lässt sich das XML nicht mehr parsen. Ältere Backups lassen sich öffnen. Beim ersten Mal konnte ich das Problem mit dem Verschieben den Back Up Ordners in ein anderes Verzeichnis beheben. Das hilft nun auch nicht mehr. hat wer eine Idee.

Also erstmal eine funktionierende Datei irgendwo gut backupen, damit nicht alles verloren ist.

Als nächstes, wo ist der alte Threads? Warum nutzt du nicht den, dann fangen wir nicht bei 0 an? Z.B. bei welches Betriebssystem, Fehlermeldung im Errorlog, etc.?

Die alten backups sind ja da und funktionieren. Hier der Thread vom letzten Jahr Speichern der XML-Datei funktioniert nicht mehr
Screenshot 2023-12-27 162623

Windows 11 pro

Bis sie plötzlich nicht mehr funktionieren. Aber egal, ich habe es erwähnt.

Der Screenshot ist aber doch vom öffnen oder? Wir brauchen einen Log nach dem Speichern, denn scheinbar kann PP beim Speichern die Datei nicht richtig schreiben.

Also bitte:

  • Log liefern
  • Welche Java Version (hast du die im Laufe des Jahres angehoben bzw. die Version mit integriertem Java?)
  • Irgendwelche Virenprogramme, die Verzeichnisse überwachen und ggf. das Speichern verhindern?
  • Was passiert, wenn du es einfach Mal auf dem Desktop speicherst? Was passiert, wenn du PP vorher als Administrator startest?
1 Like

Beim Speichern stürzt PP immer ab bzw. rödelt sich tot und ich muss den Vorgang irgendwann abbrechen. Java habe ich die neueste Version installiert. Virenschutz ist Watchguard. Der Backupordner liegt auf auf dem Desktop. Beim Neustart ist das Fehlerprotokoll leer oder meinst du mit den Logs was anderes?

Java Version ist 8 Update 391

Java 8 ist von 2014 oder so. Würde mich wundern, wenn PP damit noch läuft. Aber ich denke eher, du nutzt die enthaltene Version. Mach bitte einmal von dem Menüpunkt Über (Hilfe → Über PP) einen Screenshot und lade diesen hier hoch:

Dann sehen wir auch direkt einmal die genutzte Version.

Deaktiviere Mal Watchguard temporär und gucke was dann passiert. Was passiert, wenn du PP als Administrator startest und speicherst (Rechtsklick auf PP (Mehr) → Als Administrator starten)?

Ich habe nach der Java Neuinstallation den Rechner neu gestartet. Jetzt scheint es wieder zu funktionieren.

Das freut mich. Wundert mich nur etwas, dass es mit einer so extrem alten Version überhaupt noch lief. Aber wenn es nun nicht mehr nachstellbar ist, dann ist es ja erstmal gut.