<div class="gmail_quote">Hello all,<br><br>I've been posting questions about my issue to the user list but it seems nobody can answer, so I had to try this list, sorry if there is any disturbance.<br>Here is the case:<br>
<br>I've been trying to develop a java app that can register callbacks for domain lifecycle events(suspend,resume,etc.). Only method that I've seen is Connect.VirDomainEventRegisterAny, and there is an abstract callback method inside VirConnectDomainEventGenericCallback. I implement the callback, and register it for all the domains by passing the domain pointer as NULL.<br>

<br>Additionally for testing, I've added a println into the suspend function in org.libvirt.Domain.java, and compiled the java bindings and used the new jar file, and I was successful, I can see the message whenever I suspend the domain either by clicking <i>pause</i> or by writing dom.suspend() in my java app.<br>

<br>However, when I try to register a callback as I mentioned in the beginning (with eventID 0, which is life_cycle ID), after the suspend operation, I get the error that you can see at the end of the mail. <br><br>But before you check it out, I have to ask, are some of the event-related features of libvirt missing in java bindings? For example; VirEventAddHandleFunc, VirEventAddHandleCallback, and their derivatives. Is this a problem or the only Connect.VirDomainEventRegisterAny method of java binding suffice for providing callbacks for domain events?<br>

<br>Thanks in advance for your responses. The error is below.<br>Kind Regards<br>Kadir<br><br>#<br># A fatal error has been detected by the Java Runtime Environment:<br>#<br>#  SIGSEGV (0xb) at pc=0x00000000, pid=5692, tid=3077520240<br>

#<br># JRE version: 6.0_20-b20<br># Java VM: OpenJDK Server VM (19.0-b09 mixed mode linux-x86 )<br># Derivative: IcedTea6 1.9.7<br># Distribution: Ubuntu 10.10, package 6b20-1.9.7-0ubuntu1<br># Problematic frame:<br># C  0x00000000<br>

#<br># An error report file with more information is saved as:<br># /root/NetBeansProjects/NovaTest_v0.3/hs_err_pid5692.log<br>#<br># If you would like to submit a bug report, please include<br># instructions how to reproduce the bug and visit:<br>

#   <a href="https://bugs.launchpad.net/ubuntu/+source/openjdk-6/" target="_blank">https://bugs.launchpad.net/ubuntu/+source/openjdk-6/</a><br># The crash happened outside the Java Virtual Machine in native code.<br># See problematic frame for where to report the bug.<br>

#<br>Java Result: 134<br>
</div><br>