aspose file tools*
The moose likes Web Services and the fly likes InvocationTargetException when transferring a custom class in inheritance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "InvocationTargetException when transferring a custom class in inheritance" Watch "InvocationTargetException when transferring a custom class in inheritance" New topic
Author

InvocationTargetException when transferring a custom class in inheritance

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi All,

There is simple POJO web service whose method takes a java object whose class extends another class. Here are the below details. When I try to invoke a web service java client program that uses AXIS 1.2 RC2 stubs I am getting an exception.






Why is this error occurring. Please suggest ?




Thanks & Regards,


RR Kumaran
SCJP 1.4
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

Ok - in what way are Dog and Animal related? The class Dog doesn't have access to any method called "getLaysEggs".
Or am I confused?


Please ignore post, I have no idea what I am talking about.
Shw Aga
Greenhorn

Joined: Mar 10, 2005
Posts: 1
I am getting the same stack trace, when I am trying to pass another POJO and also return a POJO from the soap service? Can you let me know if you resolved the problem and how?

Moreover, with me, if I deploy the service over tomcat it works, but it does not work (throw the exception) when I deploy it over Resin. I have no clue, what I should do about it.
Any response will be helpful.

Thanks.
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

Ok, I give up - what does POJO mean?
Yevgeniy Treyvus
Ranch Hand

Joined: Mar 09, 2005
Posts: 48
POJO = Plain Old Java Object


SCJP, SCJD
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
How does the TCP/IP trace looks like ? (the soap request and response)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: InvocationTargetException when transferring a custom class in inheritance