landshark666 / passwordmaker-je

Java port of the Firefox PasswordMaker plugin
8 stars 4 forks source link

MalformedByteSequenceException when group name contains an "ä" #53

Open waffel opened 8 years ago

waffel commented 8 years ago

I have created a Group with a "ä" inside the name. If I try to save the database, I get a MalformedByteSequenceException and the database cannot be saved.

After removing the "special" character, saving works fine.

I'am using latest release version 0.7.3 with jdk8

waffel commented 8 years ago

here is the complete stack trace:

com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Ungⁿltiges Byte 2 von 3-Byte-UTF-8-Sequenz.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Sou
rce)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(Unknown Source)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
        at org.daveware.passwordmaker.RDFDatabaseWriter.formatXml(RDFDatabaseWriter.java:62)
        at org.daveware.passwordmaker.RDFDatabaseWriter.write(RDFDatabaseWriter.java:100)
        at org.daveware.passwordmakerapp.gui.GuiMain.saveFile(GuiMain.java:2124)
        at org.daveware.passwordmakerapp.gui.GuiMain.access$33(GuiMain.java:2107)
        at org.daveware.passwordmakerapp.gui.GuiMain$44.widgetSelected(GuiMain.java:994)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
        at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
        at org.daveware.passwordmakerapp.gui.GuiMain.open(GuiMain.java:269)
        at org.daveware.passwordmakerapp.gui.GuiMain.run(GuiMain.java:236)
        at org.daveware.passwordmakerapp.Main.run(Main.java:177)
        at org.daveware.passwordmakerapp.Main.main(Main.java:48)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)