The example at
http://ws.apache.org/muse/docs/2.2.0/manual/how-to/add-metrics-to-properties.html
is incomplete and will result in an exception being thrown while the
endpoint is being initialized.

The description of

<wsrmd:Property name="myns:MyProperty" mutability="..." modifiability="...">
  
<muws2:Capability>http://docs.oasis-open.org/wsdm/muws/capabilities/Metrics</muws2:Capability>
   <muws2:TimeScope>Interval | PointInTime | SinceReset</muws2:TimeScope>
   <muws2:GatheringTime>OnChange | OnDemand | Periodic |
Unknown</muws2:GatheringTime>
   <muws2:CalculationInterval>an xsd:duration
value</muws2:CalculationInterval>
</wsrmd:Property>

is missing the <muws2:ChangeType>Counter|Gauge|Unknown</muws2:ChangeType>
definition, which will cause a NullPointerException being thrown in
getChangeType(String value) in 
org.apache.muse.ws.dm.muws.impl.SimpleMetric.
-- 
View this message in context: 
http://www.nabble.com/WSDM-Metrics-Example-is-incomplete-tf3602802.html#a10064841
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to