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. Node
  3. Push Listener and Translate The Push Message Error

Push listener and translate the push message error

By Bela , 26 March, 2025
Forums
Gurux DLMS for Java

Hi there,

I have a project to read push messages and trying to figure out what is in the message. I have found the gurux translator, and I faced an issue with this.

After the translate, I wanted to parse the given xml but I got this exception:
[Fatal Error] :49:13: The element type "structure" must be terminated by the matching end-tag "</structure>".

There was a structure element without ending. It is a known issue with the translator?
Or is there any other tool to get the data from the byte stream? Or is there any chance to get the translated data in object/json or any more managable format?

Here is the xml:
<!-- Data length is 182 and there are 951 bytes. -->
<WRAPPER len="190" >
<TargetAddress Value="1" />
<SourceAddress Value="102" />
<PDU>
<data-notification>
<long-invoke-id-and-priority>2</long-invoke-id-and-priority>
<!-- 3/26/25, 6:58:14 PM -->
<date-time>07E9031A03103A0EFF003C00</date-time>
<notification-body>
<data-value>
<structure>
<long-unsigned>0</long-unsigned>
<long-unsigned>0</long-unsigned>
<long-unsigned>0</long-unsigned>
<long-unsigned>0</long-unsigned>
<long-unsigned>0</long-unsigned>
<long-unsigned>0</long-unsigned>
<array>
<structure>
<!-- 2/14/24, 2:50:13 PM -->
<octet-string>07E8020E030C320DFF003C00</octet-string>
<enum>85</enum>
<!-- xxx -->
<octet-string>xxx</octet-string>
</structure>
<structure>
<!-- 2/14/24, 2:49:37 PM -->
<octet-string>07E8020E030C3125FF003C00</octet-string>
<enum>79</enum>
<!-- xxx -->
<octet-string>xxx</octet-string>
</structure>
<structure>
<!-- 2/13/24, 2:20:10 PM -->
<octet-string>07E8020D020C140AFF003C00</octet-string>
<enum>85</enum>
<!-- xxx -->
<octet-string>xxx</octet-string>
</structure>
<structure>
<!-- 2/13/24, 2:19:22 PM -->
<octet-string>07E8020D020C1316FF003C00</octet-string>
<enum>79</enum>
<!-- xxx -->
<octet-string>xxx</octet-string>
</structure>
<structure>
</array>
</structure>
</data-value>
</notification-body>
</data-notification>
</PDU>
</WRAPPER>

Profile picture for user Kurumi

Kurumi

1 year 5 months ago

Hi, Have you checked the…

Hi,

Have you checked the push listener example?

https://github.com/Gurux/gurux.dlms.java/tree/master/gurux.dlms.push.li…

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin