raise error for java, not server...