@Override
	public void service(HttpServletRequest request, HttpServletResponse response)  throws ServletException, IOException{
		Mission mission = null;
		//如果获取输出对象有问题,不要往下运行了
		OutputStream os = response.getOutputStream();
		ObjectOutputStream oos = new ObjectOutputStream(os);
		InputStream is = request.getInputStream();	
		ObjectInputStream ois = new ObjectInputStream(is);				
		try{		  
		  Object object = ois.readObject();    		
    	  mission = (Mission)object;
		  Instruction instruction = mission.getInstruction();
		  Option[] requestOptions = mission.getRequestOptions();
		  Option[] responseOptions = process(instruction,requestOptions);
		  mission.setResponseOptions(responseOptions);
		  oos.writeObject(mission);
		  oos.flush();
		}catch(ClassNotFoundException cnfe){
			returnInvalidParameterMission(oos,mission);
		}catch(ClassCastException cce){
			returnInvalidParameterMission(oos,mission);
	    }finally{						
		   try{
			  if(null != ois)
			    ois.close();
		   }catch(Exception e1){}
		   try{
			 if(null != oos)
		       oos.close();
		   }catch(Exception e2){}
		}
	}