The Problem:
I try to store an object and get a java.lang.ClassNotFoundException: Error while creating (reflection) class caused by ClassNotFoundException
Situation:
I call some basic inserts and a select all query in a testfunction. If I call this testfunction in a simple main function everything works as aspected. If I call it in a Play! one framework controller it does not.
My guess:
It looks like this database cannot handle enhanced classes?
The problem here is, that the Play! one framework uses bytexode-enhancement, it replaces changed classes at runtime and has other nice toys. It uses an own ClassLoader for that.
The Problem:
I try to store an object and get a java.lang.ClassNotFoundException: Error while creating (reflection) class caused by ClassNotFoundException
Situation:
I call some basic inserts and a select all query in a testfunction. If I call this testfunction in a simple main function everything works as aspected. If I call it in a Play! one framework controller it does not.
My guess:
It looks like this database cannot handle enhanced classes?
Solved
I solved I myself this way:
The problem beginns here:
It tries to get the Class from the current ClassLoader
The problem here is, that the Play! one framework uses bytexode-enhancement, it replaces changed classes at runtime and has other nice toys. It uses an own ClassLoader for that.
The line
solved my problem. I begin to like this fast database :D