Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

BeanUtil InstantiationException on web method response  RSS feed

 
craig mclellen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@XmlTransient seemed to do the trick, but please, if you know of any other better solution to this problem, would really appreciate your input.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!