Skip to content

Pubber - Does not start when baseline_value is a string #430

@noursaidi

Description

@noursaidi

When the baseline_value for a point in a devices metadata.json is a string value (e.g. "occupied"), pubber does not start. The expected behaviour would be pubber uses the value from baseline_value

ERROR daq.pubber.Pubber - 2022-08-25T07:06:07Z publishing shutdown state: While sending synchronous state
java.lang.RuntimeException: While starting singular pubber
	at daq.pubber.Pubber.singularPubber(Pubber.java:266)
	at daq.pubber.Pubber.main(Pubber.java:244)
Caused by: java.lang.RuntimeException: While initializing main pubber class
	at daq.pubber.Pubber.initialize(Pubber.java:645)
	at daq.pubber.Pubber.singularPubber(Pubber.java:260)
	... 1 more
Caused by: java.lang.RuntimeException: Unknown value type class java.lang.String
	at daq.pubber.Pubber.convertValue(Pubber.java:337)
	at daq.pubber.Pubber.makePoint(Pubber.java:319)
	at daq.pubber.Pubber.lambda$processDeviceMetadata$2(Pubber.java:466)
	at java.base/java.util.HashMap.forEach(HashMap.java:1336)
	at daq.pubber.Pubber.processDeviceMetadata(Pubber.java:466)
	at daq.pubber.Pubber.initializeDevice(Pubber.java:352)
	at daq.pubber.Pubber.initialize(Pubber.java:631)
	... 2 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions