By: Lehel Jozsef user 17 Nov 2016 at 2:55 p.m. CST

5 Responses
Lehel Jozsef gravatar
Got the following error when I used the oxD trial license provided to me. The license is suppose to be valid till end of 2016. --- 2016-11-17 13:42:18,062 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='cbe029e0-e1af-4632-8e4c-eb4dcd29df3a', publicKey='A8o1SghvDKx9qp2czZtJq1LyQpp4328zxCdwJUW4 B/e/8TCc/dtdD6wJDkzdZgeUAkliCTP+HurNgRz4 R9Trfjysg1bGWhQen3RXc07Jo+6PPv7/3my/neWN Y5CuCI+BPimvU2uF9Z/8RPwtPThkynNp27MYlQ39 4eAP2+5BaUF6HPbk1TMlEXUXPEQJiYVawzTEPVrN wIAh+zX1DEWGK7DinHobvtrnKqzbmezvVDPSdk/Q oFaXLG5szSyBZUnpbay6NE3AmX15Uaw88v9I+6ph GxvQ8aGCMZqAxv4weD03rM1LVYyXyHLMtZLF24dU UL1lionXgZnQXrcwKfVswJuT5sqRmJLCoJTaQ1u+ fbnL7ckAoO1wdsxEy1w9ozkXY8UwwfU+1j6chJ66 PGbaQQ==', publicPassword='SQ2npt7Ypa9zCboavwVT', licensePassword='8md4stdUjsDfmu0uPqPH', supportGoogleLogout='true', stateExpirationInMinutes='5', nonceExpirationInMinutes='5'} 2016-11-17 13:42:18,077 INFO [org.xdi.oxd.server.service.ConfigurationService] Configuration directory: ./../conf 2016-11-17 13:42:18,080 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: oxd-default-site-config.json 2016-11-17 13:42:18,139 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: /opt/oxd-server/bin/.oxd-license 2016-11-17 13:42:18,145 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 08-00-27-9A-EA-99 2016-11-17 13:42:18,148 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2016-11-17 13:42:18,148 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: /opt/oxd-server/bin/.oxd-license 2016-11-17 13:42:18,148 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 08-00-27-9A-EA-99 2016-11-17 13:42:18,156 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-11-17 13:42:18,543 ERROR [org.xdi.oxd.server.license.LicenseService] The license is not valid. --- Thank you, Lehel

By Yuriy Zabrovarnyy staff 17 Nov 2016 at 3:29 p.m. CST

Yuriy Zabrovarnyy gravatar
Lehel, This is not complete log. Would you please attached oxd-server.log to this ticket for investigation? Thanks, Yuriy Z

By Lehel Jozsef user 17 Nov 2016 at 4:02 p.m. CST

Lehel Jozsef gravatar
Sorry! Full log file bellow: --- root@dev-vmtl:/opt/oxd-server/bin# ./oxd-start.sh BASEDIR=. CONF=./../conf/oxd-conf.json 2016-11-17 13:42:17,728 INFO [org.xdi.oxd.server.ServerLauncher] Starting... 2016-11-17 13:42:17,728 INFO [org.xdi.oxd.server.ServerLauncher] commit: e6faaea1aa117f23812d7dbfa135fa12cb09b192, branch: version_2.4.4, build time:15.11.2016 @ 10:19:49 EST 2016-11-17 13:42:17,888 TRACE [org.xdi.oxd.server.service.ConfigurationService] Try to load configuration from system property: oxd.server.config, value: ./../conf/oxd-conf.json 2016-11-17 13:42:18,062 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration loaded successfully from system property: oxd.server.config. 2016-11-17 13:42:18,062 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='cbe029e0-e1af-4632-8e4c-eb4dcd29df3a', publicKey='A8o1SghvDKx9qp2czZtJq1LyQpp4328zxCdwJUW4 B/e/8TCc/dtdD6wJDkzdZgeUAkliCTP+HurNgRz4 R9Trfjysg1bGWhQen3RXc07Jo+6PPv7/3my/neWN Y5CuCI+BPimvU2uF9Z/8RPwtPThkynNp27MYlQ39 4eAP2+5BaUF6HPbk1TMlEXUXPEQJiYVawzTEPVrN wIAh+zX1DEWGK7DinHobvtrnKqzbmezvVDPSdk/Q oFaXLG5szSyBZUnpbay6NE3AmX15Uaw88v9I+6ph GxvQ8aGCMZqAxv4weD03rM1LVYyXyHLMtZLF24dU UL1lionXgZnQXrcwKfVswJuT5sqRmJLCoJTaQ1u+ fbnL7ckAoO1wdsxEy1w9ozkXY8UwwfU+1j6chJ66 PGbaQQ==', publicPassword='SQ2npt7Ypa9zCboavwVT', licensePassword='8md4stdUjsDfmu0uPqPH', supportGoogleLogout='true', stateExpirationInMinutes='5', nonceExpirationInMinutes='5'} 2016-11-17 13:42:18,077 INFO [org.xdi.oxd.server.service.ConfigurationService] Configuration directory: ./../conf 2016-11-17 13:42:18,080 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: oxd-default-site-config.json 2016-11-17 13:42:18,139 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: /opt/oxd-server/bin/.oxd-license 2016-11-17 13:42:18,145 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 08-00-27-9A-EA-99 2016-11-17 13:42:18,148 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2016-11-17 13:42:18,148 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: /opt/oxd-server/bin/.oxd-license 2016-11-17 13:42:18,148 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 08-00-27-9A-EA-99 2016-11-17 13:42:18,156 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-11-17 13:42:18,543 ERROR [org.xdi.oxd.server.license.LicenseService] The license is not valid. net.nicholaswilliams.java.licensing.exception.InvalidLicenseException: The license is not valid. at org.xdi.oxd.license.validator.LicenseValidator.validate(LicenseValidator.java:52) at org.xdi.oxd.server.license.LicenseService.validateLicense(LicenseService.java:106) at org.xdi.oxd.server.license.LicenseService.start(LicenseService.java:56) 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: java.lang.IllegalArgumentException: com.google.common.io.BaseEncoding$DecodingException: Unrecognized character: at com.google.common.io.BaseEncoding.decode(BaseEncoding.java:228) at org.xdi.oxd.license.client.lib.ALicenseManager$1.getEncryptedPublicKeyData(ALicenseManager.java:66) at org.xdi.oxd.license.client.lib.ALicenseManager.verifyLicenseSignature(ALicenseManager.java:418) at org.xdi.oxd.license.client.lib.ALicenseManager.decryptAndVerifyLicense(ALicenseManager.java:452) at org.xdi.oxd.license.validator.LicenseValidator.validate(LicenseValidator.java:42) ... 6 more Caused by: com.google.common.io.BaseEncoding$DecodingException: Unrecognized character: at com.google.common.io.BaseEncoding$Alphabet.decode(BaseEncoding.java:503) at com.google.common.io.BaseEncoding$StandardBaseEncoding$2.read(BaseEncoding.java:675) at com.google.common.io.BaseEncoding.decodeChecked(BaseEncoding.java:245) at com.google.common.io.BaseEncoding.decode(BaseEncoding.java:226) ... 10 more 2016-11-17 13:42:18,549 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2016-11-17 13:42:18,549 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: /opt/oxd-server/bin/.oxd-license 2016-11-17 13:42:18,549 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 08-00-27-9A-EA-99 2016-11-17 13:42:18,549 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-11-17 13:42:18,696 ERROR [org.xdi.oxd.server.license.LicenseService] The license is not valid. net.nicholaswilliams.java.licensing.exception.InvalidLicenseException: The license is not valid. at org.xdi.oxd.license.validator.LicenseValidator.validate(LicenseValidator.java:52) at org.xdi.oxd.server.license.LicenseService.validateLicense(LicenseService.java:106) at org.xdi.oxd.server.license.LicenseService.start(LicenseService.java:65) 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: java.lang.IllegalArgumentException: com.google.common.io.BaseEncoding$DecodingException: Unrecognized character: at com.google.common.io.BaseEncoding.decode(BaseEncoding.java:228) at org.xdi.oxd.license.client.lib.ALicenseManager$1.getEncryptedPublicKeyData(ALicenseManager.java:66) at org.xdi.oxd.license.client.lib.ALicenseManager.verifyLicenseSignature(ALicenseManager.java:418) at org.xdi.oxd.license.client.lib.ALicenseManager.decryptAndVerifyLicense(ALicenseManager.java:452) at org.xdi.oxd.license.validator.LicenseValidator.validate(LicenseValidator.java:42) ... 6 more Caused by: com.google.common.io.BaseEncoding$DecodingException: Unrecognized character: at com.google.common.io.BaseEncoding$Alphabet.decode(BaseEncoding.java:503) at com.google.common.io.BaseEncoding$StandardBaseEncoding$2.read(BaseEncoding.java:675) at com.google.common.io.BaseEncoding.decodeChecked(BaseEncoding.java:245) at com.google.common.io.BaseEncoding.decode(BaseEncoding.java:226) ... 10 more 2016-11-17 13:42:18,702 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) root@dev-vmtl:/opt/oxd-server/bin#

