Skip to content

NPE when mapping @ManyToMany #19

@rbygrave

Description

@rbygrave

From google group post:

I use ebean framework with L3 cache Elasticsearch (ebean-elastic). I need caching @manytomany property. I used @docstore(doc="id,name") annotation, but select throws null pointer exception. Docs describe mapping only @onetomany or @manytoone annotations.

Question: How to use mapping @manytomany annotations ebean with elasticsearch L3 cache?

I attached stack trace:

java.lang.NullPointerException: null
at com.fasterxml.jackson.core.json.WriterBasedJsonGenerator._writeString(WriterBasedJsonGenerator.java:908)
at com.fasterxml.jackson.core.json.WriterBasedJsonGenerator._writeFieldName(WriterBasedJsonGenerator.java:163)
at com.fasterxml.jackson.core.json.WriterBasedJsonGenerator.writeFieldName(WriterBasedJsonGenerator.java:128)
at com.fasterxml.jackson.core.JsonGenerator.writeArrayFieldStart(JsonGenerator.java:1629)
at com.avaje.ebeanservice.elastic.querywriter.ElasticDocQueryContext.writeIn(ElasticDocQueryContext.java:441)
at com.avaje.ebeaninternal.server.expression.InExpression.writeDocQuery(InExpression.java:51)
at com.avaje.ebeaninternal.server.expression.DefaultExpressionList.writeDocQuery(DefaultExpressionList.java:170)
at com.avaje.ebeanservice.elastic.querywriter.ElasticDocQueryContext.writeFilter(ElasticDocQueryContext.java:134)
at com.avaje.ebeanservice.elastic.querywriter.ElasticDocQueryContext.writeElastic(ElasticDocQueryContext.java:112)
at com.avaje.ebeanservice.elastic.querywriter.ElasticDocQueryContext.asElasticQuery(ElasticDocQueryContext.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions