By: Naresh Garg user 03 Jul 2017 at 11:42 a.m. CDT

7 Responses
Naresh Garg gravatar
I have installed Oxd Server and start the instance and getting below error message. 2017-07-01 21:13:24,940 INFO [org.xdi.oxd.server.ServerLauncher] Starting... 2017-07-01 21:13:24,941 INFO [org.xdi.oxd.server.ServerLauncher] commit: 0eda70e831db6c16919ee7cbee4aa90a5fbeb6fa, branch: origin/version_3.0.1, build time:24.02.2017 @ 08:50:18 EST 2017-07-01 21:13:26,366 TRACE [org.xdi.oxd.server.service.ConfigurationService] Try to load configuration from system property: oxd.server.config, value: ../conf/oxd-conf.json 2017-07-01 21:13:26,688 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration loaded successfully from system property: oxd.server.config. 2017-07-01 21:13:26,688 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration: Configuration{port=8099, timeOutInSeconds=0, jettyPort=0, startJetty=false, localhostOnly=true, useClientAuthenticationForPat=true, useClientAuthenticationForAat=true, trustAllCerts=true, keyStorePath='', keyStorePassword='', licenseId='d674cef9-f299-4a3d-8167-63b1918e4fc7', publicKey='X/FSxag+I4tB4N/uBImfhGDYE4pCKIHqo+zvEBjYPmJ/e0Y0ha9iALklMkJTDwY/Cd/GaDjOnf+yq2oLzEmZZdmBGlMNXgb4qamx80ajqDzeu1i2qNdGNkcDke4GoM6SzymVrTYjHMTe5VEQa/pSyJWDrB9n/GU/BQH8ACqwmjtPrguF0wTw8g01wxmKTmxzrTHT1VK3J7sWUjOMK6jIBNFnu9a5i7oRCapCSV3WWQHBOacP9ZzUc+A4aLs0+go1AUtd7TdNXPe3zRyjuY98Y4c4Q5+P4VsZpHfaW0fg26JhIhFO/4A72b9BrBDPrswqWh6DNTbXjA5HAUf3CByYxpHDQQeJC4r83AGoDfqhCcDA2r3377R1WsxrKZVITOuq4IT/QTG+QqYzt8mmYnVvbA==', publicPassword='sSJMkWpdHez7voMp5NVm', licensePassword='khNqJDZQrjPicpB69a81', supportGoogleLogout='true', stateExpirationInMinutes='5', nonceExpirationInMinutes='5'} 2017-07-01 21:13:27,410 ERROR [org.xdi.oxd.server.service.ConfigurationService] String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1967) at org.xdi.oxd.server.service.ConfigurationService.getConfDirectoryPath(ConfigurationService.java:57) at org.xdi.oxd.server.service.ConfigurationService.getConfDirectoryFile(ConfigurationService.java:44) at org.xdi.oxd.server.service.SiteConfigurationService.load(SiteConfigurationService.java:61) at org.xdi.oxd.server.ServerLauncher.startOxd(ServerLauncher.java:84) at org.xdi.oxd.server.ServerLauncher.start(ServerLauncher.java:62) at org.xdi.oxd.server.ServerLauncher.main(ServerLauncher.java:51)

By Jajati Badu Account Admin 03 Jul 2017 at 11:58 a.m. CDT

Jajati Badu gravatar
Hi Naresh, Could you please let us know the server details where you are trying to install oxd server ? Also it will help if you can attach the complete log file. Kind Regards, Jajati

By Naresh Garg user 03 Jul 2017 at 12:02 p.m. CDT

Naresh Garg gravatar
I am using windows 2012 R2 server and find below entire logs. 2017-07-01 21:13:24,940 INFO [org.xdi.oxd.server.ServerLauncher] Starting... 2017-07-01 21:13:24,941 INFO [org.xdi.oxd.server.ServerLauncher] commit: 0eda70e831db6c16919ee7cbee4aa90a5fbeb6fa, branch: origin/version_3.0.1, build time:24.02.2017 @ 08:50:18 EST 2017-07-01 21:13:26,366 TRACE [org.xdi.oxd.server.service.ConfigurationService] Try to load configuration from system property: oxd.server.config, value: ../conf/oxd-conf.json 2017-07-01 21:13:26,688 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration loaded successfully from system property: oxd.server.config. 2017-07-01 21:13:26,688 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration: Configuration{port=8099, timeOutInSeconds=0, jettyPort=0, startJetty=false, localhostOnly=true, useClientAuthenticationForPat=true, useClientAuthenticationForAat=true, trustAllCerts=true, keyStorePath='', keyStorePassword='', licenseId='d674cef9-f299-4a3d-8167-63b1918e4fc7', publicKey='X/FSxag+I4tB4N/uBImfhGDYE4pCKIHqo+zvEBjYPmJ/e0Y0ha9iALklMkJTDwY/Cd/GaDjOnf+yq2oLzEmZZdmBGlMNXgb4qamx80ajqDzeu1i2qNdGNkcDke4GoM6SzymVrTYjHMTe5VEQa/pSyJWDrB9n/GU/BQH8ACqwmjtPrguF0wTw8g01wxmKTmxzrTHT1VK3J7sWUjOMK6jIBNFnu9a5i7oRCapCSV3WWQHBOacP9ZzUc+A4aLs0+go1AUtd7TdNXPe3zRyjuY98Y4c4Q5+P4VsZpHfaW0fg26JhIhFO/4A72b9BrBDPrswqWh6DNTbXjA5HAUf3CByYxpHDQQeJC4r83AGoDfqhCcDA2r3377R1WsxrKZVITOuq4IT/QTG+QqYzt8mmYnVvbA==', publicPassword='sSJMkWpdHez7voMp5NVm', licensePassword='khNqJDZQrjPicpB69a81', supportGoogleLogout='true', stateExpirationInMinutes='5', nonceExpirationInMinutes='5'} 2017-07-01 21:13:27,410 ERROR [org.xdi.oxd.server.service.ConfigurationService] String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1967) at org.xdi.oxd.server.service.ConfigurationService.getConfDirectoryPath(ConfigurationService.java:57) at org.xdi.oxd.server.service.ConfigurationService.getConfDirectoryFile(ConfigurationService.java:44) at org.xdi.oxd.server.service.SiteConfigurationService.load(SiteConfigurationService.java:61) at org.xdi.oxd.server.ServerLauncher.startOxd(ServerLauncher.java:84) at org.xdi.oxd.server.ServerLauncher.start(ServerLauncher.java:62) at org.xdi.oxd.server.ServerLauncher.main(ServerLauncher.java:51) 2017-07-01 21:13:27,444 INFO [org.xdi.oxd.server.service.ConfigurationService] Configuration directory: C:\naresh\oxd-server-3.0.1-distribution\bin\..\conf 2017-07-01 21:13:27,447 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: oxd-default-site-config.json 2017-07-01 21:13:27,674 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-01 21:13:27,676 ERROR [org.xdi.oxd.server.license.LicenseFile] No content to map to Object due to end of input 2017-07-01 21:13:27,676 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2017-07-01 21:13:27,677 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-01 21:13:27,678 ERROR [org.xdi.oxd.server.license.LicenseFile] No content to map to Object due to end of input 2017-07-01 21:13:27,678 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-01 21:13:27,679 ERROR [org.xdi.oxd.server.license.LicenseService] Failed to load license file : C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-01 21:13:28,062 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-07-01 21:13:28,689 TRACE [org.xdi.oxd.server.license.MacAddressProvider] Generating new mac address ... ip: awgsasbmcbsa15/10.97.66.249 2017-07-01 21:13:28,746 TRACE [org.xdi.oxd.server.license.LicenseFileUpdateService] Updating license, license_id: d674cef9-f299-4a3d-8167-63b1918e4fc7, retry: 0 ... Mac address: 00-50-56-82-64-70 2017-07-01 21:13:50,424 ERROR [org.xdi.oxd.server.license.LicenseFileUpdateService] org.apache.http.conn.HttpHostConnectException: Connection to https://license.gluu.org refused org.jboss.resteasy.client.exception.ResteasyHttpHostConnectException: org.apache.http.conn.HttpHostConnectException: Connection to https://license.gluu.org refused at org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.mapIOException(ApacheHttpClient4ExceptionMapper.java:96) at org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.toException(ApacheHttpClient4ExceptionMapper.java:67) at org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.toException(ApacheHttpClient4ExceptionMapper.java:59) at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:118) at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:88) at com.sun.proxy.$Proxy32.generatePost(Unknown Source) at org.xdi.oxd.server.license.LicenseFileUpdateService.updateLicenseFromServer(LicenseFileUpdateService.java:83) at org.xdi.oxd.server.license.LicenseFileUpdateService.start(LicenseFileUpdateService.java:53) at org.xdi.oxd.server.license.LicenseService.start(LicenseService.java:63) at org.xdi.oxd.server.service.SocketService.listenSocket(SocketService.java:65) at org.xdi.oxd.server.ServerLauncher.startOxd(ServerLauncher.java:85) at org.xdi.oxd.server.ServerLauncher.start(ServerLauncher.java:62) at org.xdi.oxd.server.ServerLauncher.main(ServerLauncher.java:51) Caused by: org.apache.http.conn.HttpHostConnectException: Connection to https://license.gluu.org refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) at org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor.execute(ApacheHttpClient4Executor.java:182) at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:39) at org.jboss.resteasy.plugins.interceptors.encoding.AcceptEncodingGZIPInterceptor.execute(AcceptEncodingGZIPInterceptor.java:40) at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:45) at org.jboss.resteasy.client.ClientRequest.execute(ClientRequest.java:444) at org.jboss.resteasy.client.ClientRequest.httpMethod(ClientRequest.java:688) at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:111) ... 9 more Caused by: java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:549) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) ... 21 more 2017-07-01 21:13:50,426 TRACE [org.xdi.oxd.server.license.LicenseFileUpdateService] Failed to update license file by licenseId: d674cef9-f299-4a3d-8167-63b1918e4fc7 2017-07-01 21:13:50,453 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2017-07-01 21:13:50,453 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-01 21:13:50,455 ERROR [org.xdi.oxd.server.license.LicenseFile] No content to map to Object due to end of input 2017-07-01 21:13:50,455 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-01 21:13:50,455 ERROR [org.xdi.oxd.server.license.LicenseService] Failed to load license file : C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-01 21:13:50,455 ERROR [org.xdi.oxd.server.ServerLauncher] Shutdown oxd server. org.xdi.oxd.server.ShutdownException: Failed to validate license, shutdown server ... at org.xdi.oxd.server.license.LicenseService.start(LicenseService.java:69) at org.xdi.oxd.server.service.SocketService.listenSocket(SocketService.java:65) at org.xdi.oxd.server.ServerLauncher.startOxd(ServerLauncher.java:85) at org.xdi.oxd.server.ServerLauncher.start(ServerLauncher.java:62) at org.xdi.oxd.server.ServerLauncher.main(ServerLauncher.java:51)

By Jajati Badu Account Admin 03 Jul 2017 at 2:42 p.m. CDT

Jajati Badu gravatar
Hi Naresh, As per the log file, it looks like there is some problem in license file. Could you please remove C:\naresh\oxd-server-3.0.1-distribution\bin.oxd-license file and try to start oxd server again ? Also please make sure you have valid license details at conf/oxd-conf.json file. If it does not resolve the problem, please let us know Kind Regards, Jajati

By Naresh Garg user 03 Jul 2017 at 3:59 p.m. CDT

Naresh Garg gravatar
I did the same and getting below error. 2017-07-03 15:56:23,760 INFO [org.xdi.oxd.server.ServerLauncher] Starting... 2017-07-03 15:56:23,803 INFO [org.xdi.oxd.server.ServerLauncher] commit: 0eda70e831db6c16919ee7cbee4aa90a5fbeb6fa, branch: origin/version_3.0.1, build time:24.02.2017 @ 08:50:18 EST 2017-07-03 15:56:25,151 TRACE [org.xdi.oxd.server.service.ConfigurationService] Try to load configuration from system property: oxd.server.config, value: ../conf/oxd-conf.json 2017-07-03 15:56:25,451 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration loaded successfully from system property: oxd.server.config. 2017-07-03 15:56:25,451 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration: Configuration{port=8099, timeOutInSeconds=0, jettyPort=0, startJetty=false, localhostOnly=true, useClientAuthenticationForPat=true, useClientAuthenticationForAat=true, trustAllCerts=true, keyStorePath='', keyStorePassword='', licenseId='d674cef9-f299-4a3d-8167-63b1918e4fc7', publicKey='X/FSxag+I4tB4N/uBImfhGDYE4pCKIHqo+zvEBjYPmJ/e0Y0ha9iALklMkJTDwY/Cd/GaDjOnf+yq2oLzEmZZdmBGlMNXgb4qamx80ajqDzeu1i2qNdGNkcDke4GoM6SzymVrTYjHMTe5VEQa/pSyJWDrB9n/GU/BQH8ACqwmjtPrguF0wTw8g01wxmKTmxzrTHT1VK3J7sWUjOMK6jIBNFnu9a5i7oRCapCSV3WWQHBOacP9ZzUc+A4aLs0+go1AUtd7TdNXPe3zRyjuY98Y4c4Q5+P4VsZpHfaW0fg26JhIhFO/4A72b9BrBDPrswqWh6DNTbXjA5HAUf3CByYxpHDQQeJC4r83AGoDfqhCcDA2r3377R1WsxrKZVITOuq4IT/QTG+QqYzt8mmYnVvbA==', publicPassword='sSJMkWpdHez7voMp5NVm', licensePassword='khNqJDZQrjPicpB69a81', supportGoogleLogout='true', stateExpirationInMinutes='5', nonceExpirationInMinutes='5'} 2017-07-03 15:56:25,900 ERROR [org.xdi.oxd.server.service.ConfigurationService] String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1967) at org.xdi.oxd.server.service.ConfigurationService.getConfDirectoryPath(ConfigurationService.java:57) at org.xdi.oxd.server.service.ConfigurationService.getConfDirectoryFile(ConfigurationService.java:44) at org.xdi.oxd.server.service.SiteConfigurationService.load(SiteConfigurationService.java:61) at org.xdi.oxd.server.ServerLauncher.startOxd(ServerLauncher.java:84) at org.xdi.oxd.server.ServerLauncher.start(ServerLauncher.java:62) at org.xdi.oxd.server.ServerLauncher.main(ServerLauncher.java:51) 2017-07-03 15:56:25,915 INFO [org.xdi.oxd.server.service.ConfigurationService] Configuration directory: C:\naresh\oxd-server-3.0.1-distribution\bin\..\conf 2017-07-03 15:56:25,930 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: oxd-default-site-config.json 2017-07-03 15:56:26,069 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-03 15:56:26,070 ERROR [org.xdi.oxd.server.license.LicenseFile] No content to map to Object due to end of input 2017-07-03 15:56:26,071 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2017-07-03 15:56:26,072 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-03 15:56:26,073 ERROR [org.xdi.oxd.server.license.LicenseFile] No content to map to Object due to end of input 2017-07-03 15:56:26,073 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-03 15:56:26,073 ERROR [org.xdi.oxd.server.license.LicenseService] Failed to load license file : C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-03 15:56:26,261 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-07-03 15:56:26,676 TRACE [org.xdi.oxd.server.license.MacAddressProvider] Generating new mac address ... ip: awgsasbmcbsa15/10.97.66.249 2017-07-03 15:56:26,734 TRACE [org.xdi.oxd.server.license.LicenseFileUpdateService] Updating license, license_id: d674cef9-f299-4a3d-8167-63b1918e4fc7, retry: 0 ... Mac address: 00-50-56-82-64-70 2017-07-03 15:56:48,278 ERROR [org.xdi.oxd.server.license.LicenseFileUpdateService] org.apache.http.conn.HttpHostConnectException: Connection to https://license.gluu.org refused org.jboss.resteasy.client.exception.ResteasyHttpHostConnectException: org.apache.http.conn.HttpHostConnectException: Connection to https://license.gluu.org refused at org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.mapIOException(ApacheHttpClient4ExceptionMapper.java:96) at org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.toException(ApacheHttpClient4ExceptionMapper.java:67) at org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.toException(ApacheHttpClient4ExceptionMapper.java:59) at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:118) at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:88) at com.sun.proxy.$Proxy32.generatePost(Unknown Source) at org.xdi.oxd.server.license.LicenseFileUpdateService.updateLicenseFromServer(LicenseFileUpdateService.java:83) at org.xdi.oxd.server.license.LicenseFileUpdateService.start(LicenseFileUpdateService.java:53) at org.xdi.oxd.server.license.LicenseService.start(LicenseService.java:63) at org.xdi.oxd.server.service.SocketService.listenSocket(SocketService.java:65) at org.xdi.oxd.server.ServerLauncher.startOxd(ServerLauncher.java:85) at org.xdi.oxd.server.ServerLauncher.start(ServerLauncher.java:62) at org.xdi.oxd.server.ServerLauncher.main(ServerLauncher.java:51) Caused by: org.apache.http.conn.HttpHostConnectException: Connection to https://license.gluu.org refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) at org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor.execute(ApacheHttpClient4Executor.java:182) at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:39) at org.jboss.resteasy.plugins.interceptors.encoding.AcceptEncodingGZIPInterceptor.execute(AcceptEncodingGZIPInterceptor.java:40) at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:45) at org.jboss.resteasy.client.ClientRequest.execute(ClientRequest.java:444) at org.jboss.resteasy.client.ClientRequest.httpMethod(ClientRequest.java:688) at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:111) ... 9 more Caused by: java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:549) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) ... 21 more 2017-07-03 15:56:48,280 TRACE [org.xdi.oxd.server.license.LicenseFileUpdateService] Failed to update license file by licenseId: d674cef9-f299-4a3d-8167-63b1918e4fc7 2017-07-03 15:56:48,313 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2017-07-03 15:56:48,313 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-03 15:56:48,315 ERROR [org.xdi.oxd.server.license.LicenseFile] No content to map to Object due to end of input 2017-07-03 15:56:48,315 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-03 15:56:48,315 ERROR [org.xdi.oxd.server.license.LicenseService] Failed to load license file : C:\naresh\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-03 15:56:48,315 ERROR [org.xdi.oxd.server.ServerLauncher] Shutdown oxd server. org.xdi.oxd.server.ShutdownException: Failed to validate license, shutdown server ... at org.xdi.oxd.server.license.LicenseService.start(LicenseService.java:69) at org.xdi.oxd.server.service.SocketService.listenSocket(SocketService.java:65) at org.xdi.oxd.server.ServerLauncher.startOxd(ServerLauncher.java:85) at org.xdi.oxd.server.ServerLauncher.start(ServerLauncher.java:62) at org.xdi.oxd.server.ServerLauncher.main(ServerLauncher.java:51)

