Re: [PATCH 0/2] Libvirt-java event handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thus spake Bryan Kearney <bkearney@xxxxxxxxxx>:

> Thank you for the patch. I am applying it now. Did you get the
> registration call backes working. I am getting failures consistently
> with every domain registration I do with the callbacks.

I think most drivers don't support that. We have a custom driver for our
hypervisor and it works. The only weird thing is the following. Suppose
I have a callback like this:

 @Override
 public void eventCallback(ConnectionPointer virConnectPtr,
                           DomainPointer virDomainPointer, Pointer arg4) {
   System.out.printf("p %s\n", virDomainPointer.toString());
   Domain d = new Domain(c, virDomainPointer);
   try {
     System.out.printf("REBOOT(%s)\n", d.getName());
   } catch (LibvirtException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
  }

Sometimes I get the following output:

p org.libvirt.jna.DomainPointer@c016a2b8
libvir: Domain error : invalid domain pointer in virDomainFree
REBOOT(linux)


I am at a loss to explain where this call to virDomainFree comes
from... Any clues?

Regards, Julian

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]