aspose file tools*
The moose likes Web Services and the fly likes Problem with ClassCastException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem with ClassCastException" Watch "Problem with ClassCastException" New topic
Author

Problem with ClassCastException

Sasha McGrath
Greenhorn

Joined: Jun 01, 2007
Posts: 10
I have a web service application written in Java and I am trying to do an echo test with another computer to see if there is connectivity. My application sends out SOAP messages and everytime I do an echo test with another computer, I get a ClassCastException. What causes this error and how can I fix it?
Kamal Mettananda
Ranch Hand

Joined: Oct 25, 2005
Posts: 51

Is this happening only when you try from a different computer? What happens if you try to call the web service from within the same machine which has the web service?

Also in which side do you get the exception, web service side or the calling client side?


Kamal Mettananda - SCJP 1.4 (98%)
Sasha McGrath
Greenhorn

Joined: Jun 01, 2007
Posts: 10

Is this happening only when you try from a different computer?


I have only tried one computer.


What happens if you try to call the web service from within the same machine which has the web service?


If I try to call the web service from within the same machine which has the web service, then I do not get any errors. The echo test is successful.


Also in which side do you get the exception, web service side or the calling client side?


The web service side.
Kamal Mettananda
Ranch Hand

Joined: Oct 25, 2005
Posts: 51

OK. So your web service works when your client is in the same machine, but gives an error when the client is in a different machine.

I guess it would be better if you paste the stack trace of the exception.
[ August 12, 2008: Message edited by: Kamal Mettananda ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problem with ClassCastException