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. 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 3 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

  • 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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin