Win a copy of Spring Boot in Practice this week in the Spring forum!

Ashwin B Philar

Greenhorn
+ Follow
since Jun 19, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ashwin B Philar

Hi!!
I have a client application that communicates with an HTTPS server. Recently, it has stared giving the following error maybe once a week:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
If I run the application again, it runs without any problems.
How should I attack this problem?
Regards,
Ashwin
Hello everyone,
I have a small program that parses text files and update an access database, the number of records in the file do not exceed 2000. But the process is really slow. I parse each line, store the field values into an array, pass that array to another object which updates the database....
Is there a better and faster method to achieve this?
Please comment.
Regards,
Ashwin Philar
19 years ago
Hey Dan,
Thanks a lot!! That should help me build my confidence.
Regards,
Ashwin Philar
Thanks Barry,
But this book does not have extensive questions coverage...
I need something that'll contain lotsa exam like questions....
Thanks again,
Ashwin
Thanks guys!!
Regards,
Ashwin Philar
Hi!! Friends,
I am planning to give my SCJP 2 1.4 exam. I have hitherto studied from the Complete Java 2 Certification Study Guide.
Can you please guide me as to which book I should use next to strengthen my concepts.
Thanks,
Ashwin Philar
Hi!!
Has anybody given SCJP 2 Platform 1.4 Exam ? IS it correct that the exam objectives have changed and AWT and IO do not appear in the new test.
Is there any book that includes assertions and other things added to this exam?
Thanks
Ashwin Philar
Rene,
Thanks for the guidance. But, shouldn't lineRead() just read a line with the newline character, why is it excluding that new line character when reading, I completele fail to understand?
Thanks again for your help.
Regards,
Ashwin Philar
20 years ago
Hello!!
I have a java program that reads the content of a file located on a remote UNIX box and copies the content to a local txt file.
The problem is that the entire file comes in as a single line.
I am using the following to read the file
in = new BufferedReader (new InputStreamReader (content));
while ((inputLine = in.readLine()) != null)
{
out.write(inputLine);
}//end while
The actual file contains multiple lines, but the locally created file contains all data in just one line.
Server is UNIX and Client is Windows 2000 Application is in Java
Eagerly awaiting help
Regards,
Ashwin Philar
20 years ago
Hi!!
I have j2sdk1.4.0_01 installed on my machine.
I am getting the following error:
"Exception in thread "main" java.io.IOException: Server returned HTTP response co
de: 401 for URL: https://X:Y@ABC/cgi-bin/x.cgi"
I have used the sample program, URLReader from Sun's site. It works fine with sites that do not ask for authentication, but fails for site that asks for authentication.
I am using correct user name and password as I can directly access the page through a browser.
Please let me know what can be amiss.
Thanks in advance.
Ashwin
Hi!!
This is the first time I am trying to access an HTTPS site using Java.
I installed the latest java sdk1.4.0_01 on my machine.
I downloaded the URLReader.java file from Sun's site and tried to run it, but I am getting the following error:

Exception in thread "main" javax.net.ssl.SSLHandshakeException: Couldn't find trusted certificate
This is the code:
import java.net.*;
import java.io.*;
public class URLReader
{
public static void main(String[] args) throws Exception
{
System.setProperty("https.proxyHost","webproxy");
System.setProperty("https.proxyPort","8080");
URL verisign = new URL("https://www.verisign.com/");
BufferedReader in = new BufferedReader(new
InputStreamReader(verisign.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}
}
Please let me know why I am getting this error.
Thanks
Ashwin