New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded Not Working: NoSuchMethodError getParameters() #696

Closed
VincentMolinie opened this Issue Oct 4, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@VincentMolinie

VincentMolinie commented Oct 4, 2017

Hi,

I think I've tried everything but I can't make the embedded annotation work.
My problem is that I have a json like this:
{ ad: {id: "myId", wishes: {brand: "Hehe"}}}
SO I'm using jackson with requery to deserialize it but it always crash.
The brands could be inline in the model, but the json cannot change.

@Entity
public abstract class AbstractAd implements Persistable, Parcelable {
    @Key
    String id;

    @Embedded
    AdWishes wishes;
}
@Embedded
public class AdWishes {
    @JsonProperty("brand")
    @Column
    String brands;
}

And it gives me:

No virtual method getParameters()[Ljava/lang/reflect/Parameter; in class Ljava/lang/reflect/Method; or its super classes (declaration of 'java.lang.reflect.Method' appears in /system/framework/core-oj.jar)
    io.requery.jackson.EntityBeanDeserializer.deserializeFromObjectUsingNonDefault(EntityBeanDeserializer.java:106)
    com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:314)
    io.requery.jackson.EntityBeanDeserializer.deserializeFromObject(EntityBeanDeserializer.java:49)
    com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:148)

@npurushe npurushe added the bug label Oct 5, 2017

@npurushe npurushe closed this in 00e72c6 Oct 5, 2017

@npurushe

This comment has been minimized.

Contributor

npurushe commented Oct 7, 2017

Thanks for reporting will be fixed in the next update!

@npurushe

This comment has been minimized.

Contributor

npurushe commented Oct 7, 2017

1.4.1 has this fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment