Thanks Matthias,<br><br>can you please have a look at the program attached? this should work as i have used free() call. but its not working for me.<br><br>Thanks,<br>Ravi<br><br><div class="gmail_quote">On Mon, Oct 18, 2010 at 6:20 PM, Bryan Kearney <span dir="ltr"><<a href="mailto:bkearney@redhat.com">bkearney@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">On 10/15/2010 10:05 AM, Matthias Bolte wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2010/10/13 Matthias Bolte<<a href="mailto:matthias.bolte@googlemail.com" target="_blank">matthias.bolte@googlemail.com</a>>:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2010/10/12 Matthias Bolte<<a href="mailto:matthias.bolte@googlemail.com" target="_blank">matthias.bolte@googlemail.com</a>>:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2010/10/12 Ravi Pawar<<a href="mailto:ravifc@gmail.com" target="_blank">ravifc@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
hi,<br>
<br>
i am trying to undefine a domain  by using dm.undefine();<br>
and then trying to create one with same name is giving me error saying<br>
'Domain not found: no domain with matching uuid<br>
'aeae9d4e-17cb-b661-a612-88ac677c28c1'<br>
<br>
i have attached my test program which reproduces the issue.<br>
<br>
please let me know where i am going wrong?<br>
<br>
configuration: libvirt : 0.6.3<br>
                     Java Bindings: 0.4.2<br>
</blockquote>
<br>
I didn't look into this problem in detail, but I think you need to<br>
call free on the Domain object after you undefined it.<br>
<br>
dm.undefine();<br>
dm.free();<br>
dm = null;<br>
<br>
Matthias<br>
<br>
</blockquote>
<br>
Okay, calling free doesn't help. I tested it with libvirt 0.6.3 and<br>
libvirt-java 0.4.6 and can reproduce your problem.<br>
<br>
This problem is fixed in libvirt 0.8.2. I didn't track it down to the<br>
actual commit.<br>
<br>
So in order to fix your problem you'll have to update libvirt to 0.8.2<br>
or identify the commit between 0.8.1 and 0.8.2 that fixes your problem<br>
and backport it to 0.6.3.<br>
<br>
Matthias<br>
<br>
</blockquote>
<br>
I found the commit (30ec755ecb3350116d2851afa0de02e77dbe2c51) that<br>
avoids the problem in your original test code. I say 'avoid' instead<br>
of 'fix' because the actual fix is to call free on the domain objects<br>
after undefining them as I initially suggested. But when I tested this<br>
I did it wrong and jumped to false conclusions.<br>
<br>
Just to say it once again: Adding free calls solve this problem for me<br>
with libvirt 0.6.3.<br>
<br>
I attached a modified version of your test code that works for me.<br>
<br>
</blockquote>
<br></div></div>
Which the latest code has.<br><font color="#888888">
<br>
-- bk<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Thanks & Regards<br><br>Ravi Pawar<br>