Re: Message Agent (error while connecting to ps appserver)


[ Follow Ups ] [ Post Followup ] [ Message Board ]

Posted by [IP Address: 129.65.184.18] 'Greg Weir' on September 06, 2001 at 15:49:55 EST:

In Reply to: Message Agent (error while connecting to ps appserver) posted by [IP Address: 129.65.184.18] 'Dayanand' on August 23, 2001 at 20:56:14 EST:

Try adding this to your code:

private static final String propertiesFile =
"address for PeopleSoft/pstools.properties";

MagResult res = magClient.loadPSToolsProperties(propertiesFile);

if (res.getSucceeded() == false) {
System.out.println("Error loading PS Tools Properties ");
}

Before the line: magClient.connect("PSServer:9000","PS", "PS");

: Hi

: we are using message agent to connect to ps from our app. the code(given below) is not able to connect to the ps.
: ............................................................
: import psft.pt75.beans.ma.*;
: public class MessageAgent
: {
: public static void main(String[] args)
: {
: MagClient magClient = new MagClient();
: MagResult res = magClient.connect("PSServer:9000","PS", "PS");
: ErrorItem[] errItems = res.getErrorItems();
: for (int i=0; i: {
: System.out.println("ERROR "+errItems[i].getText());
: }
: magClient.disconnect();
: }
: }
: .............................................................
: when we run that code it's giving the following error.
: ......................................................
: java.lang.NullPointerException: PSProperties not
: loaded from file
: ERROR bea.jolt.SessionException: Cannot connect to
: //PSServer:9000
: Reason: NwHdlr: Network Error: chkauth:
: J_CHECKAUTH FAILED
: .......................................................
: this is the message in the TUXLOG file:
: ......................................................
: 121050.PSServer!JSL.268: JOLT_CAT:1188: ERROR:
: Unrecognized message format, release 13
: .....................................................

: JSL is up and listening at port 9000. when I checked for the above JOLT error message at bea site it says
: ....................................................
: 1516 ERROR Unrecognized message format, release %1d.
: Description
: BEA Jolt protocol failure.
: Action
: Make sure the client classes are at the appropriate version level.
: ....................................................
: but I have installed Tuxedo and JOLT at the same time.. infact they are part of the same CD.

: can some one help me out of this problem...

: thanks in advance
: Dayanand Reddy




Follow Ups:



Post a Followup


Name:
E-Mail:
Subject:

Message:


[ Follow Ups ] [ Post Followup ] [ Message Board ]