yubrajpokharel / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 0 forks source link

org.brickred.socialauth.Permission should have default constructor #294

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. serialize an AccessGrant object via Jackson
2. deserialize it via: AccessGrant grant = new 
ObjectMapper().readValue(accessgrantjson, AccessGrant.class);
3. get an error of 
http://stackoverflow.com/questions/7625783/jsonmappingexception-no-suitable-cons
tructor-found-for-type-simple-type-class

What is the expected output? What do you see instead?
The Permission class doesn't have a default constructor so Jackson can't 
deserialize it even though the class is serializable.

What version of the product are you using? On what operating system?
org.brickred:socialauth:4.2 on Windows.

Please provide any additional information below.
More info here: 
http://stackoverflow.com/questions/7625783/jsonmappingexception-no-suitable-cons
tructor-found-for-type-simple-type-class

Original issue reported on code.google.com by kenk...@gmail.com on 12 Sep 2013 at 3:04

GoogleCodeExporter commented 8 years ago
Required changes has been done and code is committed on GitHub.
It will be available in next release.

You can download the code from following location.
https://github.com/3pillarlabs/socialauth

Regards
Tarun

Original comment by tarun.na...@3pillarglobal.com on 27 Sep 2013 at 2:43