Page 1 of 1

UMS docker deploy: Cannot invoke "com.google.gson.JsonElement.isJsonObject()" because "element" is null

Posted: Tue Sep 13, 2022 6:51 am
by Drucchi
Dear UMS users,

Today I find myself with an issue regarding the docker-version of UMS. For some reason it will not properly initialize. This all happened yesterday, when it may have pulled in the latest version from the repository (can't be sure though). But I cannot get this working again.
After telling me the web-interface should be reachable (wich it isn't) I get this log line:
ERROR 18:27:05.625 [main] A serious error occurred during Universal Media Server initialization: Cannot invoke "com.google.gson.JsonElement.isJsonObject()" because "element" is null

Please find my config and debug log files attached.

I tried clearing the database and all files except UMS.conf, UMS.cred and WEB.conf, but that didn't change anything.

Any suggestions are welcome.

Re: UMS docker deploy: Cannot invoke "com.google.gson.JsonElement.isJsonObject()" because "element" is null

Posted: Tue Sep 13, 2022 7:25 am
by mik_s
I had a quick look but could not see anything obvious that could be causing that error, but I don't know anything about Docker.
It might be something the devs will know what is happening. I suggest you post an issue on GitHub so they will be able to respond quicker.

Re: UMS docker deploy: Cannot invoke "com.google.gson.JsonElement.isJsonObject()" because "element" is null

Posted: Fri Feb 03, 2023 7:08 pm
by thebrood014
i'm have the same problem A serious error occurred during Universal Media Server initialization: Cannot invoke "com.google.gson.JsonElement.isJsonObject()" because "element" is null and i don't know what to do. all my debug info is attached.
ums_dbg_2023-02-03-02-04.zip
(126.24 KiB) Downloaded 69 times

Re: UMS docker deploy: Cannot invoke "com.google.gson.JsonElement.isJsonObject()" because "element" is null

Posted: Fri Feb 03, 2023 11:09 pm
by mik_s
I knew I saw this error before, but could not remember where.

This is a bug that has already been fixed for the next version. I found out that if you turn off the external network option then this will allow UMS to initialize the web settings properly. I only found this out yesterday as I was hit with this bug too. More info here.

Re: UMS docker deploy: Cannot invoke "com.google.gson.JsonElement.isJsonObject()" because "element" is null

Posted: Sat Feb 04, 2023 4:16 pm
by OldenBroken
I uncheck the extrernal network option but the damn thing keeps turning itself back on.

Re: UMS docker deploy: Cannot invoke "com.google.gson.JsonElement.isJsonObject()" because "element" is null

Posted: Sun Feb 05, 2023 2:59 am
by mik_s
I think that part of the old GUI might be broken as I could not get that option to turn off and save either. Works fine turning back on though.

You can edit the UMS.conf in C:\ProgramData\UMS to change the option "external_network =false", make sure UMS is not running when you change it.