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 Applets and the fly likes HTML/Post java.lang.classcastexception 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 » Applets
Reply Bookmark "HTML/Post java.lang.classcastexception" Watch "HTML/Post java.lang.classcastexception" New topic
Author

HTML/Post java.lang.classcastexception

Cole Ragland
Greenhorn

Joined: Jul 08, 2005
Posts: 1
Recieving classcastexception with following applet source. This works on command line (java -cp . myclass.class and desktop (batch file). Any help would be appreciated.

Cole Ragland


[EJFH: Added CODE tags ]
[ July 08, 2005: Message edited by: Ernest Friedman-Hill ]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24057
    
  13

Hi,

Welcome to JavaRanch!

Well, this is an awful lot of code to digest; you could make things loads easier on us by letting us know which line the stack trace points to, and also telling us the message from the ClassCastException -- it tells you the actual class of the miscast object. I don't actually see any casts here, although there's so much code I may have missed one.

Finally, I'm assuming you know this is only going to work in a digitally signed applet with a properly configured security policy -- all this file access and factory-setting is forbidden otherwise (unless you're loading it locally using appletviewer.)


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: HTML/Post java.lang.classcastexception
 
Similar Threads
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
Plain socket to SSL
How to implement certificate/security into web service client
KeyStore
regarding cacerts from JAVA_HOME\jre\lib\security