I was using UniVerse PE, but now I'm trying UniData 6.01, downloaded from IBM's website. The product grid says 7.2 is ok.
I put together a clean Linux box with RH7.2 and UniData 6.01, and I'm once again trying to get a UniObjects connection working. Previously (with UniVerse) I was getting a "user name provided is incorrect" error.
Here's the java code used to connect with: String user="uduser"; String passwd="udpass"; String host="192.168.0.250"; String acct="/home/uduser"; UniDynArray rec=new UniDynArray(); UniString sRec=new UniString();
try {
UniSession session=new UniSession();
session.setUserName(user);
session.setPassword(passwd);
session.setHostName(host);
session.setAccountPath(acct);
session.connect();Now I'm getting a "asjava.uniobjects.UniSessionException: No RPC Connection active." message.
So I look to see if port 31438 is open: # netstat -a | grep tcp - - - - - tcp 0 0 *:uvrpc *:* LISTEN - - - - - Yup.
So I check to see if UniData is running:
showud
USER PID TIME COMMAND
root 998 0:00 /usr/ud60/cleanupd -m 10 -t 20
root 993 0:00 /usr/ud60/sbcs -r
root 987 0:00 /usr/ud60/smm -t 60
root 1013 0:00 /usr/unishared/unirpc/unirpcdSure looks like it.
So I stop unirpcd and restart it in debug mode: unirpcd -d9 > /tmp/rpc.out 2>&1 & then tail -f /tmp/rpc.out
Output:
RPCPID=2805 - 14:27:10 - uvrpc_debugflag=9 (Debugging level)
RPCPID=2805 - 14:27:10 - In rpc_init()
RPCPID=2805 - 14:27:58 - Accepted socket is from (IP number) 0x200a8c0
RPCPID=2805 - 14:27:58 - In read packet
RPCPID=2805 - 14:27:58 - In read message
RPCPID=2805 - 14:27:58 - before the select
RPCPID=2805 - 14:27:58 - after the select rcnt = 1
RPCPID=2805 - 14:27:58 - before the recv
RPCPID=2805 - 14:27:58 - after the recv nread = 24
RPCPID=2805 - 14:27:58 - Read resp: read of header ok
RPCPID=2805 - 14:27:58 - going to read 16 more chars
RPCPID=2805 - 14:27:58 - before the select
RPCPID=2805 - 14:27:58 - after the select rcnt = 1
RPCPID=2805 - 14:27:58 - before the recv
RPCPID=2805 - 14:27:58 - after the recv nread = 16
RPCPID=2805 - 14:27:58 - message_length=16
VERSION NUMBER SEQNO
0x6c01 0x 0
MESSAGE LENGTH
0x 16
MESSAGE Key
0x 0
HIGH VERSION COMPRESSION ENCRYPTION
0x 2 0x 0 0x 0
NW RETURN CODE
0x 0
NUM ARGS PROC NAME LEN(PROC NAME)
0x 1 0()
START OF ARG ARRAY DATA
Element 0 Length type
0x 5000000 0x 2000000
ARG DATA
RPCPID=2805 - 14:27:58 - In unpack packet
RPCPID=2805 - 14:27:58 - length of arg 0 = 5
RPCPID=2805 - 14:27:58 - type of arg 0 = 2
RPCPID=2805 - 14:27:58 - char arg(0x 80bcd50)=defcs
RPCPID=2805 - 14:27:58 - argcount = 1(1: pre-6/10 client,2: SSL client)
RPCPID=2805 - 14:27:58 - looking for service defcs
RPCPID=2805 - 14:27:58 - Found service=defcs
RPCPID=2805 - 14:27:58 - Checking host: *
RPCPID=2805 - 14:27:58 - accept: forking and execing /home/rlittle/udapi_server
RPCPID=2805 - 14:27:58 - In parent child PID=2811
RPCPID=2811 - 14:27:58 - accept: exec failed errno=2
RPCPID=2811 - 14:27:58 - In send packet
RPCPID=2811 - 14:27:58 - In build packet
RPCPID=2811 - 14:27:58 - thissize set to 32
RPCPID=2811 - 14:27:58 - thissize set to 32
RPCPID=2811 - 14:27:58 - thissize set to 36
RPCPID=2811 - 14:27:58 - message_length=12
VERSION NUMBER SEQNO
0x 0 0x 0
MESSAGE LENGTH
0x 0
MESSAGE Key
0x 0
HIGH VERSION COMPRESSION ENCRYPTION
0x 0 0x 0 0x 0
NW RETURN CODE
0x 0
NUM ARGS PROC NAME LEN(PROC NAME)
0x 0 0()
START OF ARG ARRAY DATA
Element 0 Length type
0x 1000000 0x 0
ARG DATA
RPCPID=2811 - 14:27:58 - message_length=12
VERSION NUMBER SEQNO
0x6c02 0x 1
MESSAGE LENGTH
0x 12
MESSAGE Key
0x 0
HIGH VERSION COMPRESSION ENCRYPTION
0x 2 0x 0 0x 0
NW RETURN CODE
0x 0
NUM ARGS PROC NAME LEN(PROC NAME)
0x 1 0()
START OF ARG ARRAY DATA
Element 0 Length type
0x 1000000 0x 0
ARG DATA
VERSION NUMBER SEQNO
0x 100 0x 26c
MESSAGE LENGTH
0x201326592
MESSAGE Key
0x 0
HIGH VERSION COMPRESSION ENCRYPTION
0x 0 0x 0 0x 0
NW RETURN CODE
0x 0
NUM ARGS PROC NAME LEN(PROC NAME)
0x 0 100()
START OF ARG ARRAY DATA
Element 0 Length type
0x 1000000 0x 0
ARG DATA
RPCPID=2811 - 14:27:58 - In write packet
RPCPID=2805 - 14:27:58 - signal nozombie caught
RPCPID=2805 - 14:27:58 - waited on child 2811
RPCPID=2805 - 14:27:58 - signal nozombie reset
RPCPID=2805 - 14:27:58 - Accepted socket is from (IP number) 0x200a8c0
RPCPID=2805 - 14:27:58 - In read packet
RPCPID=2805 - 14:27:58 - In read message
RPCPID=2805 - 14:27:58 - before the select
RPCPID=2805 - 14:27:58 - after the select rcnt = 1
RPCPID=2805 - 14:27:58 - before the recv
RPCPID=2805 - 14:27:58 - after the recv nread = 24
RPCPID=2805 - 14:27:58 - Read resp: read of header ok
RPCPID=2805 - 14:27:58 - going to read 16 more chars
RPCPID=2805 - 14:27:58 - before the select
RPCPID=2805 - 14:27:58 - after the select rcnt = 1
RPCPID=2805 - 14:27:58 - before the recv
RPCPID=2805 - 14:27:58 - after the recv nread = 16
RPCPID=2805 - 14:27:58 - message_length=16
VERSION NUMBER SEQNO
0x6c01 0x 0
MESSAGE LENGTH
0x 16
MESSAGE Key
0x 0
HIGH VERSION COMPRESSION ENCRYPTION
0x 2 0x 0 0x 0
NW RETURN CODE
0x 0
NUM ARGS PROC NAME LEN(PROC NAME)
0x 1 0()
START OF ARG ARRAY DATA
Element 0 Length type
0x 4000000 0x 2000000
ARG DATA
RPCPID=2805 - 14:27:58 - In unpack packet
RPCPID=2805 - 14:27:58 - length of arg 0 = 4
RPCPID=2805 - 14:27:58 - type of arg 0 = 2
RPCPID=2805 - 14:27:58 - char arg(0x 80bcd50)=uvcs
RPCPID=2805 - 14:27:58 - argcount = 1(1: pre-6/10 client,2: SSL client)
RPCPID=2805 - 14:27:58 - looking for service uvcs
RPCPID=2805 - 14:27:58 - did not find service
RPCPID=2805 - 14:27:58 - In send packet
RPCPID=2805 - 14:27:58 - In build packet
RPCPID=2805 - 14:27:58 - thissize set to 32
RPCPID=2805 - 14:27:58 - thissize set to 32
RPCPID=2805 - 14:27:58 - thissize set to 36
RPCPID=2805 - 14:27:58 - message_length=12
VERSION NUMBER SEQNO
0x 0 0x 0
MESSAGE LENGTH
0x 0
MESSAGE Key
0x 0
HIGH VERSION COMPRESSION ENCRYPTION
0x 0 0x 0 0x 0
NW RETURN CODE
0x 0
NUM ARGS PROC NAME LEN(PROC NAME)
0x 0 0()
START OF ARG ARRAY DATA
Element 0 Length type
0x 1000000 0x 0
ARG DATA
RPCPID=2805 - 14:27:58 - message_length=12
VERSION NUMBER SEQNO
0x6c02 0x 2
MESSAGE LENGTH
0x 12
MESSAGE Key
0x 0
HIGH VERSION COMPRESSION ENCRYPTION
0x 2 0x 0 0x 0
NW RETURN CODE
0x 0
NUM ARGS PROC NAME LEN(PROC NAME)
0x 1 0()
START OF ARG ARRAY DATA
Element 0 Length type
0x 1000000 0x 0
ARG DATA
VERSION NUMBER SEQNO
0x 200 0x 26c
MESSAGE LENGTH
0x201326592
MESSAGE Key
0x 0
HIGH VERSION COMPRESSION ENCRYPTION
0x 0 0x 0 0x 0
NW RETURN CODE
0x 0
NUM ARGS PROC NAME LEN(PROC NAME)
0x 0 100()
START OF ARG ARRAY DATA
Element 0 Length type
0x 1000000 0x 0
ARG DATA
RPCPID=2805 - 14:27:58 - In write packet
RPCPID=2805 - 14:27:58 - accept failed
I can telnet in as "uduser" and get in. I can telnet to port 31438 and get the expected response:
telnet 192.168.0.250 31438 Trying 192.168.0.250... Connected to 192.168.0.250. Escape character is '^]'.
I don't know what to check next. I'm not firewalling this box, and I am apparently using MD5 password encryption. I have not been able to find how to use DES encryption on a RH box.
Any ideas?
Thanks, Bob Little Graphik Dimensions, Ltd. High Point, NC. ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
