Hi,
I was downloading association from meter and when I tried to load it back (using GXDLMSObjectCollection.load and save) I got XMLStreamException.
[Fatal Error] :-1:-1: Invalid byte 1 of 1-byte UTF-8 sequence.
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[508,58]
Message: Invalid byte 1 of 1-byte UTF-8 sequence.
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:652)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.getElementText(XMLStreamReaderImpl.java:902)
at gurux.dlms.objects.GXXmlReader.getText(GXXmlReader.java:389)
at gurux.dlms.objects.GXXmlReader.readElementContentAsString(GXXmlReader.java:400)
at gurux.dlms.objects.GXXmlReader.readElementContentAsString(GXXmlReader.java:355)
at gurux.dlms.objects.GXDLMSObjectCollection.load(GXDLMSObjectCollection.java:200)
at gurux.dlms.objects.GXDLMSObjectCollection.load(GXDLMSObjectCollection.java:148)
Line describes this object description:
<GXDLMSRegister>
<LN>1.0.90.7.0.255</LN>
<Description>Ch. 0 SLi current (algebraic sum of the – unsigned – value of the currents in all phases) Inst. value</Description>
<Access>111</Access>
<MethodAccess>0</MethodAccess>
</GXDLMSRegister>
It looks like, there is long dash. I tried to search the origin of description, but I could not find it. Is it supposed to be in OBISCodes.txt?
I don't know, if the error is just on my side or it is problem with XML or some descriptions have wrong dashes. Or maybe it is just problem with encoding?
I tried that on version 4.0.16. Latest version is the same, but I only tried to load from file, not to download it again. I'll try that soon.
I can send you the downloaded file so you can test it. Maybe there is problem with encoding, when the file is created. My default OS encoding is windows-1250.
I believe that you might be right with encoding. Can you send this file to me and we'll check it.
You can find my email address info from here: http://www.gurux.fi/AboutUs
Hi,
Hi,
I just tested this and it worked with my PC. Are you using the latest version (4.0.19)?
BR,
Mikko
I tried that on version 4.0
I tried that on version 4.0.16. Latest version is the same, but I only tried to load from file, not to download it again. I'll try that soon.
I can send you the downloaded file so you can test it. Maybe there is problem with encoding, when the file is created. My default OS encoding is windows-1250.
Hi,
Hi,
I believe that you might be right with encoding. Can you send this file to me and we'll check it.
You can find my email address info from here:
http://www.gurux.fi/AboutUs
BR,
Mikko
Hi,
Hi,
This is fixed to version 4.0.20. '-' char is changed to minus char and now this is not causing problems.
BR,
Mikko