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

add reflect region to pubber cloudiotconfig #317

Merged
merged 2 commits into from
Apr 29, 2022

Conversation

noursaidi
Copy link
Collaborator

to fix following error:

Exception in thread "main" java.lang.RuntimeException: While reading config file /Users/nournew/udmi_site_model/cloud_iot_config.json
	at daq.pubber.Pubber.loadCloudConfig(Pubber.java:325)
	at daq.pubber.Pubber.initializeDevice(Pubber.java:341)
	at daq.pubber.Pubber.initialize(Pubber.java:510)
	at daq.pubber.Pubber.singularPubber(Pubber.java:213)
	at daq.pubber.Pubber.main(Pubber.java:198)
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "reflect_region" (class com.google.daq.mqtt.util.CloudIotConfig), not marked as ignorable (4 known properties: "update_topic", "site_name", "registry_id", "cloud_region"])
 at [Source: (File); line: 5, column: 22] (through reference chain: com.google.daq.mqtt.util.CloudIotConfig["reflect_region"])
	at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61)
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:987)
	at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1974)
	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1701)
	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1679)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:330)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:187)
	at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:322)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4593)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3413)
	at daq.pubber.Pubber.loadCloudConfig(Pubber.java:323)

@johnrandolph
Copy link
Collaborator

Not sure why this genhash file isn't in sync with how this runs

If you run bin/gencode check locally does it work?

@noursaidi
Copy link
Collaborator Author

I think there was an update without a gencode - I've got a documentation PR #312 which also fixes this

@johnrandolph
Copy link
Collaborator

can we re-run these checks

@noursaidi
Copy link
Collaborator Author

@johnrandolph tests now pass

@johnrandolph johnrandolph merged commit 19a64fc into faucetsdn:master Apr 29, 2022
@noursaidi noursaidi deleted the reflectpubber branch September 20, 2022 13:56
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

Successfully merging this pull request may close these issues.

None yet

2 participants