equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
243 } |
243 } |
244 System.err.println("TestServer: start exception: " + e); |
244 System.err.println("TestServer: start exception: " + e); |
245 //throw e; |
245 //throw e; |
246 } |
246 } |
247 } |
247 } |
|
248 } catch (SecurityException se) { |
|
249 System.err.println("TestServer: terminating, caught " + se); |
|
250 se.printStackTrace(); |
|
251 stopping = true; |
|
252 try { server.close(); } catch (IOException ioe) { /* ignore */} |
248 } catch (Throwable e) { |
253 } catch (Throwable e) { |
249 if (!stopping) { |
254 if (!stopping) { |
250 System.err.println("TestServer: terminating, caught " + e); |
255 System.err.println("TestServer: terminating, caught " + e); |
251 e.printStackTrace(); |
256 e.printStackTrace(); |
252 } |
257 } |