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. Getting Error Java.lang.IllegalArgumentException: Change Type Failed. Not Enought Data.

Getting error java.lang.IllegalArgumentException: Change type failed. Not enought data.

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 Mithun Tiruvedula , 27 February, 2021
Forums
Gurux DLMS for Java

Hi all,

I'm relatively new to DLMS and associated development. I'm trying to build a Tridium Niagara driver for DLMS.
I was able to run the server from https://github.com/Gurux/gurux.dlms.java/tree/master/gurux.dlms.server… , and am using the code from https://github.com/Gurux/gurux.dlms.java/tree/master/gurux.dlms.client… to read data.

I am able to read all data except for a few fields, as follows:
1. GXDLMSAutoConnect (0.0.2.1.0.255 Ch. 0 Auto connect) - Position 5
2. GXDLMSActivityCalendar (0.0.13.0.0.255 Ch. 0 Activity calendar #1) - Position 3
3. GXDLMSActivityCalendar (0.0.13.0.0.255 Ch. 0 Activity calendar #1) - Position 7

And here's the exception I get, originating at com.leanovate.dlmsDriver.GXDLMSReader.read from my code which is adapted from the method getReadOut() in https://github.com/Gurux/gurux.dlms.java/blob/master/gurux.dlms.client… (Line number 837).

gurux.dlms.client java.lang.IllegalArgumentException: Change type failed. Not "enought" data

Am I doing something wrong? Are these fields readable?
Thank you in advance!!

Regards,
Mithun

Profile picture for user Kurumi

Kurumi

5 years 3 months ago

Hi,

Hi,

I just try this and it worked like expected. Have you made changed to the source code?

BR,

Mikko

Mithun Tiruvedula

5 years 3 months ago

Hi Mikko

Hi Mikko

No, I have not changed any source code.
The error stopped occurring and happens irregularly now. Weird!
if it happens again, I'll post the steps to reproduce.

Thanks and Regards,
Mithun

Profile picture for user Kurumi

Kurumi

5 years 3 months ago

Hi,

Hi,

Thank you for this info.
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