Reputation: 1
So basically I'm trying to create a settings manager for users. Once I save the class in MongoDB and then redirect to another sector it throws an error similar to this - http://hastebin.com/isenakibaj.java (Error). I'm using the class loader from the Plugin class. This works fine on the server with the class 'HubSettings', that extends 'SettingsEntry', but when I change server to one without the HubSettings class as it has no intention to use it (different build) it doesn't like it.
Upvotes: 0
Views: 316
Reputation: 6243
Morphia stores the class type as part of the document. When you try to load that document, morphia tries to load that class when loading documents from the database. you'll either need to tweak the data in your database or make that class avaiable at runtime.
Upvotes: 0