I don't have these java advanced imaging packages,but your problem is a casting exception.it may be because of one of the followings:1) invalid arguments2) version mistamtch between client and server