URLConnection to HttpURLConnection causes classcastException
Posted on 2002-04-30
I'm having a problem that happens when I run my applet from a cabfile with a test cert, but not when I reference class files residing in a directory. (IE 6)
I am using an HttpURLConnection to read and write to a web server. I create a URL object url to reference my page and then I execute HttpCnn = (HttpURLConnection)url.openConnection() to create the connection.
Works fine when the class files reside in a folder, but I get a java.lang.classCastException when I package the files in a cab file and sign with a test cert.
Any ideas about why this is happening?