× 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.



As I recall, in order to swap profiles, you must have use authority to the 
profile that you are swapping to....  Is it possible that only another ALLOBJ 
user has the necessary access rights to the swap profile?  

-----Original Message-----
From: rpg400-l-bounces+edelong=sallybeauty.com@xxxxxxxxxxxx
[mailto:rpg400-l-bounces+edelong=sallybeauty.com@xxxxxxxxxxxx]On Behalf
Of Joe Pluta
Sent: Wednesday, February 07, 2007 11:38 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: More on the Java call error


I'm getting a little lost in the various profiles and authorities here,
Mike, but just a side point: as far as I understand, Java is not the only
thing picky about authorities.  I'm pretty sure the IFS in general doesn't
support adopted authorities, either.

In any case, though, the symptoms indicate that the profile swap is not
occurring.  It works when you run with a user profile with *ALLOBJ, but not
when you with a profile without *ALLOBJ.  That tells me that the profile
swap in the constructor is not really working.

Joe


From: Mike Silvers

Wow -- this is getting more interesting.

In the constructor, the program switches to another user profile with
*allobj authority.  It also creates log files and redirects sysout and
syserr to these new log files.  the creation of these log files is where
the problem occurs.

When I run the program with a user profile having *allobj authority, it
works.

When I run a program with lesser authority, the user profile switches
during the execution and the error occurs when creating name of the log
files in a stringbuffer.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.