This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes NoSuchAlgorithmException when reading HTTPS URL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "NoSuchAlgorithmException when reading HTTPS URL" Watch "NoSuchAlgorithmException when reading HTTPS URL" New topic
Author

NoSuchAlgorithmException when reading HTTPS URL

Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
Hi!

I am simply trying to read from an HTTPS URL. I am running java 1.5.

Here's what I write:



Here's the error I get:



Anybody has any idea how to fix this?
Eddie Vanda
Ranch Hand

Joined: Mar 18, 2003
Posts: 281
Hi Ivan,

I don't know much about this, but could you not use class HttpsURLConnection?

Ed


The nice thing about Standards is that there are so many to choose from!
Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
HTTPSConnection is subclass of URLConnection, and i am not in control of what url.openConnection() returns.
Eddie Vanda
Ranch Hand

Joined: Mar 18, 2003
Posts: 281
Hi, I just ran your code as you wrote it in 1.5 and got this output:



Content-type = text/html; charset=utf-8
Content-length = -1

<SCRIPT language="JavaScript">
<!--
document.c o o k i e = "IV_JCT=%2Flni%2Fbbip; path=/";
//-->
</SCRIPT>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Look Up a Contractor, Electrician or Plumber License Detail</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>header</title>
<!-- these variables need to be modified for your application -->

// deleted middle for space


</td></tr>
</TABLE>
</DIV>
<br><br><br>
<script type="text/javascript" language="javascript" src="templates/javascript/footer.js"></script>
<!-- InstanceEnd -->

</body>
</HTML>

Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
So what could this mean? I have some missing libraries or something?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: NoSuchAlgorithmException when reading HTTPS URL
 
Similar Threads
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
HTTPS over JSSE
executing linux commands through java socket
Unable to display the UI
Problems connecting to LDAP from Weblogic Server: BAD_CERTIFICATE error!