I omitted stating the version of the MySQL driver: it was MySQL® Connector/J 5.0.4.
And in the mean time I've found the cause of the NullPointerException. It is a
bug in MySQL® Connector/J. I have upgraded the Connector/J to the last version (5.0.5) and no NullPointerException occurs. The procedure is now called correctly:
Code:
[java] Hibernate: {call my_proc()}
[java] 10:53:53,651 DEBUG StringType:122 - returning 'TESTING' as column: permission_name
So it was not a Hibernate issue, sorry for having opened this topic here.