Do I have to do something special in order to get an AS400 object to 
prompt for a username & password in a visual class?  When I call this, I 
get a null pointer exception on my nal820 object and it doesn't prompt me 
to enter a username & password.

package com.nal.as400

import com.ibm.as400.access.*;

public class NAL {
        private static AS400 nal820;

        public static void main(String args[]) {
                nal820 = new AS400("nal820.flora.nal.com");
                AS400Menu m = new AS400Menu(nal820);
                m.createSShell(nal820);
                m.sShell.open();
                while (!m.sShell.isDisposed()) {
                        if (!m.display.readAndDispatch()) {
                                m.display.sleep();
                        }
                }
                m.display.dispose();
        }
}


Shane Cessna 
iSeries Programmer
North American Lighting, Inc.
(618) 662-4483 x2776
shane_cessna@xxxxxxx

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.