log.error(e);
System.err.println(e);
    public void start() throws Exception {	Vector   mbrs;	Object   obj;	View     view;	Address  receiver=null;	channel=new JChannel(props);	// if(mode == 1) channel.setOpt(Channel.LOCAL, Boolean.FALSE);	channel.connect(groupname);	local_addr=channel.getLocalAddress();	if(mode == 1) {	    // waiting for receiver	    mbrs=channel.getView().getMembers();	    if(mbrs.size() < 2) {		// loop until a new member has joined		System.out.println("Waiting for receiver to join group");		while(true) {		    obj=channel.receive(0);		    if(obj instanceof View) {			view=(View)obj;			mbrs=view.getMembers();			if(mbrs.size() >= 2)			    break;		    }		}	    }	    for(int i=0; i < mbrs.size(); i++) {		if(mbrs.elementAt(i).equals(local_addr))		    continue;		else {		    receiver=(Address)mbrs.elementAt(i);		    break;		}	    }	    System.out.println("Receiver joined group: I'm starting to send messages to " + receiver);	    for(int j=0; j < num_msgs; j++) {		msg=createBigMessage(MSG_SIZE);		msg.setDest(receiver);		System.out.println("Sending msg (" + MSG_SIZE + " bytes) to " + receiver);		channel.send(msg);		System.out.println("Done Sending msg (" + MSG_SIZE + " bytes)");		Util.sleep(timeout);	    }	    System.out.println("Press [return] to exit");	    System.in.read();	}	else {	    System.out.println("Waiting for messages:");	    while(true) {		try {		    obj=channel.receive(0);		    if(obj instanceof Message)			{			    System.out.println("Received message: " + obj);			    Message tmp = (Message)obj;			    byte[] buf = tmp.getBuffer();			    for (int i=0; i<(10 < MSG_SIZE ? 10 : MSG_SIZE); i++)				{				    System.out.print((char)buf[i]);				}			    System.out.println();			}		}		catch(Exception e) {		    log.error(e);		}	    }		}	channel.close();    }