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



Here you go. Since I didn't specify a password it threw the exception.

import java.beans.PropertyVetoException;
import java.io.IOException;

import com.ibm.as400.access.AS400;
import com.ibm.as400.access.AS400SecurityException;

public class FailedLogin {
public static void main(String[] args) throws PropertyVetoException,
AS400SecurityException, IOException {
AS400 system = new AS400("localhost");
system.setGuiAvailable(false);
system.setUserId("QUSER");
system.connectService(AS400.SIGNON);
}
}
--
James R. Perkins


On Wed, May 27, 2009 at 07:05, Smith, Mike <Mike_Smith@xxxxxxxxxxxxxxxx>wrote:

Rob,
I have been through profiles and haven't found anything that appears to
be a culprit. I have worked with both vendors and am currently working
with IBM to solve this. Without resolution so far.

I wanted to see if anybody had a simple java program that would throw
this error(com.ibm.as400.access.AS400SecurityException: Password is not
set. ) I thought while I was waiting for new developments, maybe having
a test program might help me determine the problem.



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Friday, May 22, 2009 10:38 AM
To: Midrange Systems Technical Discussion
Subject: Re: Help with java error

Anything funny in DSPMSG QSYSMSG? What no QSYSMSG? (Study that offline
for what it is.) Then anything in QSYSOPR or DSPLOG? Any chance a user
profile may have 'expired'? Did your security officer 'disable' a
profile not knowing what it is to see if anyone throws a hoot? I know
nothing about java but when we start getting security errors of stuff
that's been working that is often the cause.

DSPUSRPRF USRPRF(*ALL) OUTPUT(*OUTFILE) OUTFILE(QTEMP/LISTU) SELECT
UPUPRF, UPPWEX, UPSTAT FROM LISTU

Field Start End Attrib Text
UPUPRF 22 31 A10 User Profile Name
UPPWEX 65 68 A4 Password set expired by command
UPSTAT 779 788 A10 Status

User Password Set Status
Expired
DUMMY *YES *DISABLED
ROB *NO *ENABLED


Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From:
"Smith, Mike" <Mike_Smith@xxxxxxxxxxxxxxxx>
To:
"Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Date:
05/22/2009 10:27 AM
Subject:
Help with java error
Sent by:
midrange-l-bounces@xxxxxxxxxxxx



Hi,
I have 2 vendor products that both use Java and both have started
receiving the following error in the last week or so.
com.ibm.as400.access.AS400SecurityException: Password is not set.
at java.lang.Throwable.<init>(Throwable.java:195)
at java.lang.Exception.<init>(Exception.java:41)

I have been working with 1 of the vendors to resolve, but we have come
up with the answer yet. I just discovered the 2nd issue a few minutes
ago.
I've gone
here(http://www-1.ibm.com/servers/eserver/iseries/toolbox/faq.htm#faqT)
but I just don't know enough about java and classpaths to get this
resolved.

Can someone tell me what and where to look at to troubleshoot this.

I'm on V5R4. I also have 5722JV1 Java Developer Kit 5.0 installed.

Thanks

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.