This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] *** Error ***

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] *** Error ***
From: Luis Carlos Moreira da Costa <luis.carlos@xxxxxxxxxxx>
Date: Tue, 03 Aug 2010 11:48:12 -0300
Delivery-date: Tue, 03 Aug 2010 07:53:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100727 Shredder/3.0.7pre

Could someone help me, goatees to know why this error happens?



package com.alog.xenapi.luis;

import java.net.URL;

import com.xensource.xenapi.APIVersion;
import com.xensource.xenapi.Connection;
import com.xensource.xenapi.Session;

public final class TCon {

    private final static String HOSTNAME = "";
    private final static String USERNAME = "root";
    private final static String PASSWORD = "xyz#!232";
    protected static Connection connection;
    private static String connectionName;
    protected static void connect() throws Exception {
        connection = new Connection( new URL( HOSTNAME ) );
        System.out.println( String.format( "logging in to '%s' as '%s' with password '%s'...", HOSTNAME, USERNAME, PASSWORD ) );
        System.out.println( "connection.getSessionReference() " + connection.getSessionReference() );
        Session.loginWithPassword( connection, USERNAME, PASSWORD, APIVersion.latest().toString() );
        System.out.println( "Success" );
        connectionName = HOSTNAME;

    protected static void disconnect() throws Exception {
        System.out.println( "disposing connection for " + connectionName );
        Session.logout( connection );

    public static void main( final String[] args ) throws Exception {


logging in to '' as 'root' with password 'xyz#!232'...
connection.getSessionReference() null
Exception in thread "main" You tried to call a method with the incorrect number of parameters.  The fully-qualified method name that you used, and the number of received and expected parameters are returned.
    at com.xensource.xenapi.Types.checkResponse(Types.java:1291)
    at com.xensource.xenapi.Connection.dispatch(Connection.java:367)
    at com.xensource.xenapi.Session.loginWithPassword(Session.java:490)
    at com.alog.xenapi.luis.TCon.connect(TCon.java:22)
    at com.alog.xenapi.luis.TCon.main(TCon.java:33)


Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>