Hellow i am getting the following error message from an rmi implementation

INFO: ObjectInputFilter REJECTED: class java.util.Vector, array length: -1, nRefs: 6, depth: 2, bytes: 316, ex: n/a
Remote Error -java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.InvalidClassException: filter status: REJECTED

my code is
public class Main {
public static void main(String args[]) {
System.out.println("policy : "+System.getProperty("java.security.policy"));
System.out.println ("Loading temperature service");
// Only required for dynamic class loading
System.setProperty("java.security.policy", "file:/C:/no.policy");
System.out.println("policy : "+System.getProperty("java.security.policy"));
//System.setSecurityManager ( new RMISecurityManager() );
try {
TemperatureSensorServer sensor = new TemperatureSensorServer();
//Registry registry=LocateRegistry.createRegistry(8080);
String host = "localhost:2020";
//Registration format: //registry_hostname:port/service
String serviceUrl= "rmi://" + host + "/TemperatureSensor";
Naming.rebind(serviceUrl, sensor);
//Create a thread, and pass the sensor server. This will activate the run() method, and trigger regular temperature changes.
Thread thread = new Thread (sensor);
catch (RemoteException re) {
System.err.println ("Remote Error -" + re);
catch (Exception e) {
System.err.println ("Error -" + e);
can somebody tell me where is the problem;