host parameter is null
少しググってみると,どうも下記のメソッドにスキーマを省いたURLを記述すると,そうなるとのことでした.
HttpMethod method = new GetMethod(url);
つまり,url=www.google.co.jpだと,上記のエラーが発生し,url=http://www.google.co.jpだと,成功します.
host parameter is null
HttpMethod method = new GetMethod(url);
# /sbin/service ldap start
slapd の設定ファイルをチェック中: bdb_db_open: unclean shutdown detected; attempting recovery.
(中略)
slap_startup failed (test would succeed using the -u switch)
[失敗]
/var/lib/ldap に古いロックファイルがあるかもしれません [警告]
# /usr/sbin/slapd_db_recover -v -h /var/lib/ldap
<html>
<head>
<meta meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>直前のmeta要素以降に記さないと文字化けする可能性があるんだってさ</title>
</head>
<body>...</body>
</html>
致命的: getInstanceDef
java.lang.UnsupportedOperationException: getInstanceDef
proxyHost := 'hogehoge'.
proxyPort := 8080.
"使用するプロキシサーバと除外するホストの設定"
HTTPSocket useProxyServerNamed: proxyHost port: proxyPort.
HTTPSocket addProxyException: 'hagehage'.
url := 'http://www.google.co.jp'.
HTTPSccket httpGet: url.
"プロキシサーバの解除と除外するホストの消去"
HTTPSocket removeProxyException: 'hagehage'.
HTTPSocket stopUsingProxyServer.
import org.mortbay.jetty.Server;
import org.mortbay.jetty.webapp.WebAppContext;
public class Test {
public static void main(String[] args) throws Exception {
Server server = new Server(8080);
WebAppContext context = new WebAppContext();
context.setContextPath("/test");
context.setResourceBase(".");
server.setHandler(context);
server.start();
}
}
.
+- WEB-INF
+- classes
+- web.xml