Problem beim Starten: „XML kann nicht geparst werden“

Hallo zusammen,

seit ein paar Tagen habe ich das Porblem, dass ich beim öffnen meines Depot folgende Fehlermeldung bekomme.
Kann mir bitte jemand bei dem Problem helfen.
Danke!

Gruß
Chris

_Sat Oct 13 08:29:57 CEST 2018_
_XML kann nicht geparst werden:  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption. :  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._
_---- Debugging information ----_
_message             :  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._
_cause-exception     : com.thoughtworks.xstream.io.StreamException_
_cause-message       :  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._
_class               : java.util.ArrayList_
_required-type       : java.util.ArrayList_
_converter-type      : com.thoughtworks.xstream.converters.collections.CollectionConverter_
_path                : /client/securities/security[14]/prices_
_line number         : 19147_
_class[1]            : name.abuchen.portfolio.model.Security_
_converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter_
_class[2]            : name.abuchen.portfolio.model.Client_
_version             : not available_
_-------------------------------_

_java.io.IOException: XML kann nicht geparst werden:  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption. :  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._
_---- Debugging information ----_
_message             :  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._
_cause-exception     : com.thoughtworks.xstream.io.StreamException_
_cause-message       :  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._
_class               : java.util.ArrayList_
_required-type       : java.util.ArrayList_
_converter-type      : com.thoughtworks.xstream.converters.collections.CollectionConverter_
_path                : /client/securities/security[14]/prices_
_line number         : 19147_
_class[1]            : name.abuchen.portfolio.model.Security_
_converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter_
_class[2]            : name.abuchen.portfolio.model.Client_
_version             : not available_
_-------------------------------_

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

_	at name.abuchen.portfolio.model.ClientFactory$Decryptor.load(ClientFactory.java:268)_

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

_	at name.abuchen.portfolio.ui.LoadClientThread.run(LoadClientThread.java:42)_

_Caused by: com.thoughtworks.xstream.converters.ConversionException:  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption. :  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._
_---- Debugging information ----_
_message             :  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._
_cause-exception     : com.thoughtworks.xstream.io.StreamException_
_cause-message       :  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._
_class               : java.util.ArrayList_
_required-type       : java.util.ArrayList_
_converter-type      : com.thoughtworks.xstream.converters.collections.CollectionConverter_
_path                : /client/securities/security[14]/prices_
_line number         : 19147_
_class[1]            : name.abuchen.portfolio.model.Security_
_converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter_
_class[2]            : name.abuchen.portfolio.model.Client_
_version             : not available_
_-------------------------------_

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

_	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1206)_

_	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1190)_

_	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1061)_

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

_	... 3 more_

_Caused by: com.thoughtworks.xstream.io.StreamException:  : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._

_	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:89)_

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

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

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

_	... 33 more_

_Caused by: java.io.IOException: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._

_	at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:121)_

_	at javax.crypto.CipherInputStream.read(CipherInputStream.java:239)_

_	at java.io.FilterInputStream.read(Unknown Source)_

_	at java.io.PushbackInputStream.read(Unknown Source)_

_	at java.util.zip.InflaterInputStream.fill(Unknown Source)_

_	at java.util.zip.InflaterInputStream.read(Unknown Source)_

_	at java.util.zip.ZipInputStream.read(Unknown Source)_

_	at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)_

_	at sun.nio.cs.StreamDecoder.implRead(Unknown Source)_

_	at sun.nio.cs.StreamDecoder.read(Unknown Source)_

_	at java.io.InputStreamReader.read(Unknown Source)_

_	at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992)_

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

_	at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1384)_

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

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

_	... 41 more_

_Caused by: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption._

_	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:991)_

_	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:847)_

_	at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446)_

_	at javax.crypto.Cipher.doFinal(Cipher.java:2047)_

_	at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:118)_

_	... 56 more_

Bist Du Dir sicher, dass Du das Passwort für die Ver- bzw. Entschlüsselung korrekt eingegeben hast?
Kannst Du eine der Backup-Dateien öffnen?

ja habe das richtige Passwort eingegeben. Wenn ich ein falsches Passwort eingebe kommt nur die Fehlermeldung “Falsches Passwort” Die Backup-Datei konnte ich auch nicht öffnen. Es kommt die gleiche Fehlermeldung

Mit Version 0.50.0 bekomme ich folgende Fehlermeldung:

Tue Jan 19 10:21:08 CET 2021
XML kann nicht geparst werden: : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption. : : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
---- Debugging information ----
message : : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
cause-exception : com.thoughtworks.xstream.io.StreamException
cause-message : : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
class : java.util.ArrayList
required-type : java.util.ArrayList
converter-type : com.thoughtworks.xstream.converters.collections.CollectionConverter
path : /client/securities/security[27]/prices
line number : 61980
class[1] : name.abuchen.portfolio.model.Security
converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2] : name.abuchen.portfolio.model.Client
version : not available

