log.error(e);
System.err.println(e);
    public static void main(String[] args) throws Exception {        String arg;        int port=8080;        long expiry = GossipRouter.EXPIRY_TIME;        long timeout = GossipRouter.GOSSIP_REQUEST_TIMEOUT;        long routingTimeout = GossipRouter.ROUTING_CLIENT_REPLY_TIMEOUT;        GossipRouter router=null;        String address=null;        for(int i=0; i < args.length; i++) {            arg=args[i];            if("-help".equals(arg)) {                System.out.println();                System.out.println("GossipRouter [-port <port>] [-bindaddress <address>] [options]");                System.out.println("Options: ");                System.out.println("        -expiry <msecs>   - Time until a gossip cache entry expires.");                System.out.println("        -timeout <msecs>  - Number of millisecs the router waits to receive");                System.out.println("                            a gossip request after connection was established;");                System.out.println("                            upon expiration, the router initiates the routing");                System.out.println("                            protocol on the connection.");                return;            }            else if("-port".equals(arg)) {                    port=Integer.parseInt(args[++i]);            }            else if("-bindaddress".equals(arg)) {                address=args[++i];            }            else if("-expiry".equals(arg)) {                expiry=Long.parseLong(args[++i]);            }            else if("-timeout".equals(arg)) {                timeout=Long.parseLong(args[++i]);            }            else if("-rtimeout".equals(arg)) {                routingTimeout=Long.parseLong(args[++i]);            }        }        System.out.println("GossipRouter is starting...");        try {            router= new GossipRouter(port, address, expiry, timeout, routingTimeout);            router.start();        }        catch(Exception e) {            log.error(e);        }    }