{"action":"created","issue":{"url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/30","repository_url":"https://api.github.com/repos/reTHINK-project/dev-catalogue","labels_url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/30/comments","events_url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/30/events","html_url":"https://github.com/reTHINK-project/dev-catalogue/issues/30","id":158403042,"number":30,"title":"Catalogue database error","user":{"login":"vitormsilva","id":10596749,"avatar_url":"https://avatars.githubusercontent.com/u/10596749?v=3","gravatar_id":"","url":"https://api.github.com/users/vitormsilva","html_url":"https://github.com/vitormsilva","followers_url":"https://api.github.com/users/vitormsilva/followers","following_url":"https://api.github.com/users/vitormsilva/following{/other_user}","gists_url":"https://api.github.com/users/vitormsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/vitormsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitormsilva/subscriptions","organizations_url":"https://api.github.com/users/vitormsilva/orgs","repos_url":"https://api.github.com/users/vitormsilva/repos","events_url":"https://api.github.com/users/vitormsilva/events{/privacy}","received_events_url":"https://api.github.com/users/vitormsilva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-03T16:16:02Z","updated_at":"2016-06-07T09:50:07Z","closed_at":null,"body":"Hi @Endebert,\r\n\r\nI have this error when i start the catalogue, [catalogue-database-ptinovacao.txt](https://github.com/reTHINK-project/dev-catalogue/files/297953/catalogue-database-ptinovacao.txt)\r\n\r\nI don't know if I'm doing something wrong..\r\n\r\nI'm using the this [database](https://github.com/reTHINK-project/dev-catalogue/tree/master/docker/catalogue-database-reTHINKdefault), i don't know if is related with the information added to the header, example [runtime sourceCode.js](https://github.com/reTHINK-project/dev-catalogue/blob/master/docker/catalogue-database-reTHINKdefault/catalogue_objects/runtime/Runtime/sourceCode.js)\r\n\r\nI'm using the docker-compose to startup all the services, check [here](https://github.com/reTHINK-project/testbeds/tree/master/nodes/PT-node)\r\n\r\nCan you help me?\r\n\r\nThanks\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/comments/224232794","html_url":"https://github.com/reTHINK-project/dev-catalogue/issues/30#issuecomment-224232794","issue_url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/30","id":224232794,"user":{"login":"Endebert","id":9431420,"avatar_url":"https://avatars.githubusercontent.com/u/9431420?v=3","gravatar_id":"","url":"https://api.github.com/users/Endebert","html_url":"https://github.com/Endebert","followers_url":"https://api.github.com/users/Endebert/followers","following_url":"https://api.github.com/users/Endebert/following{/other_user}","gists_url":"https://api.github.com/users/Endebert/gists{/gist_id}","starred_url":"https://api.github.com/users/Endebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Endebert/subscriptions","organizations_url":"https://api.github.com/users/Endebert/orgs","repos_url":"https://api.github.com/users/Endebert/repos","events_url":"https://api.github.com/users/Endebert/events{/privacy}","received_events_url":"https://api.github.com/users/Endebert/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T09:50:07Z","updated_at":"2016-06-07T09:50:07Z","body":"@vitormsilva I was able to reproduce the error by modifying the descritption.json. In the current version, it would look like this:\r\n```\r\n2016-06-07 11:43:55,141 E CatalogueDatabase  Parsing ./catalogue_objects/runtime/Runtime/description.json failed!\r\n com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 23 column 2 path $.protocolCapabilities\r\n\tat com.google.gson.internal.Streams.parse(Streams.java:60) ~[rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\tat com.google.gson.JsonParser.parse(JsonParser.java:84) ~[rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\tat com.google.gson.JsonParser.parse(JsonParser.java:59) ~[rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\tat eu.rethink.catalogue.database.CatalogueDatabase.parseJson(CatalogueDatabase.java:386) ~[rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\tat eu.rethink.catalogue.database.CatalogueDatabase.parseObjects(CatalogueDatabase.java:421) [rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\tat eu.rethink.catalogue.database.CatalogueDatabase.start(CatalogueDatabase.java:318) [rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\tat eu.rethink.catalogue.database.CatalogueDatabase.main(CatalogueDatabase.java:267) [rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\nCaused by: com.google.gson.stream.MalformedJsonException: Expected name at line 23 column 2 path $.protocolCapabilities\r\n\tat com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1567) ~[rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\tat com.google.gson.stream.JsonReader.doPeek(JsonReader.java:509) ~[rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\tat com.google.gson.stream.JsonReader.hasNext(JsonReader.java:418) ~[rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\tat com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:742) ~[rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\tat com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:718) ~[rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\tat com.google.gson.internal.Streams.parse(Streams.java:48) ~[rethink-catalogue-database-1.1.0-jar-with-dependencies.jar:?]\r\n\t... 6 more\r\n2016-06-07 11:43:55,144 E CatalogueDatabase  Contents of file ./catalogue_objects/runtime/Runtime/description.json:\r\n2016-06-07 11:43:55,144 E CatalogueDatabase  {\r\n2016-06-07 11:43:55,144 E CatalogueDatabase    \"cguid\": \"30002\",\r\n2016-06-07 11:43:55,144 E CatalogueDatabase    \"runtimeType\": \"browser\",\r\n2016-06-07 11:43:55,144 E CatalogueDatabase    \"version\": \"1.0\",\r\n2016-06-07 11:43:55,144 E CatalogueDatabase    \"objectName\": \"Runtime\",\r\n2016-06-07 11:43:55,144 E CatalogueDatabase    \"description\": \"This is a hyperty runtime descriptor\",\r\n2016-06-07 11:43:55,144 E CatalogueDatabase    \"language\": \"Javascript ECMA6\",\r\n2016-06-07 11:43:55,144 E CatalogueDatabase    \"hypertyCapabilities\": {\r\n2016-06-07 11:43:55,144 E CatalogueDatabase      \"mic\": true,\r\n2016-06-07 11:43:55,145 E CatalogueDatabase      \"camera\": true,\r\n2016-06-07 11:43:55,145 E CatalogueDatabase      \"sensor\": false,\r\n2016-06-07 11:43:55,145 E CatalogueDatabase      \"webrtc\": true,\r\n2016-06-07 11:43:55,145 E CatalogueDatabase      \"ortc\": true\r\n2016-06-07 11:43:55,145 E CatalogueDatabase    },\r\n2016-06-07 11:43:55,145 E CatalogueDatabase    \"protocolCapabilities\": {\r\n2016-06-07 11:43:55,145 E CatalogueDatabase      \"http\": true,\r\n2016-06-07 11:43:55,145 E CatalogueDatabase      \"https\": true,\r\n2016-06-07 11:43:55,145 E CatalogueDatabase      \"ws\": true,\r\n2016-06-07 11:43:55,145 E CatalogueDatabase      \"wss\": true,\r\n2016-06-07 11:43:55,145 E CatalogueDatabase      \"coap\": false,\r\n2016-06-07 11:43:55,145 E CatalogueDatabase      \"datachannel\": false\r\n2016-06-07 11:43:55,145 E CatalogueDatabase    },\r\n2016-06-07 11:43:55,145 E CatalogueDatabase  }\r\n```\r\nI'm pretty sure the reason for the error is one too many commas in the file, specifically a comma after the `protocolCapabilities` object.\r\n\r\nAfter checking the git history of description.json, I can see that [you even fixed that error yourself 4 days ago](https://github.com/reTHINK-project/dev-catalogue/commit/68fcc84488c4a0c75545c45ad576929f49cd00e2). I guess you are just not using the most recent version."}}
{"actor":{"display_login":"Endebert"}}