fix in jinterface: better exception messages