File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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