If it helps this is the Java code we use with Universe on Windows and
Solaris. Works fine for us, over a thousand java connections running.
public UnilinkSession(String poolName, String hostname, String acctpath,
String username, String password, String remoteFileServer) throws
Exception {
this.poolName = poolName;
this.hostname = hostname;
this.acctpath = acctpath;
this.username = username;
this.password = password;
this.remoteFileServer = remoteFileServer;
this.callStats = new HashMap(97, 0.75f);
}
public synchronized void connect(UniJava uniJava) throws Exception {
this.session = uniJava.openSession();
this.session.setHostName(this.hostname);
this.session.setAccountPath(this.acctpath);
this.session.setUserName(this.username);
this.session.setPassword(this.password);
this.session.setDeviceSubkey(this.poolName);
this.session.connect();
this.session.command("LOGIN").exec();
this.session.command("SET.REMOTE.ID " + this.username + " " +
this.password + " ON " + this.remoteFileServer).exec();
this.userNumber = this.session.getAtVariable(3);
this.uniqueKey = this.poolName + this.userNumber + "*";
this.connectedAt = System.currentTimeMillis();
}
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Little
Sent: 10 September 2004 21:16
To: [EMAIL PROTECTED]
Subject: [U2] UniSession.connect error
I have searched for a solution to this problem without much luck so far.
I've been working with UniVerse 10 PE for Linux, and UniObjects and get
an error when trying to connect to UniVerse. The RPC daemon has been
started and is running.
I get a UniSessionException that when toString()'d reports
"asjava.uniobjects.UniSessionException: The user name provided is
incorrect"
Of course it /is/ a valid user/password and the account path is valid
also. I can telnet to this host and get logged in just fine.
Here is the relevant code fragment:
String user="uvuser";
String passwd="uvpassword";
String host="localhost";
String acct="/home/uvuser";
UniString sRec=new UniString();
UniJava uJava=new UniJava();
try {
UniSession session=uJava.openSession();
session.setUserName(user);
session.setPassword(passwd);
session.setHostName(host);
session.setAccountPath(acct);
session.connect();
UniFile file=session.open("TEMP");
sRec=file.read("1");
} catch(UniSessionException use) {
System.out.println(use.toString());
}
Any advice is appreciated.
Bob Little
Graphik Dimensions, Ltd.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
The information contained in this email is strictly confidential and for the use of
the addressee only, unless otherwise indicated. If you are not the intended recipient,
please do not read, copy, use or disclose to others this message or any attachment.
Please also notify the sender by replying to this email or by telephone +44 (0)20 7896
0011 and then delete the email and any copies of it. Opinions, conclusions (etc.) that
do not relate to the official business of this company shall be understood as neither
given nor endorsed by it. IG Markets Limited and IG Index Plc are authorised and
regulated by the Financial Services Authority and, in Australia, by the Australian
Securities and Investments Commission.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/