Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
noursaidi opened this issue Aug 25, 2022 · 0 comments
Open

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

noursaidi opened this issue Aug 25, 2022 · 0 comments

Comments

@noursaidi
Copy link
Collaborator

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant