The procedure call at the end produces this error in Dbeaver with auto commit active (but it can be used in any other JDBC client application): org.jkiss.dbeaver ...
OUCH! I'm sorry, but you have encountered a bug or missing nice display of an error message in the application. If you can't guess the problem from the error message ...