{"action":"created","issue":{"url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/25","repository_url":"https://api.github.com/repos/reTHINK-project/dev-catalogue","labels_url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/25/comments","events_url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/25/events","html_url":"https://github.com/reTHINK-project/dev-catalogue/issues/25","id":149124895,"number":25,"title":"Error on RuntimeUA","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":{"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},"milestone":null,"comments":1,"created_at":"2016-04-18T11:32:52Z","updated_at":"2016-04-18T14:02:45Z","closed_at":null,"body":"Hi,\r\n\r\nI have a problem, and need help to solve it;\r\n\r\nWhen i load into the catalogue-database the [RuntimeUA distribution file](https://github.com/reTHINK-project/dev-runtime-core/blob/dev-0.4/dist/RuntimeUA.js), the catalogue-broker brokes, and throw an error:\r\n\r\nIn the log console i have this:\r\n```shell\r\n sudo docker logs --tail=18 catalogue-broker\r\n\tat org.eclipse.leshan.tlv.TlvDecoder.decode(TlvDecoder.java:143) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\tat org.eclipse.leshan.tlv.TlvDecoder.decode(TlvDecoder.java:127) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\tat org.eclipse.leshan.core.node.codec.LwM2mNodeDecoder.decode(LwM2mNodeDecoder.java:98) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\tat org.eclipse.leshan.server.californium.impl.LwM2mResponseBuilder.buildContentResponse(LwM2mResponseBuilder.java:265) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\t... 28 more\r\nCaused by: org.eclipse.leshan.tlv.TlvException: Invalid 'value' length\r\n\tat org.eclipse.leshan.tlv.TlvDecoder.decode(TlvDecoder.java:135) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\tat org.eclipse.leshan.tlv.TlvDecoder.decode(TlvDecoder.java:127) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\tat org.eclipse.leshan.core.node.codec.LwM2mNodeDecoder.decode(LwM2mNodeDecoder.java:98) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\tat org.eclipse.leshan.server.californium.impl.LwM2mResponseBuilder.buildContentResponse(LwM2mResponseBuilder.java:265) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\t... 28 more\r\nCaused by: java.lang.IllegalArgumentException\r\n\tat java.nio.Buffer.limit(Buffer.java:267) ~[?:1.7.0_95]\r\n\tat org.eclipse.leshan.tlv.TlvDecoder.decode(TlvDecoder.java:125) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\tat org.eclipse.leshan.tlv.TlvDecoder.decode(TlvDecoder.java:127) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\tat org.eclipse.leshan.core.node.codec.LwM2mNodeDecoder.decode(LwM2mNodeDecoder.java:98) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\tat org.eclipse.leshan.server.californium.impl.LwM2mResponseBuilder.buildContentResponse(LwM2mResponseBuilder.java:265) ~[rethink-catalogue-broker-1.0.4-jar-with-dependencies.jar:?]\r\n\t... 28 more\r\n```\r\nYou can see more on image.\r\n\r\n![screenshot from 2016-04-18 12-26-38](https://cloud.githubusercontent.com/assets/10596749/14602732/6d3fac30-0561-11e6-96c1-7504317a38a3.png)\r\n\r\nThe client test: https://catalogue.hybroker.rethink.ptinovacao.pt/client/\r\n\r\nCan you try to load the RuntimeUA in your test bed and try, i don't know if the problem is related with the size of file (yes, it is a big file) or it is other problem.\r\n\r\nCan you help me?\r\n"},"comment":{"url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/comments/211393793","html_url":"https://github.com/reTHINK-project/dev-catalogue/issues/25#issuecomment-211393793","issue_url":"https://api.github.com/repos/reTHINK-project/dev-catalogue/issues/25","id":211393793,"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-04-18T14:02:45Z","updated_at":"2016-04-18T14:02:45Z","body":"Hi @vitormsilva,\r\n\r\nyes this bug is related to file size and is a bug inside of leshan. \r\nI contacted them and it will be fixed in their next version, which will hopefully release this month. I'm currently adapting the catalogue to use the new version and the problem will be fixed in version 1.1.0 of the catalogue.\r\n\r\nThe bug prevents you from retrieving the sourcePackage instance from the broker, but directly requesting the sourceCode should still work, e.g.\r\n\r\nhttp://localhost/.well-known/sourcepackage/XXXXX fails, but\r\nhttp://localhost/.well-known/sourcepackage/XXXXX/sourceCode works."}}