00:44:36.190 [main] DEBUG [ServletServerBuilder:createServletHandler:206] - adding servlet 'com.elastisys.scale.commons.net.alerter.http.WebhookServlet@74d926a0' at context path '/' with path spec '/*' and init-params {}
00:44:36.190 [main] DEBUG [ServletServerBuilder:addCrossOriginFilter:113] - enabling CORS support
00:44:36.190 [main] INFO  [Server:doStart:371] - jetty-9.4.12.v20180830; built: 2018-08-30T13:59:14.071Z; git: 27208684755d94a92186989f695db2d7b21ebc51; jvm 11.0.2+9-Ubuntu-3ubuntu118.04.3
00:44:36.192 [main] INFO  [DefaultSessionIdManager:doStart:365] - DefaultSessionIdManager workerName=node0
00:44:36.192 [main] INFO  [DefaultSessionIdManager:doStart:370] - No SessionScavenger set, using defaults
00:44:36.192 [main] INFO  [HouseKeeper:startScavenging:149] - node0 Scavenging every 660000ms
00:44:36.192 [main] INFO  [ContextHandler:doStart:850] - Started o.e.j.s.ServletContextHandler@51b274ce{/,null,AVAILABLE}
00:44:36.197 [main] INFO  [SslContextFactory:load:310] - x509=X509@55cb0354(1,h=[],w=[]) for SslContextFactory@6f20adb6[provider=null,keyStore=file:///home/simon/git/elastisys/scale.commons/target/checkout/net/src/test/resources/security/server/server_keystore.p12,trustStore=file:///home/simon/git/elastisys/scale.commons/target/checkout/net/src/test/resources/security/server/server_keystore.p12]
00:44:36.201 [main] INFO  [AbstractConnector:doStart:292] - Started ServerConnector@3a259dc4{SSL,[ssl, http/1.1]}{0.0.0.0:43511}
00:44:36.202 [main] INFO  [Server:doStart:408] - Started @14941ms
00:44:36.203 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:43511/: {"topic":"topic1","severity":"DEBUG","timestamp":"2015-01-01T12:00:00.000Z","message":"debug message","metadata":{}}
00:44:36.204 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:43511/ HTTP/1.1)
00:44:36.222 [main] WARN  [HttpAlerter:handleAlert:94] - failed to send alert to https://localhost:43511/: error response received from remote endpoint on request (POST https://localhost:43511/ HTTP/1.1): 401:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 Unauthorized</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /. Reason:
<pre>    Unauthorized</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.12.v20180830</a><hr/>

</body>
</html>

Alert message was: {
  "topic": "topic1",
  "severity": "DEBUG",
  "timestamp": "2015-01-01T12:00:00.000Z",
  "message": "debug message",
  "metadata": {}
}
org.apache.http.client.HttpResponseException: error response received from remote endpoint on request (POST https://localhost:43511/ HTTP/1.1): 401:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 Unauthorized</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /. Reason:
<pre>    Unauthorized</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.12.v20180830</a><hr/>

</body>
</html>

	at com.elastisys.scale.commons.net.http.Http.execute(Http.java:97)
	at com.elastisys.scale.commons.net.http.client.AuthenticatedHttpClient.execute(AuthenticatedHttpClient.java:151)
	at com.elastisys.scale.commons.net.alerter.http.HttpAlerter.handleAlert(HttpAlerter.java:92)
	at com.elastisys.scale.commons.net.alerter.http.TestHttpAlerterWithBasicAuth.deliverAlert(TestHttpAlerterWithBasicAuth.java:80)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
00:44:36.224 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:43511/: {"topic":"topic1","severity":"DEBUG","timestamp":"2015-01-01T12:00:00.000Z","message":"debug message","metadata":{}}
00:44:36.226 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:43511/ HTTP/1.1)
00:44:36.241 [main] WARN  [HttpAlerter:handleAlert:94] - failed to send alert to https://localhost:43511/: error response received from remote endpoint on request (POST https://localhost:43511/ HTTP/1.1): 401:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 Unauthorized</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /. Reason:
<pre>    Unauthorized</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.12.v20180830</a><hr/>

</body>
</html>

Alert message was: {
  "topic": "topic1",
  "severity": "DEBUG",
  "timestamp": "2015-01-01T12:00:00.000Z",
  "message": "debug message",
  "metadata": {}
}
org.apache.http.client.HttpResponseException: error response received from remote endpoint on request (POST https://localhost:43511/ HTTP/1.1): 401:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 Unauthorized</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /. Reason:
<pre>    Unauthorized</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.12.v20180830</a><hr/>

</body>
</html>

	at com.elastisys.scale.commons.net.http.Http.execute(Http.java:97)
	at com.elastisys.scale.commons.net.http.client.AuthenticatedHttpClient.execute(AuthenticatedHttpClient.java:151)
	at com.elastisys.scale.commons.net.alerter.http.HttpAlerter.handleAlert(HttpAlerter.java:92)
	at com.elastisys.scale.commons.net.alerter.http.TestHttpAlerterWithBasicAuth.deliverAlert(TestHttpAlerterWithBasicAuth.java:87)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
00:44:36.243 [main] DEBUG [HttpAlerter:handleAlert:86] - sending alert to https://localhost:43511/: {"topic":"topic1","severity":"DEBUG","timestamp":"2015-01-01T12:00:00.000Z","message":"debug message","metadata":{}}
00:44:36.244 [main] DEBUG [Http:execute:82] - sending request (POST https://localhost:43511/ HTTP/1.1)
00:44:36.261 [qtp1408175539-235] DEBUG [WebhookServlet:doPost:47] - received POST request: /
  Body: '{
  "topic": "topic1",
  "severity": "DEBUG",
  "timestamp": "2015-01-01T12:00:00.000Z",
  "message": "debug message",
  "metadata": {}
}'
