Skip to main content
Home
for DLMS smart meters

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

8 months 2 weeks 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, 12/11/2025 - 13:22
    Gurux.DLMS.Python 1.0.194
  • Thu, 12/11/2025 - 11:01
    gurux.dlms.java 4.0.86
  • Wed, 12/10/2025 - 08:45
    gurux.dlms.java 4.0.85
  • Tue, 12/02/2025 - 10:21
    gurux.dlms.c 9.0.2512.0201
  • Mon, 12/01/2025 - 13:55
    Gurux.DLMS.Python 1.0.193

New forum topics

  • Gurux.Net
  • GXTIME Conversion Issue
  • DLMS Meter Gurux DLMS Director Properties
  • Using MAX3232 + FT232RL to Energy meter with GXDLMS Director
  • Incomplete Firmware Upgrade Process
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin