Re: Connection using Java

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

 



On 10/02/2012 09:10 AM, Felipe Oliveira Gutierrez wrote:
> Hi,
> 
> I am using java to connect to the xen, but my class is throwing a
> exception. Does anyone know what is happening?
> 
> public class TestConnection {
>     public static void main(String[] args) {
>         Connect conn = null;
>         try {
>             conn = new Connect("xen+ssh://root@xxxxxxxxxxxxxx/", true);
> 
> libvir: RPC error : End of file while reading data: nc: invalid option --
> 'U'

What distro is running the machine at 192.XXX.XXX.XX, and what version
of nc is it using (remembering that Fedora and Debian nc come from
different heritages)?  What does 'nc --help' output on that machine?

It may be possible to connect by installing an updated nc on that
machine, and/or altering your xen+ssh://... URI to include a ?netcat=...
parameter that points to an alternate location on that server that
understands -U.

http://libvirt.org/remote.html#Remote_URI_parameters

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]