Duplicate Alias error after SSL configuration on SPS

Document ID : KB000116297
Last Modified Date : 28/09/2018
Show Technical Document Details
Question:
After configuring SSL on our R12.52 SP1 SPS in order to configure a Federation partnership, we cannot start it anymore. 

When we check the server.log we do see the following errors happening during startup:
[11/set/2018:13:18:42-759] [INFO] - Loading Virtual Host: *:443
[11/set/2018:13:18:42-759] [ERROR] - java.lang.Exception: Duplicate Alias: myserver.domain.com
[11/set/2018:13:18:42-759] [ERROR] -     at com.netegrity.proxy.VirtualHostFactory.newInstance(VirtualHostFactory.java:94)
[11/set/2018:13:18:42-759] [ERROR] -     at com.netegrity.proxy.Runtime.loadVirtualHosts(Runtime.java:518)
[11/set/2018:13:18:42-759] [ERROR] -     at com.netegrity.proxy.Runtime.<init>(Runtime.java:351)
[11/set/2018:13:18:42-759] [ERROR] -     at com.netegrity.proxy.Runtime.getRuntime(Runtime.java:558)
[11/set/2018:13:18:42-759] [ERROR] -     at com.netegrity.proxy.ProxyServer.initRuntime(ProxyServer.java:873)
[11/set/2018:13:18:42-759] [ERROR] -     at com.netegrity.proxy.ProxyServer.init(ProxyServer.java:158)
[11/set/2018:13:18:42-759] [ERROR] -     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[11/set/2018:13:18:42-759] [ERROR] -     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[11/set/2018:13:18:42-759] [ERROR] -     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[11/set/2018:13:18:42-759] [ERROR] -     at java.lang.reflect.Method.invoke(Method.java:606)
[11/set/2018:13:18:42-759] [ERROR] -     at com.netegrity.proxy.ProxyBootstrap.execute(ProxyBootstrap.java:233)
[11/set/2018:13:18:42-759] [ERROR] -     at com.netegrity.proxy.ProxyBootstrap.main(ProxyBootstrap.java:169)
[11/set/2018:13:18:47-767] [INFO] - CA Secure Proxy Server
[11/set/2018:13:18:47-767] [INFO] - Version 12.52 , Update 0108 , Label 2504
[11/set/2018:13:18:47-767] [INFO] - File Version: 12.52 .0108 .2504
[11/set/2018:13:18:47-767] [INFO] - Copyright CA Technologies, 1996-2012
[11/set/2018:13:18:47-767] [ERROR] - java.lang.NullPointerException
[11/set/2018:13:18:47-767] [ERROR] -     at java.util.Hashtable.put(Hashtable.java:514)
[11/set/2018:13:18:47-767] [ERROR] -     at com.netegrity.proxy.config.file.FileConfigImpl.loadRoot(FileConfigImpl.java:148)
[11/set/2018:13:18:47-767] [ERROR] -     at com.netegrity.proxy.config.file.FileConfigImpl.load(FileConfigImpl.java:102)
[11/set/2018:13:18:47-767] [ERROR] -     at com.netegrity.proxy.config.ConfigObject.load(ConfigObject.java:114)
[11/set/2018:13:18:47-767] [ERROR] -     at com.netegrity.proxy.config.Root.load(Root.java:170)
[11/set/2018:13:18:47-767] [ERROR] -     at com.netegrity.proxy.Runtime.<init>(Runtime.java:330)
[11/set/2018:13:18:47-767] [ERROR] -     at com.netegrity.proxy.Runtime.getRuntime(Runtime.java:558)
[11/set/2018:13:18:47-767] [ERROR] -     at com.netegrity.proxy.Runtime.shutdown(Runtime.java:364)
[11/set/2018:13:18:47-767] [ERROR] -     at com.netegrity.proxy.ProxyServer.initRuntime(ProxyServer.java:882)
[11/set/2018:13:18:47-767] [ERROR] -     at com.netegrity.proxy.ProxyServer.init(ProxyServer.java:158)
[11/set/2018:13:18:47-767] [ERROR] -     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[11/set/2018:13:18:47-767] [ERROR] -     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[11/set/2018:13:18:47-767] [ERROR] -     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[11/set/2018:13:18:47-767] [ERROR] -     at java.lang.reflect.Method.invoke(Method.java:606)
[11/set/2018:13:18:47-767] [ERROR] -     at com.netegrity.proxy.ProxyBootstrap.execute(ProxyBootstrap.java:233)
[11/set/2018:13:18:47-767] [ERROR] -     at com.netegrity.proxy.ProxyBootstrap.main(ProxyBootstrap.java:169)
[11/set/2018:13:18:52-775] [ERROR] - java.lang.NullPointerException
[11/set/2018:13:18:52-775] [ERROR] -     at com.netegrity.proxy.Runtime.shutdown(Runtime.java:364)
[11/set/2018:13:18:52-775] [ERROR] -     at com.netegrity.proxy.ProxyServer.initRuntime(ProxyServer.java:882)
[11/set/2018:13:18:52-775] [ERROR] -     at com.netegrity.proxy.ProxyServer.init(ProxyServer.java:158)
[11/set/2018:13:18:52-775] [ERROR] -     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[11/set/2018:13:18:52-775] [ERROR] -     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[11/set/2018:13:18:52-775] [ERROR] -     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[11/set/2018:13:18:52-775] [ERROR] -     at java.lang.reflect.Method.invoke(Method.java:606)
[11/set/2018:13:18:52-775] [ERROR] -     at com.netegrity.proxy.ProxyBootstrap.execute(ProxyBootstrap.java:233)
[11/set/2018:13:18:52-775] [ERROR] -     at com.netegrity.proxy.ProxyBootstrap.main(ProxyBootstrap.java:169)
[11/set/2018:13:18:52-775] [ERROR] - ProxyServer initialization failed.
[11/set/2018:13:18:52-775] [ERROR] - Config File: 'C:\Program Files (x86)\CA\secure-proxy/proxy-engine/conf/server.conf')


How can we solve this issue?
Environment:
SPS R12.52 SP1
Answer:
This error occurs when two or more VirtualHosts contain the same hostname value. This can happen if you have enabled SSL and both httpd.conf and httpd-ssl.conf contains the same VirtualHost information too in the hostnames directive.

Changing the hostnames value in the VirtualHosts so they are not duplicated, and restarting SPS, will solve the issue.