From 5c0ec5544a6e9d59767749b629cd15b743acf849 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 11 Sep 2002 14:48:19 +0000 Subject: [PATCH] Fixed an error reported by Roland Kofler where in the case of wrong command line options the Logger was used before being initialized, causing a NullPointerException. Now the message is written to System.err instead. Updated version string. --- src/helma/main/Server.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/helma/main/Server.java b/src/helma/main/Server.java index d84b24b4..f1afefa2 100644 --- a/src/helma/main/Server.java +++ b/src/helma/main/Server.java @@ -15,7 +15,6 @@ import helma.framework.*; import helma.framework.core.*; import helma.xmlrpc.*; import helma.util.*; -// import Acme.Serve.Serve; import org.mortbay.http.*; import org.mortbay.util.*; @@ -26,7 +25,7 @@ import org.mortbay.util.*; public class Server implements IPathElement, Runnable { - public static final String version = "1.2pre3+ 2002/09/06"; + public static final String version = "1.2pre3+ 2002/09/11"; public long starttime; // if true we only accept RMI and XML-RPC connections from @@ -139,7 +138,7 @@ import org.mortbay.util.*; System.out.println (" -p port Specify RMI port number"); System.out.println (" -w port Specify port number for embedded Web server"); System.out.println (" -x port Specify XML-RPC port number"); - getLogger().log ("Usage Error - exiting"); + System.err.println ("Usage Error - exiting"); System.exit (0); }