Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

HTML/Post java.lang.classcastexception

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.)
 
What are you saying? I thought you said that Santa gave you that. And this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic