Skip to content

JsonObjectImpl cannot be cast to javax.json.JsonArray #4

@david-guzman

Description

@david-guzman

The field totalsByDate contains a JSON array that cannot be persisted through JPA

Caused by: java.lang.ClassCastException: org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl cannot be cast to javax.json.JsonArray
        at org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getJsonArray(JsonObjectBuilderImpl.java:237)
        at ucl.cs.fmedia.takeout.TakeoutBean.persistEntry(TakeoutBean.java:35)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions