[libvirt] Connection using Java

Felipe Oliveira Gutierrez lipe.82 at gmail.com
Tue Oct 2 15:10:54 UTC 2012


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@192.XXX.XXX.XX/", true);

libvir: RPC error : End of file while reading data: nc: invalid option --
'U'
nc -h for help: Input/output error
exception caught:org.libvirt.LibvirtException: End of file while reading
data: nc: invalid option -- 'U'
nc -h for help: Input/output error
level:VIR_ERR_ERROR
code:VIR_ERR_SYSTEM_ERROR
domain:VIR_FROM_RPC
hasConn:false
hasDom:false
hasNet:false
message:End of file while reading data: nc: invalid option -- 'U'
nc -h for help: Input/output error
str1:%s
str2:End of file while reading data: nc: invalid option -- 'U'
nc -h for help: Input/output error
str3:null
int1:-1
int2:-1

Thanks,
Felipe

-- 
*-- Felipe Oliveira Gutierrez*
*-- **lipe.82 at gmail.com* <lipe.82 at gmail.com>
*-- https://sites.google.com/site/lipe82/Home/diaadia*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121002/507f7ee8/attachment-0001.htm>


More information about the libvir-list mailing list