wood burning stoves 2.0*
The moose likes Testing and the fly likes JavaScript Exception : ClassCastException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "JavaScript Exception : ClassCastException" Watch "JavaScript Exception : ClassCastException" New topic
Author

JavaScript Exception : ClassCastException

Schandha Ravi
Ranch Hand

Joined: Oct 20, 2007
Posts: 167
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.


Thanks & Regards, SK
SCJP 5.0, DB2 - 800, DB2 - 803, SCDJWS (On the way)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaScript Exception : ClassCastException
 
Similar Threads
Problems with EJB Local and using servlets - null pointers
Finding the java file of the compiled jsp file in Weblogic 9.2
HttpUnit-Net Connection Error
java.net.SocketException: Broken pipe
ZK Framework 5.0 classNotFoundException