By Jajati Badu Account Admin 03 Jul 2017 at 7:50 p.m. CDT

Jajati Badu gravatar
Hi Naresh, Could you please make sure the server where you are running oxd server, has access to internet. It looks like oxd service is not able to validate the license via our license service https://license.gluu.org Kind Regards, Jajati

By Naresh Garg user 04 Jul 2017 at 9:15 a.m. CDT

Naresh Garg gravatar
I have installed on my laptop and I think now this instances is running. Could you please review below logs? 2017-07-04 09:14:03,329 INFO [org.xdi.oxd.server.ServerLauncher] Starting... 2017-07-04 09:14:03,346 INFO [org.xdi.oxd.server.ServerLauncher] commit: 0eda70e831db6c16919ee7cbee4aa90a5fbeb6fa, branch: origin/version_3.0.1, build time:24.02.2017 @ 08:50:18 EST 2017-07-04 09:14:03,609 TRACE [org.xdi.oxd.server.service.ConfigurationService] Try to load configuration from system property: oxd.server.config, value: ../conf/oxd-conf.json 2017-07-04 09:14:03,766 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration loaded successfully from system property: oxd.server.config. 2017-07-04 09:14:03,766 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration: Configuration{port=8099, timeOutInSeconds=0, jettyPort=0, startJetty=false, localhostOnly=true, useClientAuthenticationForPat=true, useClientAuthenticationForAat=true, trustAllCerts=true, keyStorePath='', keyStorePassword='', licenseId='d674cef9-f299-4a3d-8167-63b1918e4fc7', publicKey='X/FSxag+I4tB4N/uBImfhGDYE4pCKIHqo+zvEBjYPmJ/e0Y0ha9iALklMkJTDwY/Cd/GaDjOnf+yq2oLzEmZZdmBGlMNXgb4qamx80ajqDzeu1i2qNdGNkcDke4GoM6SzymVrTYjHMTe5VEQa/pSyJWDrB9n/GU/BQH8ACqwmjtPrguF0wTw8g01wxmKTmxzrTHT1VK3J7sWUjOMK6jIBNFnu9a5i7oRCapCSV3WWQHBOacP9ZzUc+A4aLs0+go1AUtd7TdNXPe3zRyjuY98Y4c4Q5+P4VsZpHfaW0fg26JhIhFO/4A72b9BrBDPrswqWh6DNTbXjA5HAUf3CByYxpHDQQeJC4r83AGoDfqhCcDA2r3377R1WsxrKZVITOuq4IT/QTG+QqYzt8mmYnVvbA==', publicPassword='sSJMkWpdHez7voMp5NVm', licensePassword='khNqJDZQrjPicpB69a81', supportGoogleLogout='true', stateExpirationInMinutes='5', nonceExpirationInMinutes='5'} 2017-07-04 09:14:04,066 ERROR [org.xdi.oxd.server.service.ConfigurationService] String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(Unknown Source) at org.xdi.oxd.server.service.ConfigurationService.getConfDirectoryPath(ConfigurationService.java:57) at org.xdi.oxd.server.service.ConfigurationService.getConfDirectoryFile(ConfigurationService.java:44) at org.xdi.oxd.server.service.SiteConfigurationService.load(SiteConfigurationService.java:61) at org.xdi.oxd.server.ServerLauncher.startOxd(ServerLauncher.java:84) at org.xdi.oxd.server.ServerLauncher.start(ServerLauncher.java:62) at org.xdi.oxd.server.ServerLauncher.main(ServerLauncher.java:51) 2017-07-04 09:14:04,072 INFO [org.xdi.oxd.server.service.ConfigurationService] Configuration directory: C:\Software\oxd-server-3.0.1-distribution\bin\..\conf 2017-07-04 09:14:04,075 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: oxd-default-site-config.json 2017-07-04 09:14:04,155 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\Software\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-04 09:14:04,156 ERROR [org.xdi.oxd.server.license.LicenseFile] No content to map to Object due to end of input 2017-07-04 09:14:04,158 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2017-07-04 09:14:04,158 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\Software\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-04 09:14:04,159 ERROR [org.xdi.oxd.server.license.LicenseFile] No content to map to Object due to end of input 2017-07-04 09:14:04,159 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\Software\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-04 09:14:04,159 ERROR [org.xdi.oxd.server.license.LicenseService] Failed to load license file : C:\Software\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-04 09:14:04,203 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-07-04 09:14:04,727 TRACE [org.xdi.oxd.server.license.MacAddressProvider] Generating new mac address ... ip: USG7LGMHS162/10.214.1.75 2017-07-04 09:14:04,914 TRACE [org.xdi.oxd.server.license.LicenseFileUpdateService] Updating license, license_id: d674cef9-f299-4a3d-8167-63b1918e4fc7, retry: 0 ... Mac address: 02-05-85-7F-EB-80 2017-07-04 09:14:05,877 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\Software\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-04 09:14:05,911 INFO [org.xdi.oxd.server.license.LicenseFileUpdateService] License file updated successfully. Mac address: 02-05-85-7F-EB-80 2017-07-04 09:14:05,920 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2017-07-04 09:14:05,920 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: C:\Software\oxd-server-3.0.1-distribution\bin\.oxd-license 2017-07-04 09:14:05,926 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 02-05-85-7F-EB-80 2017-07-04 09:14:05,927 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-07-04 09:14:07,095 TRACE [org.xdi.oxd.server.license.LicenseService] License is validated successfully. 2017-07-04 09:14:07,100 TRACE [org.xdi.oxd.server.license.LicenseService] License data: LicenseMetadata{creationDate=Tue Jun 27 21:22:57 CDT 2017, licenseId=null, autoupdate=true, active=true, product=oxd, licenseName='1976', expirationDate=Wed Jun 27 21:22:57 CDT 2018, licenseCountLimit=9999, customerName=1976, emails=[]} 2017-07-04 09:14:07,103 INFO [org.xdi.oxd.server.service.SocketService] Server socket is bound to port: 8099, with timeout: 0 seconds. Start listening for notifications.

By Jajati Badu Account Admin 05 Jul 2017 at 5:34 a.m. CDT

Jajati Badu gravatar
Hi Naresh, Yes the oxd service is now running on port no 8099. Now you can start using oxd in your web application.. Kind Regards, Jajati