By: Suriya U-ruekolan user 25 Jul 2018 at 6:26 p.m. CDT

4 Responses
Suriya U-ruekolan gravatar
I found a error message in oxd-server.log file after using node js library for command get authorization url, the error message is: `2018-07-25 07:53:10,460 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2018-07-25 07:53:10,535 TRACE [org.xdi.oxd.server.op.RegisterSiteOperation] Registered client for site - client_id: @!E108.D8A5.1C56.9BF2!0001!FFDB.1E31!0008!E3EE.190A.ADDB.C44D, claims: {grant_types=["refresh_token","authorization_code","client_credentials"], subject_type=pairwise, application_type=web, default_acr_values=[""], scope=permission uma_protection openid, require_auth_time=false, redirect_uris=["https:\/\/oidcclient.lsr.nectec.or.th:8080"], client_name=oidctest, token_endpoint_auth_method=client_secret_basic, response_types=["code"], id_token_signed_response_alg=RS256, frontchannel_logout_session_required=false}, registration_client_uri:https://iaamtest.lsr.nectec.or.th/oxauth/restv1/register?client_id=@!E108.D8A5.1C56.9BF2!0001!FFDB.1E31!0008!E3EE.190A.ADDB.C44D 2018-07-25 07:53:10,591 DEBUG [org.xdi.oxd.server.persistence.SqlPersistenceServiceImpl] RP created successfully. RP : Rp{oxdId='d966ed16-1b0c-4117-a474-d53522d68a26', opHost='https://iaamtest.lsr.nectec.or.th', opDiscoveryPath='null', idToken='null', accessToken='null', authorizationRedirectUri='https://oidcclient.lsr.nectec.or.th:8080', postLogoutRedirectUri='null', applicationType='web', redirectUris=[https://oidcclient.lsr.nectec.or.th:8080], claimsRedirectUri=[], responseTypes=[code], clientId='@!E108.D8A5.1C56.9BF2!0001!FFDB.1E31!0008!E3EE.190A.ADDB.C44D', clientSecret='c84a0dab-587f-4870-921c-1c6baa4e04e2', clientRegistrationAccessToken='e9b26031-c91b-4f40-ac7f-ce63b9c2b412', clientRegistrationClientUri='https://iaamtest.lsr.nectec.or.th/oxauth/restv1/register?client_id=@!E108.D8A5.1C56.9BF2!0001!FFDB.1E31!0008!E3EE.190A.ADDB.C44D', clientIdIssuedAt=Wed Jul 25 07:53:10 UTC 2018, clientSecretExpiresAt=null, clientName='null', sectorIdentifierUri='null', clientJwksUri='null', setupClient='null', setupOxdId='null', setupClientId='null', scope=[openid, uma_protection], uiLocales=[en], claimsLocales=[en], acrValues=[], grantType=[authorization_code, client_credentials], contacts=[], userId='null', userSecret='null', pat='null', patExpiresIn=0, patCreatedAt=null, patRefreshToken='null', umaProtectedResources=[], rpt='null', rptTokenType='null', rptPct='null', rptExpiresAt=null, rptCreatedAt=null, rptUpgraded=null, oxdRpProgrammingLanguage=null} 2018-07-25 07:53:10,592 INFO [org.xdi.oxd.server.op.RegisterSiteOperation] RP created: Rp{oxdId='d966ed16-1b0c-4117-a474-d53522d68a26', opHost='https://iaamtest.lsr.nectec.or.th', opDiscoveryPath='null', idToken='null', accessToken='null', authorizationRedirectUri='https://oidcclient.lsr.nectec.or.th:8080', postLogoutRedirectUri='null', applicationType='web', redirectUris=[https://oidcclient.lsr.nectec.or.th:8080], claimsRedirectUri=[], responseTypes=[code], clientId='@!E108.D8A5.1C56.9BF2!0001!FFDB.1E31!0008!E3EE.190A.ADDB.C44D', clientSecret='c84a0dab-587f-4870-921c-1c6baa4e04e2', clientRegistrationAccessToken='e9b26031-c91b-4f40-ac7f-ce63b9c2b412', clientRegistrationClientUri='https://iaamtest.lsr.nectec.or.th/oxauth/restv1/register?client_id=@!E108.D8A5.1C56.9BF2!0001!FFDB.1E31!0008!E3EE.190A.ADDB.C44D', clientIdIssuedAt=Wed Jul 25 07:53:10 UTC 2018, clientSecretExpiresAt=null, clientName='null', sectorIdentifierUri='null', clientJwksUri='null', setupClient='null', setupOxdId='null', setupClientId='null', scope=[openid, uma_protection], uiLocales=[en], claimsLocales=[en], acrValues=[], grantType=[authorization_code, client_credentials], contacts=[], userId='null', userSecret='null', pat='null', patExpiresIn=0, patCreatedAt=null, patRefreshToken='null', umaProtectedResources=[], rpt='null', rptTokenType='null', rptPct='null', rptExpiresAt=null, rptCreatedAt=null, rptUpgraded=null, oxdRpProgrammingLanguage=null} 2018-07-25 07:53:10,599 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"oxd_id":"d966ed16-1b0c-4117-a474-d53522d68a26","op_host":"https://iaamtest.lsr.nectec.or.th"}} 2018-07-25 07:53:10,599 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2018-07-25 07:53:10,600 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2018-07-25 07:53:10,615 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit. 2018-07-25 07:53:10,615 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank. 2018-07-25 07:54:22,155 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2018-07-25 07:54:22,156 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2018-07-25 07:54:22,156 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2018-07-25 07:54:22,156 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0187, commandSize: 187 2018-07-25 07:54:22,156 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"command":"get_authorization_url","params":{"https_extension":false,"host":"localhost","port":"8099","oxd_id":"d966ed16-1b0c-4117-a474-d53522d68a26","scope":["openid","uma_protection"]}}', m_leftString=''} 2018-07-25 07:54:22,156 TRACE [org.xdi.oxd.server.Processor] Command: {"command":"get_authorization_url","params":{"https_extension":false,"host":"localhost","port":"8099","oxd_id":"d966ed16-1b0c-4117-a474-d53522d68a26","scope":["openid","uma_protection"]}} 2018-07-25 07:54:22,169 ERROR [org.xdi.oxd.server.service.ValidationService] Failed to invoke license service client update. Message: null java.lang.NullPointerException at org.xdi.oxd.common.CoreUtils.isExpired(CoreUtils.java:51) at org.xdi.oxd.server.service.RpService.checkClientExpired(RpService.java:78) at org.xdi.oxd.server.service.RpService.checkClientExpiredWithException(RpService.java:72) at org.xdi.oxd.server.service.RpService.getRp(RpService.java:67) at org.xdi.oxd.server.service.ValidationService.validate(ValidationService.java:59) at org.xdi.oxd.server.Processor.process(Processor.java:74) at org.xdi.oxd.server.Processor.process(Processor.java:51) at org.xdi.oxd.server.SocketProcessor.run(SocketProcessor.java:55) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 2018-07-25 07:54:22,170 ERROR [org.xdi.oxd.server.Processor] java.lang.NullPointerException ` However, I can register a client via oxd-server using node js library but while getting the authorization url, I found such error. Could you please help me to figure out this issue? Thank you very much.

By Mohib Zico Account Admin 26 Jul 2018 at 9:54 a.m. CDT

Mohib Zico gravatar
Is it hampering your service? Or you just trying to find out why this error is coming?

By Suriya U-ruekolan user 26 Jul 2018 at 10:18 a.m. CDT

Suriya U-ruekolan gravatar
Mohib, Currently, I used oxd server with oxd-node library version 3.0.1 for my production service, it worked. Now I have tried to oxd-server with oxd node library version 3.1.3 but I found the error as above post. I don't know that what is root cause of the problem. However, I have plan to upgrade the oxd-server with version 3.1.3, if I can solve this problem. Could you please advice me for solving this problem? Thank you very much.

By Mohib Zico Account Admin 31 Jul 2018 at 8:52 a.m. CDT

Mohib Zico gravatar
Yes, I think it's worthy to update. 3.1.3 should work with 3.1.3 server.

By Anthony Spring user 09 Aug 2018 at 11:12 a.m. CDT

Anthony Spring gravatar
Im seeing a similar issue in our system (oxd-server 3.1.3 and oxdpython 3.1.3). After diggnig throughout the source code, commits and issues I see what looks like a possible fix in this commit: https://github.com/GluuFederation/oxd/commit/0148fa1b1720c85b434d0278cd9eb6a516d04697 Is it possible to get a list of publically available versions of oxd-server that include this fix?