By: meghna joshi staff 21 Jul 2017 at 8:47 a.m. CDT

1 Response
meghna joshi gravatar

I am getting an error Unknown internal server error occurs in update_site_registration. I use OXD server 3.0.0 also tested in 3.0.1 but face the same problem. Below is the log of oxd server and also oxd-server.log file for log.

2017-07-21 15:17:50,488 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"command":"update_site_registration","params":{"scope":["openid","profile"],"oxd_id":"e5f52faa-5853-4772-ae3f-62dc5a0ae677","op_host":"https://ce-dev2.gluu.org","authorization_redirect_uri":"https://127.0.0.1:3000/registerr.html","client_id":"@!82A2.89A8.FE0E.90DE!0001!D5F0.4DB4!0008!4789.6D02.A60D.80AC","client_secret":"e9eccca4-16bc-4471-848c-f83d9495bed9","response_types":["code"],"client_name":"kong_open_id"}}', m_leftString=''}
2017-07-21 15:17:50,489 TRACE [org.xdi.oxd.server.Processor] Command: {"command":"update_site_registration","params":{"scope":["openid","profile"],"oxd_id":"e5f52faa-5853-4772-ae3f-62dc5a0ae677","op_host":"https://ce-dev2.gluu.org","authorization_redirect_uri":"https://127.0.0.1:3000/registerr.html","client_id":"@!82A2.89A8.FE0E.90DE!0001!D5F0.4DB4!0008!4789.6D02.A60D.80AC","client_secret":"e9eccca4-16bc-4471-848c-f83d9495bed9","response_types":["code"],"client_name":"kong_open_id"}}
2017-07-21 15:17:50,491 INFO  [org.xdi.oxd.server.op.UpdateSiteOperation] Updating site configuration ...
2017-07-21 15:17:50,492 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client.
2017-07-21 15:17:50,517 ERROR [org.xdi.oxd.server.Processor] 
java.lang.NullPointerException
    at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
    at java.util.regex.Matcher.reset(Matcher.java:309)
    at java.util.regex.Matcher.<init>(Matcher.java:229)
    at java.util.regex.Pattern.matcher(Pattern.java:1093)
    at org.jboss.resteasy.specimpl.UriBuilderImpl.uriTemplate(UriBuilderImpl.java:77)
    at org.jboss.resteasy.client.ClientRequest.getBuilder(ClientRequest.java:152)
    at org.jboss.resteasy.client.ClientRequest.<init>(ClientRequest.java:103)
    at org.xdi.oxauth.client.BaseClient.initClientRequest(BaseClient.java:227)
    at org.xdi.oxauth.client.RegisterClient.exec(RegisterClient.java:76)
    at org.xdi.oxd.server.op.UpdateSiteOperation.updateRegisteredClient(UpdateSiteOperation.java:69)
    at org.xdi.oxd.server.op.UpdateSiteOperation.persistSiteConfiguration(UpdateSiteOperation.java:56)
    at org.xdi.oxd.server.op.UpdateSiteOperation.execute(UpdateSiteOperation.java:46)
    at org.xdi.oxd.server.op.UpdateSiteOperation.execute(UpdateSiteOperation.java:28)
    at org.xdi.oxd.server.Processor.process(Processor.java:80)
    at org.xdi.oxd.server.Processor.process(Processor.java:55)
    at org.xdi.oxd.server.SocketProcessor.run(SocketProcessor.java:60)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
2017-07-21 15:17:50,519 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"error","data":{"error":"internal_error","error_description":"Unknown internal server error occurs."}}
2017-07-21 15:17:50,519 ERROR [org.xdi.oxd.server.SocketProcessor] Quit. Enable to process command.

Thanks,

Meghna

By Yuriy Zabrovarnyy staff 21 Jul 2017 at 9:06 a.m. CDT

Yuriy Zabrovarnyy gravatar

Hi Meg,

Opened ticket for it https://github.com/GluuFederation/oxd/issues/81

Thanks, Yuriy