By Yuriy Zabrovarnyy staff 17 Nov 2016 at 4:27 p.m. CST

Yuriy Zabrovarnyy gravatar
Ok, here is oxd-conf.json with your license which works perfectly. Please 1) remove .oxd-license file 2) use oxd-conf.json below and let me know whether it works for you. I guess there is some whitespace or some character that prevents it from correct validation. ``` { "port":8099, "localhost_only":true, "time_out_in_seconds":0, "use_client_authentication_for_pat":true, "use_client_authentication_for_aat":true, "trust_all_certs":true, "trust_store_path":"", "trust_store_password":"", "license_id":"cbe029e0-e1af-4632-8e4c-eb4dcd29df3a", "public_key":"A8o1SghvDKx9qp2czZtJq1LyQpp4328zxCdwJUW4B/e/8TCc/dtdD6wJDkzdZgeUAkliCTP+HurNgRz4R9Trfjysg1bGWhQen3RXc07Jo+6PPv7/3my/neWNY5CuCI+BPimvU2uF9Z/8RPwtPThkynNp27MYlQ394eAP2+5BaUF6HPbk1TMlEXUXPEQJiYVawzTEPVrNwIAh+zX1DEWGK7DinHobvtrnKqzbmezvVDPSdk/QoFaXLG5szSyBZUnpbay6NE3AmX15Uaw88v9I+6phGxvQ8aGCMZqAxv4weD03rM1LVYyXyHLMtZLF24dUUL1lionXgZnQXrcwKfVswJuT5sqRmJLCoJTaQ1u+fbnL7ckAoO1wdsxEy1w9ozkXY8UwwfU+1j6chJ66PGbaQQ==", "public_password":"SQ2npt7Ypa9zCboavwVT", "license_password":"8md4stdUjsDfmu0uPqPH", "support-google-logout":true, "state_expiration_in_minutes":5, "nonce_expiration_in_minutes":5 } ``` Log: ``` 2016-11-18 00:14:22,500 INFO [org.xdi.oxd.server.ServerLauncher] Starting... 2016-11-18 00:14:22,501 INFO [org.xdi.oxd.server.ServerLauncher] commit: c2ec9f2ded6fdc02e297c1ed16407876b14c7c0b, branch: version_2.4.4, build time:18.10.2016 @ 16:52:02 EEST 2016-11-18 00:14:22,793 TRACE [org.xdi.oxd.server.service.ConfigurationService] Try to load configuration from system property: oxd.server.config, value: U:\own\project\git\oxd\master\oxd-server\src\test\resources\oxd-conf-test1.json 2016-11-18 00:14:23,002 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration loaded successfully from system property: oxd.server.config. 2016-11-18 00:14:23,003 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='cbe029e0-e1af-4632-8e4c-eb4dcd29df3a', publicKey='A8o1SghvDKx9qp2czZtJq1LyQpp4328zxCdwJUW4B/e/8TCc/dtdD6wJDkzdZgeUAkliCTP+HurNgRz4R9Trfjysg1bGWhQen3RXc07Jo+6PPv7/3my/neWNY5CuCI+BPimvU2uF9Z/8RPwtPThkynNp27MYlQ394eAP2+5BaUF6HPbk1TMlEXUXPEQJiYVawzTEPVrNwIAh+zX1DEWGK7DinHobvtrnKqzbmezvVDPSdk/QoFaXLG5szSyBZUnpbay6NE3AmX15Uaw88v9I+6phGxvQ8aGCMZqAxv4weD03rM1LVYyXyHLMtZLF24dUUL1lionXgZnQXrcwKfVswJuT5sqRmJLCoJTaQ1u+fbnL7ckAoO1wdsxEy1w9ozkXY8UwwfU+1j6chJ66PGbaQQ==', publicPassword='SQ2npt7Ypa9zCboavwVT', licensePassword='8md4stdUjsDfmu0uPqPH', supportGoogleLogout='true', stateExpirationInMinutes='5', nonceExpirationInMinutes='5'} 2016-11-18 00:14:23,059 INFO [org.xdi.oxd.server.service.ConfigurationService] Configuration directory: U:\own\project\git\oxd\master\oxd-server\src\test\resources 2016-11-18 00:14:23,063 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: 487f4478-fc5f-48b8-b861-079b32cc9110.json 2016-11-18 00:14:23,133 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: 4f2877d5-3f1f-4c0d-9680-6d8a6cff5b9e.json 2016-11-18 00:14:23,134 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: ec2717a7-bc36-4e66-baaa-5f916cd808e3.json 2016-11-18 00:14:23,135 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: oxd-default-site-config.json 2016-11-18 00:14:23,137 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: U:\own\project\git\oxd\master\.oxd-license 2016-11-18 00:14:23,140 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 0A-00-27-00-00-26 2016-11-18 00:14:23,141 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2016-11-18 00:14:23,141 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: U:\own\project\git\oxd\master\.oxd-license 2016-11-18 00:14:23,141 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 0A-00-27-00-00-26 2016-11-18 00:14:23,151 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-11-18 00:14:24,964 TRACE [org.xdi.oxd.server.license.LicenseService] License is validated successfully. 2016-11-18 00:14:24,968 TRACE [org.xdi.oxd.server.license.LicenseService] License data: LicenseMetadata{creationDate=Wed Nov 09 21:58:01 EET 2016, licenseId=null, autoupdate=true, active=true, product=oxd, licenseName='CGI Trial oxd', expirationDate=Sat Dec 31 08:00:00 EET 2016, licenseCountLimit=9999, customerName=, emails=[]} 2016-11-18 00:14:24,973 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2016-11-18 00:14:24,973 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: U:\own\project\git\oxd\master\.oxd-license 2016-11-18 00:14:24,974 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 0A-00-27-00-00-26 2016-11-18 00:14:24,974 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-11-18 00:14:25,525 TRACE [org.xdi.oxd.server.license.LicenseService] License is validated successfully. 2016-11-18 00:14:25,525 TRACE [org.xdi.oxd.server.license.LicenseService] License data: LicenseMetadata{creationDate=Wed Nov 09 21:58:01 EET 2016, licenseId=null, autoupdate=true, active=true, product=oxd, licenseName='CGI Trial oxd', expirationDate=Sat Dec 31 08:00:00 EET 2016, licenseCountLimit=9999, customerName=, emails=[]} 2016-11-18 00:14:25,527 INFO [org.xdi.oxd.server.service.SocketService] Server socket is bound to port: 8099, with timeout: 0 seconds. Start listening for notifications. ```

By Yuriy Zabrovarnyy staff 17 Nov 2016 at 4:30 p.m. CST

Yuriy Zabrovarnyy gravatar
Note that public_key must be in single line without any whitespaces or line breaks.

By Lehel Jozsef user 18 Nov 2016 at 9:50 a.m. CST

Lehel Jozsef gravatar
Works great now. Thank you.