Skip to content
Advertisement

ArrayStoreException while creating Morphia Datastore

I’m trying to create a MongoDB database using Morphia, however when I create the Morphia Datastore, I get the following error:

JavaScript

I’ve researched the cause of this exception and I understood that this is an issue concerning arrays, but I’m not using any arrays. This error is happening when I’m creating the Datastore. Here is some of my code.

JavaScript

All of this code is in a Database class. I am not sure what I am doing wrong and why, in particular, I am getting an ArrayStoreException. This error has been bugging me for quite some time now, all help is appreciated!

Advertisement

Answer

The last time I saw this happen was due to having conflicting versions of either Morphia or the driver. I’d start looking there.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement