hqstevenson / splunk-aries-blueprint

A Namespace Handler to simplify creating embedded Splunk HTTPEC data feeds
Apache License 2.0
0 stars 0 forks source link

includeZeroAttributes property expected instead of include-zero-attrs #1

Open KnightRide12 opened 6 years ago

KnightRide12 commented 6 years ago

Schema has include-zero-attrs property defined for splunk-event element but deployment in fuse is expecting includeZeroAttributes:

2018-05-24 11:29:48,811 | ERROR | fabric-agent-72.0.1-deployer-4-thread-1 | org.apache.aries.blueprint.container.BlueprintContainerImpl | BlueprintContainerImpl.java:403 | 25 - org.apache.aries.blueprint.core - 1.4.4 | - - | Unable to start blueprint container for bundle activemq-blueprint-monitors.xml/0.0.0 java.lang.IllegalArgumentException: getPropertyMetadata(propertyName[includeZeroAttributes], propertyValue[true]) - unsupported propertyName at com.pronoia.splunk.aries.blueprint.metadata.JmxAttributeListEventBuilderMetadata.getPropertyMetadata(JmxAttributeListEventBuilderMetadata.java:102)[267:com.github.hqstevenson.splunk.aries.blueprint:0.1.2]

Looking at JmxAttributeListEventBuilderMetadata code the strings in the switch statement for method getPropertyMetadata seems to be wrong. The case for includeNullAttrs, includeEmptyAttrs, and includeZeroAttrs should have been includeNullAttributes, includeEmptyAttributes, and includeZeroAttributes instead.