<div dir="ltr">Thanks for the explanation: <a href="https://issues.jboss.org/browse/HWKINVENT-204">https://issues.jboss.org/browse/HWKINVENT-204</a><div><br></div><div>Cheers.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 15, 2016 at 2:59 PM, Lukas Krejci <span dir="ltr">&lt;<a href="mailto:lkrejci@redhat.com" target="_blank">lkrejci@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It&#39;s a poorly handled error condition.<br>
<br>
Not all entity types support tree hashes. Only those tha can be synced also<br>
have a tree hash (because tree hash is used to minimize the number of updates<br>
we need to do).<br>
<br>
You can only sync a feed and anything underneath it - resources, metrics,<br>
resource types, metric types, operation types and data.<br>
<br>
Environments are not syncable (at least now) and so you cannot obtain a<br>
treeHash of them.<br>
<br>
That said, you should get a more comprehensible error message than the above.<br>
Would you mind creating an issue for that at<br>
<a href="https://issues.jboss.org/secure/CreateIssue!default.jspa" rel="noreferrer" target="_blank">https://issues.jboss.org/<wbr>secure/CreateIssue!default.<wbr>jspa</a>?<br>
selectedProjectId=12315923<br>
<br>
Hope this helps,<br>
<br>
Lukas<br>
<span class=""><br>
On Wednesday, September 14, 2016 4:22:11 PM CEST Gareth Healy wrote:<br>
&gt; I am using the inventory &quot;entity&quot; API - Day1 of using it, so might be a<br>
&gt; silly mistake.<br>
&gt;<br>
&gt; Using services v0.0.12.Final which has v0.18.0Final of inventory.<br>
&gt;<br>
&gt; I am able to create and get an entity, but when i try to get the treeHash,<br>
&gt; i get a cast exception.<br>
&gt;<br>
&gt; Server log:<br>
&gt;<br>
</span>&gt;    - <a href="https://gist.github.com/garethahealy/e5004563be11cbc55ea6fcf1bb2907d6" rel="noreferrer" target="_blank">https://gist.github.com/<wbr>garethahealy/<wbr>e5004563be11cbc55ea6fcf1bb2907<wbr>d6</a><br>
&gt;<br>
&gt; Client log:<br>
&gt;<br>
&gt;    - <a href="https://gist.github.com/garethahealy/e397df61965df7b766b41a30a3f33ca2" rel="noreferrer" target="_blank">https://gist.github.com/<wbr>garethahealy/<wbr>e397df61965df7b766b41a30a3f33c<wbr>a2</a><br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt; This a bug? or am i doing something wrong?<br>
&gt;<br>
&gt; Cheers.<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Lukas Krejci<br>
______________________________<wbr>_________________<br>
hawkular-dev mailing list<br>
<a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/hawkular-dev</a><br>
</font></span></blockquote></div><br></div>