search for: connectauthdefault

Displaying 11 results from an estimated 11 matches for "connectauthdefault".

2010 Jun 22
0
Question about the remote Authentication in the libvirt Java bindings
Dustin: I am adding this response to the libvirt list as well so that others may see it. The authorization is done via a callback. The ConnectAuthDefault() that you are using is one such implementation. You could create your own subclass of ConnectAuth, and override the method: public abstract int callback(Credential[] cred); And then provide the username/password in that fashion. Look at the ConnectAuthDefault in the case statement how it choos...
2019 Apr 18
3
Re: [libvirt] JVM crashes during GC
...19 10:24 AM, Sachin Soman wrote: > > Hi, > > > > Could you tell me if the following is some known issue? > > > > While performing the following simple test, I see my JVM crashing > > (consistently): > > 1. Open a connection to an ESXi driver/host (passing ConnectAuthDefault > > instance). > > 2. Close the connection. > > 3. Invoke GC > > > > When GC is triggered, at some point, some unallocated native memory is > > being tried to release. That's failing. > > > > The error thrown is: > > > > java(78745,...
2019 Apr 18
2
Re: [libvirt] JVM crashes during GC
...used: > > ================================================== > > *package* org.libvirt; > > > *import* org.libvirt.jna.Libvirt; > > > *public* *class* LibvirtCrashTest { > > *void* createAndDestroyDefaultAuthConnection() { > > ConnectAuth ca = *new* ConnectAuthDefault(); > > *try* { > > System.*out*.println("Starting new connection with default auth"); > > Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0); It could be interesting to try different libvirt drivers. eg "test:///default" this c...
2019 Apr 18
1
Re: [libvirt] JVM crashes during GC
...I have used: > > ================================================== > > *package* org.libvirt; > > > *import* org.libvirt.jna.Libvirt; > > > *public* *class* LibvirtCrashTest { > > *void* createAndDestroyDefaultAuthConnection() { > > ConnectAuth ca = *new* ConnectAuthDefault(); > > *try* { > > System.*out*.println("Starting new connection with default auth"); > > Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0); > > Thread.*sleep*(1000); > > System.*out*.println("Explicit connection closure&quot...
2019 Apr 17
2
JVM crashes during GC
Hi, Could you tell me if the following is some known issue? While performing the following simple test, I see my JVM crashing (consistently): 1. Open a connection to an ESXi driver/host (passing ConnectAuthDefault instance). 2. Close the connection. 3. Invoke GC When GC is triggered, at some point, some unallocated native memory is being tried to release. That's failing. The error thrown is: java(78745,0x70000241e000) malloc: *** error for object 0x7fd5df561390: pointer being freed was not allocated...
2019 Apr 20
2
Re: [libvirt] JVM crashes during GC
...age* org.libvirt; >> > >> > >> > *import* org.libvirt.jna.Libvirt; >> > >> > >> > *public* *class* LibvirtCrashTest { >> > >> > *void* createAndDestroyDefaultAuthConnection() { >> > >> > ConnectAuth ca = *new* ConnectAuthDefault(); >> > >> > *try* { >> > >> > System.*out*.println("Starting new connection with default auth"); >> > >> > Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0); >> >> It could be interesting to tr...
2019 Apr 18
0
Re: [libvirt] JVM crashes during GC
...tioned the environment details. Following is the test program I have used: ================================================== *package* org.libvirt; *import* org.libvirt.jna.Libvirt; *public* *class* LibvirtCrashTest { *void* createAndDestroyDefaultAuthConnection() { ConnectAuth ca = *new* ConnectAuthDefault(); *try* { System.*out*.println("Starting new connection with default auth"); Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0); Thread.*sleep*(1000); System.*out*.println("Explicit connection closure"); connect.close(); Thread.*sleep*(5000);...
2019 Apr 18
0
Re: [libvirt] JVM crashes during GC
...============== > > > > *package* org.libvirt; > > > > > > *import* org.libvirt.jna.Libvirt; > > > > > > *public* *class* LibvirtCrashTest { > > > > *void* createAndDestroyDefaultAuthConnection() { > > > > ConnectAuth ca = *new* ConnectAuthDefault(); > > > > *try* { > > > > System.*out*.println("Starting new connection with default auth"); > > > > Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0); > > It could be interesting to try different libvirt drivers. &gt...
2019 Apr 23
0
Re: [libvirt] JVM crashes during GC
...>> > >>> > *import* org.libvirt.jna.Libvirt; >>> > >>> > >>> > *public* *class* LibvirtCrashTest { >>> > >>> > *void* createAndDestroyDefaultAuthConnection() { >>> > >>> > ConnectAuth ca = *new* ConnectAuthDefault(); >>> > >>> > *try* { >>> > >>> > System.*out*.println("Starting new connection with default auth"); >>> > >>> > Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0); >>> >>&g...
2019 Apr 18
0
Re: JVM crashes during GC
On 4/17/19 10:24 AM, Sachin Soman wrote: > Hi, > > Could you tell me if the following is some known issue? > > While performing the following simple test, I see my JVM crashing > (consistently): > 1. Open a connection to an ESXi driver/host (passing ConnectAuthDefault > instance). > 2. Close the connection. > 3. Invoke GC > > When GC is triggered, at some point, some unallocated native memory is > being tried to release. That's failing. > > The error thrown is: > > java(78745,0x70000241e000) malloc: *** error for object 0x7fd...
2012 Apr 09
0
virsh works but libvirt-java throws a 'No route to host'
...port org.libvirt.*; public class VirtAPITesting { public static void main(String[] args) throws InterruptedException { System.setProperty("jna.library.path", "/usr/local/lib/"); Connect conn=null; System.out.println( ConnectAuth defaultAuth = new ConnectAuthDefault(); try{ conn = new Connect("xenapi://root at 192.168.1.23?no_verify=1", defaultAuth, 0); } catch (LibvirtException e){ System.out.println("exception caught:"+e); System.out.println(e.getError()); } try {...