Pranabesh Sinha

Greenhorn
+ Follow
since Aug 10, 2009
Merit badge: grant badges
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 Pranabesh Sinha

Hi
I made a mistake in the earlier post, the error occurs due to line 33 not 29.

Thanks
13 years ago
Hi,
Here is a code that I copied from the web



Because of line 33 I get this error


Now the reason for this error is of course that the certificate sent by my server is not already in my list of trusted certificates.
My question is how to get the certificate into the trusted list.

Thanks
13 years ago
Hi
I want to download a file from a server over https, I get the following error


javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)

I have the URL of the file and I use URLConnection.

Thanks
13 years ago
@Paul Clapman -- My mistake. I meant that I want to pack my code maybe as an exe for windows or dmg for mac (I have already tried the obvious executable jar)

@Campbell Ritchie -- Thanks for the link. I have been looking at Java web start, but for my code to really work well, I'd like my code to run as a windows service and whatever the equivalent of that in other OS are. But as far as I have understood applications based on Java web start need some kind of user intervention to start (if say the pc was shutdown)
13 years ago
Hi
I have a very basic question.
I have a java application that currently starts via a main program. I want to distribute it to clients so that the application runs on all platforms continuously in the background.
I saw java service wrapper, but I couldn't figure out how to make a distributable file out of it.
I guess java web start would be another solution, but then again how do I make my application run in the background non stop (if it stops then I'd like the OS to restart it....much like a service).
Spent a whole day googling for the answer, but can't find a viable solution.

Thanks
Prnbs
13 years ago