From: Luis Carlos Moreira da Costa <luis.carlos@alog.com.br>
To: xen-devel@lists.xensource.com
Subject: *** Error ***
Date: Tue, 03 Aug 2010 11:48:12 -0300 [thread overview]
Message-ID: <4C582C2C.7080407@alog.com.br> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2123 bytes --]
Could someone help me, goatees to know why this error happens?
Regards,
LuisCM
=========================================================
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 = "http://187.33.17.4:9363";
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 {
TCon.connect();
TCon.disconnect();
}
}
/**
logging in to 'http://187.33.17.4:9363' 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)
*/
[-- Attachment #1.2: Type: text/html, Size: 3550 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2010-08-03 14:48 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-03 14:48 Luis Carlos Moreira da Costa [this message]
2010-08-03 14:56 ` *** Error *** Ian Campbell
-- strict thread matches above, loose matches on Subject: below --
2023-10-03 17:50 [Error] Isoken Ibizugbe
2023-10-03 18:47 ` [Error] Deepak R Varma
2023-10-03 22:18 ` [Error] Andi Shyti
2023-10-04 16:25 ` [Error] Isoken Ibizugbe
2023-10-04 16:32 ` [Error] Julia Lawall
[not found] ` <CALPt=awuCRF3_Z5-Qh3biBBEuS7fVkvxQyfFcxuv8Snww6csMA@mail.gmail.com>
2023-10-05 6:53 ` [Error] Isoken Ibizugbe
[not found] ` <CALPt=aznty=FRpmNXMvVVJKSH48OibdrQ5cr68ubEO2b8b+atg@mail.gmail.com>
2023-10-05 7:03 ` [Error] Isoken Ibizugbe
2023-10-05 8:24 ` [Error] Julia Lawall
[not found] ` <CAJHH8bGGship88xdjep302+wq0jbaC6VUbcwEW7DotUKY4bysw@mail.gmail.com>
[not found] ` <alpine.DEB.2.22.394.2310051048360.3375@hadrien>
[not found] ` <CAJHH8bFETe6cfkG-w9H=UywxTC9xGss40+2r_EhDJT3k8Z5fvg@mail.gmail.com>
2023-10-05 9:44 ` [Error] Julia Lawall
[not found] ` <CAJHH8bFuZtfZEeknsiSQzLLUq=jhoSUmyVh7pcViBfa8nTnhhw@mail.gmail.com>
[not found] ` <alpine.DEB.2.22.394.2310051203150.3375@hadrien>
[not found] ` <CAJHH8bFS1=BpXjKkNNk0VQZR-Ztk13ooo5YSpbuKiQS3y9JR7w@mail.gmail.com>
2023-10-05 11:10 ` [Error] Julia Lawall
2023-10-05 16:53 ` [Error] Isoken Ibizugbe
2023-10-05 16:58 ` [Error] Julia Lawall
[not found] ` <CAJHH8bHixAcrUwpj_LCjAZ641tbzjHQHm9ig=UPvoRh+h0ubPg@mail.gmail.com>
2023-10-05 17:09 ` [Error] Julia Lawall
[not found] ` <CAJHH8bHV4rRPmM5scQ2AUk9FTs4hAy6i8S5fwJ=4v1xf7DDqOg@mail.gmail.com>
2023-10-08 6:02 ` [Error] Julia Lawall
[not found] ` <CAJHH8bGB4pVDZpK6LoTCZccRqJg_sry=NLdMsqO+7EzRufXWMQ@mail.gmail.com>
2023-10-08 6:07 ` [Error] Julia Lawall
2023-10-09 5:32 ` [Error] Isoken Ibizugbe
2023-10-09 6:52 ` [Error] Julia Lawall
[not found] ` <CAJHH8bE3T6zfX_fRBCKqodKBUn0X=gehJ39-eNknzhLQVTrSLA@mail.gmail.com>
2023-10-11 11:46 ` [Error] Isoken Ibizugbe
2023-10-11 12:06 ` [Error] Julia Lawall
2023-10-11 12:08 ` [Error] Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C582C2C.7080407@alog.com.br \
--to=luis.carlos@alog.com.br \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.