Hi,
client - applet
server- rmiserver
webserver - apache web server
In the apache web server httpd.conf file i commented the following
#AuthName "Secure Admin Server"
#AuthType Basic
#AuthUserFile conf/passwd.file
#require valid-user
then i start the web server, rmi server.
I am using properties class to get certain values contained in abc.file.
I am able to get the values by using the following
URL url = new URL(getCodeBase(), aniFtpDefsPropFileName);
InputStream fileDefs = url.openStream();
Properties propDefs = new Properties();
propDefs.load(fileDefs);
fileDefs.close();
String strDir = propDefs.getProperty("SCRIPT_DIR");
Now i shut down the web server and uncomment the following
AuthName "Secure Admin Server"
AuthType Basic
AuthUserFile conf/passwd.file
require valid-user
and restart the web server, which expects userid and password. After
passing userid and password the stream returned to InputStream seems to
be null and when i try to get the above value StrDir it throws the
following expection...
java.lang.NullPointerException ------- this is because i am using the
string which return null.
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at
sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown
Source)
at
sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown
Source)
at
sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown
Source)
at java.net.URL.openStream(Unknown Source)
at AniFtp.init(AniFtp.java:767)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Error! file not found: AniFtp.properties, AniFtp_defaults.properties
Could any one suggest what to do..........
raviprakash
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing