Since 1.520, Jenkins requires Java 6 or later, one of the possibility of this error is that you dont have java 6 or later on slave/remote.
Resolution is to update your remote machine with java 6 or later or set correct environment variable which SSH uses while it logs in into slave machine.