Error might be the cause of mis-managed transaction context.
Read returns null/empty and runtime invocation throws InvocationTargetException.
Check that you have correct scope for TransactionManagere/UserTransaction begin/comit in same thread of execution.