bindings/java: callback/events usage has changed. For the time being, send an exception.