influxdb-client-java icon indicating copy to clipboard operation
influxdb-client-java copied to clipboard

Can not set java.lang.Boolean field xxx to null value

Open xiezhuolong opened this issue 2 years ago • 4 comments

image My field type is Boolean, but my program threw 'Can't set java. lang. Boolean field xxx to null value' here. Please check

xiezhuolong avatar Apr 25 '23 07:04 xiezhuolong

Hi @xiezhuolong,

can you share the output from InfluxDB? I am not able to simulate your exception.

Regards

bednar avatar May 02 '23 12:05 bednar

Hi @bednar ,

This is my data, and the field is "is_VIP_visible". 2023-05-04_08_55_influxdb_data.csv

Regards

xiezhuolong avatar May 04 '23 01:05 xiezhuolong

@xiezhuolong, thanks for sharing your data.

All values from the field "is_VIP_visible" are "FALSE" and are parsed as Boolean.False. Why do you want to set the field to null for these values?

bednar avatar May 04 '23 03:05 bednar

@bednar

This error is not related to the data. Because fieldType is not assigned from Boolean. TYPE. I think the fieldType should be assigned from Boolean. class.

xiezhuolong avatar May 05 '23 08:05 xiezhuolong