java.io.IOException: XML kann nicht geparst werden: : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption. : : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
---- Debugging information ----
message : : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
cause-exception : com.thoughtworks.xstream.io.StreamException
cause-message : : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
class : java.util.ArrayList
required-type : java.util.ArrayList
converter-type : com.thoughtworks.xstream.converters.collections.CollectionConverter
path : /client/securities/security[27]/prices
line number : 61980
class[1] : name.abuchen.portfolio.model.Security
converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2] : name.abuchen.portfolio.model.Client
version : not available

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

at name.abuchen.portfolio.model.ClientFactory$Decryptor.load(ClientFactory.java:271)

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

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

Caused by: com.thoughtworks.xstream.converters.ConversionException: : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption. : : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
---- Debugging information ----
message : : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
cause-exception : com.thoughtworks.xstream.io.StreamException
cause-message : : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
class : java.util.ArrayList
required-type : java.util.ArrayList
converter-type : com.thoughtworks.xstream.converters.collections.CollectionConverter
path : /client/securities/security[27]/prices
line number : 61980
class[1] : name.abuchen.portfolio.model.Security
converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2] : name.abuchen.portfolio.model.Client
version : not available

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

... 3 more

Caused by: com.thoughtworks.xstream.io.StreamException: : javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

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:89)

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

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

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

... 33 more

Caused by: java.io.IOException: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

at java.base/javax.crypto.CipherInputStream.getMoreData(Unknown Source)

at java.base/javax.crypto.CipherInputStream.read(Unknown Source)

at java.base/java.io.FilterInputStream.read(Unknown Source)

at java.base/java.io.PushbackInputStream.read(Unknown Source)

at java.base/java.util.zip.InflaterInputStream.fill(Unknown Source)

at java.base/java.util.zip.InflaterInputStream.read(Unknown Source)

at java.base/java.util.zip.ZipInputStream.read(Unknown Source)

at java.base/sun.nio.cs.StreamDecoder.readBytes(Unknown Source)

at java.base/sun.nio.cs.StreamDecoder.implRead(Unknown Source)

at java.base/sun.nio.cs.StreamDecoder.read(Unknown Source)

at java.base/java.io.InputStreamReader.read(Unknown Source)

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

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

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

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)

... 41 more

Caused by: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

at java.base/com.sun.crypto.provider.CipherCore.unpad(Unknown Source)

at java.base/com.sun.crypto.provider.CipherCore.fillOutputBuffer(Unknown Source)

at java.base/com.sun.crypto.provider.CipherCore.doFinal(Unknown Source)

at java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(Unknown Source)

at java.base/javax.crypto.Cipher.doFinal(Unknown Source)

... 58 more

Hallo, gibt es eine Möglichkeit sämtliche eingegebene Daten wieder herzuholen? Ich hatte sie leider nur in dem Programm gespeichert. Nun kommt beim öffnen XML kann nicht geparst werden…

Danke für Antworten!

1 Like

PP

Hab leider ein ähnliches bzw. gleiches Problem

@Nadine, @Markus_Meier: Die Datei ist beschädigt. Backup nehmen; ggf. schauen, ob eine der automatisch angelegten Kopien noch in Ordnung ist.

Ja, so sieht das bei mir auch so…

Ok. Wo finde ich das Backup? Bzw. wo muss ich da suchen?

Das Backup wird im gleichen Ordner gespeichert, wo du dein Portfolio gespeichert hast.

Bei mir war die originale Datei, das Backup und das after close Backup beschädigt, ich hab die originale Datei umbenannt (das hab ich hier im forum irgendwo gelesen) und danach hat das Backup wieder funktioniert, die originale Datei ist aber weiterhin beschädigt.

Du kannst das Backup über " Datei > Speichern unter" umbenennen und einen neuen Dateinamen vergeben…

Ja vielen Dank, das hab ich schon gemacht. Gibt es vielleicht eine Möglichkeit, das Problem einer beschädigten Datei in Zukunft zu umgehen also ich weiß nämlich immer noch nicht warum das Problem überhaupt aufgetreten ist, ich hab immer alles ordnungsgemäß auf der Festplatte abgespeichert

Kommt unter Windows öfter mal vor, die Ursache hat sich bisher nicht klären lassen.

1 Like

Ich hatte das Problem ebenfalls in der Vergangenheit als ich die Portfolio Datei in einem Cloud Ordner abspeichern wollte.

Seitdem ich den Ordner als normales Netzlaufwerk eingebunden habe funktioniert es problemlos.

Ich betreibe ein Synology NAS.

Ich hatte den Eindruck, dass es mir besonders oft die Portfolio xml Datei verrissen hat, wenn ich nach dem manuellen Speichern das Programm direkt beendet habe. Wie gesagt ich hatte nur den Eindruck ob es wirklich daran lag kann ich nicht sagen.

1 Like