× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



From the readme, it appears that the last JTOpen version that will connect
to v5r1 is 4.7.  Version 4.8 and higher (the current version is 5.2) seem to
require at least v5r2.  From your stack traces, it looks like the format of
the message passed from JTOpen to the host server has changed.

1.  What version of JTOpen or the Toolbox are you running on the client?
2.  Do you see anything in DSPLOG at the time of the error regarding server
QZRCSRVS in subsystem QUSRWRK?

Gary 

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx 
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs
Sent: Friday, December 08, 2006 10:28 AM
To: java400-l@xxxxxxxxxxxx
Subject: Using ProfileTokenCredential on V5R1?

Folks:

Does anyone have experience using ProfileTokenCredential on V5R1?

As I understand the concept, the ProfileTokenCredential 
should allow me to get authenticated on a system using a 
connection ... pass the credential object to another 
application (via RMI, say) that uses the credential object to 
establish a separate connection and can operate as the 
originally authenticated user.

What I need to be able to do is, assuming a user is 
authenticated to the  AS400 in another JVM, pass some kind of 
authentication token to a server via RMI so that the server 
can perform operations on the same host under the users credentials.

My code is something like this ...

On the client:

After establishing a connection with a AS400 object, I do ...
ProfileTokenCredential pt = as400.getProfileToken();

I then pass the object pt to my other application via RMI.

On the server:

I establish a new AS400 object, with the passed in profile 
token object, by doing ...
AS400 as400 = new AS400(systemName, profileToken);

I then proceed to try and invoke a command with ...

CommandCall cc = new CommandCall(as400); cc.run("addlible devdmgwrk");

At which point I get the following exceptions ...

Fri Dec 08 12:23:02 CST 2006  Start server failed with return code:
00 01 00 0A
java.lang.Throwable
      at com.ibm.as400.access.Trace.log(Trace.java:1062)
      at com.ibm.as400.access.Trace.log(Trace.java:984)
      at
com.ibm.as400.access.AS400ImplRemote.getConnection(AS400ImplRe
mote.java:1059)
      at
com.ibm.as400.access.RemoteCommandImplRemote.open(RemoteComman
dImplRemote.java:139)
      at
com.ibm.as400.access.RemoteCommandImplRemote.runCommand(Remote
CommandImplRemote.java:184)
      at com.ibm.as400.access.CommandCall.run(CommandCall.java:579)
      at com.ibm.as400.access.CommandCall.run(CommandCall.java:610)
      at <my code>

Fri Dec 08 12:23:02 CST 2006  Establishing connection failed:
com.ibm.as400.access.ServerStartupException: Error in request data.
      at
com.ibm.as400.access.AS400ImplRemote.returnSecurityException(A
S400ImplRemote.java:1381)
      at
com.ibm.as400.access.AS400ImplRemote.getConnection(AS400ImplRe
mote.java:1060)
      at
com.ibm.as400.access.RemoteCommandImplRemote.open(RemoteComman
dImplRemote.java:139)
      at
com.ibm.as400.access.RemoteCommandImplRemote.runCommand(Remote
CommandImplRemote.java:184)
      at com.ibm.as400.access.CommandCall.run(CommandCall.java:579)
      at com.ibm.as400.access.CommandCall.run(CommandCall.java:610)
      at <my code>

Any suggestions?

Is ProfileTokenCredential not going to do what I need?

Thanks!

david
--
This is the Java Programming on and around the iSeries / 
AS400 (JAVA400-L) mailing list To post a message email: 
JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change 
list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, 
please take a moment to review the archives at 
http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.