Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. XMLStreamException When Loading OBIS

XMLStreamException when loading OBIS

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By enemy235 , 16 July, 2020
Forums
Gurux DLMS for Java

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?

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

I just tested this and it worked with my PC. Are you using the latest version (4.0.19)?

BR,
Mikko

enemy235

5 years 11 months ago

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.

Profile picture for user Kurumi

Kurumi

5 years 10 months ago

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

Profile picture for user Kurumi

Kurumi

5 years 10 months ago

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

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin