• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
  • Carey Brown
  • salvin francis
  • Claude Moore

JavaScript Exception : ClassCastException  RSS feed

Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I'm currently working on HttpUnit (As HtmlUnit is not an option at this time) for testing a vast web application which is composed of html, jsp , jsf and asp pages. I wrote a class which would randomly load all the testcases (Which are based on HttpUnit) and run them. This is working fine as long as I run these as a stand alone application.

But, there is an attempt being made to create a web interface, where in the request to run all these test suites come from servlet. So what did I do is just o call the stand alone class which I previously used to run the test cases from the servlet. But now, I'm getting a wierd exception. I tried to google about this, but could not find any appealing information.

Moreover, I tried to debug the application and found that at one point as mentioned below, the exception is throw. COde snippet is provided for observation

The part which is in bold and italics is creating the problem.

Exception is as given below:

Can some one Let me know the reason behind this.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!