please check the java file attached they throws the exception in case of passing. please let me know if i am missing something. -- Thanks & Regards Ravi Pawar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100902/f820e029/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: TestMultiThreadingLibvirtWithError.java Type: application/octet-stream Size: 523 bytes Desc: not available URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100902/f820e029/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.java Type: application/octet-stream Size: 846 bytes Desc: not available URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100902/f820e029/attachment-0001.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: TestMultiThreadingLibvirt.java Type: application/octet-stream Size: 732 bytes Desc: not available URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100902/f820e029/attachment-0002.obj>
2010/9/2 Ravi Pawar <ravifc at gmail.com>:> please check the java file attached they throws the exception in case of > passing. > please let me know if i am missing something. >Can you explain in more detail what one should do to reproduce the problem you seem to see with the attached code? Also you didn't mention which versions of libvirt and libvirt-java you're using. When I run you example code (with a guest name that exists in my setup and libvirt and libvirt-java form current git head) I don't see any exceptions. Even when I add e.printStackTrace() to the catch block of TestMultiThreadingLibvirtWithError I don't see exceptions. $ java -classpath ./target/libvirt-0.4.6.jar:./ravi:/usr/share/java/jna.jar Test start class 0 start class 1 start class 2 start class 3 start class 4 start class 5 start class 6 start class 7 start class 8 start class 9 So this works for me. Matthias
Reasonably Related Threads
- Fwd: undefining and redefining a Domain from libvirt java bindings
- Remote access form windows - Java bindings
- Anyone has new libvirt java binding jar, i want the latest one. i dont have the build env at my end.
- java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/linux-i386/libjnidispatch.so) not found in resource path
- Java client error on Windows 7 64 bit for Libvirt on KVM