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


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: BeanUtil InstantiationException on web method response