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

6 years 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

6 years 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

6 years 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

6 years 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

  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200
  • Mon, 06/15/2026 - 08:52
    gurux.dlms.c 9.0.2606.1501

New forum topics

  • Service not known error on gprs communication
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • Jerrylam
  • qvlLdJweKzGUYaSOVS
  • LindanEt
  • annoyingconsultants
  • paulqa1
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin