keeps / dbptk-enterprise

DBPTK Enterprise deployment using docker
https://database-preservation.com
GNU Lesser General Public License v3.0
4 stars 2 forks source link

[NullPointerException] html is null #9

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi db-visualization-toolkit-docker. I have succeed in running the docker-compose up command. Everything seems to be working, but when I try to access "http://localhost:8080" i get an "Unexpected Error" saying "[NullPointerException] html is null". What to do?

hmiguim commented 4 years ago

Hi @mennskr,

That was a problem very similar that was fixed in the version 2.4.1. https://github.com/keeps/db-visualization-toolkit/issues/207.

Please check the image you are running and do a docker pull of the latest one.

Tell me if that fixed your problem

ghost commented 4 years ago

He @hmiguim

I would love to do that, but I don't know how to. Can you help me with som quick instructions?

ghost commented 4 years ago

docker image inspect keeps/dbvtk

return

"Id": "sha256:47d2c207569da6e1d8b55ba349501dbe5ac399cd97a0131a79408463f45091ae", "RepoTags": [ "keeps/dbvtk:latest" ], "RepoDigests": [ "keeps/dbvtk@sha256:74cf17a3f2f13b66947fff6be391d87cf003d1ec4b952b71d6ae6ea03eac616d" ], "Parent": "", "Comment": "", "Created": "2020-04-20T11:34:06.838191799Z",

luis100 commented 4 years ago

Could you provide the output of http://localhost:8080/version.json

ghost commented 4 years ago

I did a docker pull keeps/dbvtk:latest but sadly it did not change anything

luis100 commented 4 years ago

Note that this problem was originally due to a property missing from the file dbvtk-viewer.properties in configuration:

ui.header.title=<img src="api/v1/theme?resource_id=dbptk_logo_white_vector.svg" class="header-logo"><span class="header-text">DBPTK Enterprise</span>
ghost commented 4 years ago

{"git.build.user.email":"travis@example.org","git.build.host":"localhost","git.dirty":"true","git.remote.origin.url":"https://github.com/keeps/db-visualization-toolkit.git","git.closest.tag.name":"v2.4.1","git.commit.id.describe-short":"v2.4.1","git.commit.user.email":"mguimaraes@keep.pt","git.commit.time":"2020-04-17T14:36:45+0000","git.commit.message.full":"Setting version 2.4.1","git.build.version":"2.4.1","git.commit.message.short":"Setting version 2.4.1","git.commit.id.abbrev":"63e9f48","git.branch":"63e9f48350e3d8a68680aa36bc63e7d43c0af9b9","git.build.user.name":"Travis CI User","git.closest.tag.commit.count":"0","git.commit.id.describe":"v2.4.1","git.commit.id":"63e9f48350e3d8a68680aa36bc63e7d43c0af9b9","git.tags":"v2.4.1","git.build.time":"2020-04-17T14:48:46+0000","git.commit.user.name":"mguimaraes"}

ghost commented 4 years ago

I did check my dbvtk-viewer.properties for ui.header.title

##############################################
# Header
##############################################
ui.header.title=<img src="api/v1/theme?resource_id=dbptk_logo_white_vector.svg" class="header-logo"><span class="header-text">DBPTK Enterprise</span>
luis100 commented 4 years ago

When the error appears, can you find a stack trace in the Javascript console?

ghost commented 4 years ago

stack-trace

luis100 commented 4 years ago

NPE error happens at: https://github.com/keeps/db-visualization-toolkit/blob/master/src/main/java/com/databasepreservation/server/client/main/MainPanel.java#L104

ghost commented 4 years ago

I reinstalled my computer with Windows. And installed Enterprise and then Desktop, and now everything is working. Sorry if the error was on my side. I really don't know, but I'm happy it's working.