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

BeanUtil InstantiationException on web method response

craig mclellen
Greenhorn

Joined: Feb 19, 2007
Posts: 9
Hi,
I'm having trouble in my web service client I've written, and although TCPMon shows the correct request and response going to/coming from the web service, it seems an InstantiationException exception occurs on deserializing the soap response. The class it's trying to deserialize implements the org.acegisecurity.userdetails.UserDetails class which has a property org.acegisecurity.GrantedAuthority[] getAuthorities which seems to be where the problem is. The base exception is "java.lang.InstantiationException: org.acegisecurity.GrantedAuthority". Is there some annotation I can use on my class to ignore this property on serialization/deserialization? Or does anyone have a solution to this problem?
Thanks and much appreciated,
craig mclellen
Greenhorn

Joined: Feb 19, 2007
Posts: 9
@XmlTransient seemed to do the trick, but please, if you know of any other better solution to this problem, would really appreciate your input.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BeanUtil InstantiationException on web method response
 
Similar Threads
exposing an interface
class loading and exceptions
InstantiationException on Axis2 deserialization in DefaultObjectSupplier
Axis 1.4 Error plz help Connect Exception
InstantiationException in WS client for abstract complexType with jax-ws 2.0