{"action":"created","issue":{"url":"https://api.github.com/repos/ChargeTimeEU/Java-OCA-OCPP/issues/37","repository_url":"https://api.github.com/repos/ChargeTimeEU/Java-OCA-OCPP","labels_url":"https://api.github.com/repos/ChargeTimeEU/Java-OCA-OCPP/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/ChargeTimeEU/Java-OCA-OCPP/issues/37/comments","events_url":"https://api.github.com/repos/ChargeTimeEU/Java-OCA-OCPP/issues/37/events","html_url":"https://github.com/ChargeTimeEU/Java-OCA-OCPP/issues/37","id":311644621,"number":37,"title":"Testing with Steve","user":{"login":"victormunoz","id":12271074,"avatar_url":"https://avatars0.githubusercontent.com/u/12271074?v=4","gravatar_id":"","url":"https://api.github.com/users/victormunoz","html_url":"https://github.com/victormunoz","followers_url":"https://api.github.com/users/victormunoz/followers","following_url":"https://api.github.com/users/victormunoz/following{/other_user}","gists_url":"https://api.github.com/users/victormunoz/gists{/gist_id}","starred_url":"https://api.github.com/users/victormunoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victormunoz/subscriptions","organizations_url":"https://api.github.com/users/victormunoz/orgs","repos_url":"https://api.github.com/users/victormunoz/repos","events_url":"https://api.github.com/users/victormunoz/events{/privacy}","received_events_url":"https://api.github.com/users/victormunoz/received_events","type":"User","site_admin":false},"labels":[{"id":370011121,"url":"https://api.github.com/repos/ChargeTimeEU/Java-OCA-OCPP/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"TVolden","id":4420919,"avatar_url":"https://avatars2.githubusercontent.com/u/4420919?v=4","gravatar_id":"","url":"https://api.github.com/users/TVolden","html_url":"https://github.com/TVolden","followers_url":"https://api.github.com/users/TVolden/followers","following_url":"https://api.github.com/users/TVolden/following{/other_user}","gists_url":"https://api.github.com/users/TVolden/gists{/gist_id}","starred_url":"https://api.github.com/users/TVolden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TVolden/subscriptions","organizations_url":"https://api.github.com/users/TVolden/orgs","repos_url":"https://api.github.com/users/TVolden/repos","events_url":"https://api.github.com/users/TVolden/events{/privacy}","received_events_url":"https://api.github.com/users/TVolden/received_events","type":"User","site_admin":false},"assignees":[{"login":"TVolden","id":4420919,"avatar_url":"https://avatars2.githubusercontent.com/u/4420919?v=4","gravatar_id":"","url":"https://api.github.com/users/TVolden","html_url":"https://github.com/TVolden","followers_url":"https://api.github.com/users/TVolden/followers","following_url":"https://api.github.com/users/TVolden/following{/other_user}","gists_url":"https://api.github.com/users/TVolden/gists{/gist_id}","starred_url":"https://api.github.com/users/TVolden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TVolden/subscriptions","organizations_url":"https://api.github.com/users/TVolden/orgs","repos_url":"https://api.github.com/users/TVolden/repos","events_url":"https://api.github.com/users/TVolden/events{/privacy}","received_events_url":"https://api.github.com/users/TVolden/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-04-05T14:53:55Z","updated_at":"2018-04-05T17:36:07Z","closed_at":null,"author_association":"NONE","body":"I am trying to use this project as a chargepoint simulator to make tests with a central system that is running with Steve, now that it supports OCPP 1.6 (https://github.com/RWTH-i5-IDSG/steve).\r\nBut I haven't succeded on receiving any message in the Steve central system, neither using SOAP nor JSON types.\r\n\r\nI have created a very basic main app that simply starts a chargepoint:\r\n\r\n```\r\nFakeChargePoint chargePoint = new FakeChargePoint();\r\nchargePoint.connect();\r\nchargePoint.sendBootNotification(\"A\", \"B\");\r\nchargePoint.sendHeartbeatRequest();\r\n```\r\nAnd in the constructor of the FakeChargePoint class I have changed the url to the ones that are provided by steve once it is started:\r\n\r\n```\r\nswitch (type) {\r\n            case JSON:\r\n                client = new JSONClient(core, \"testdummy\");\r\n                url = \"ws://192.168.1.7:9220/steve/websocket/CentralSystemService/testdummy\";\r\n                break;\r\n            case SOAP:\r\n                client = new SOAPClient(\"me\", new URL(\"http://127.0.0.1:8889\"), core);\r\n                url = \"http://192.168.1.7:9220/steve/services/CentralSystemService\";\r\n                break;\r\n        }\r\n```\r\n\r\nThis code compiles and executes without problems or error messages. However, the Steve central system does not seem to be receiving anything at all from the chargepoint.\r\n\r\nWhat is missing?"},"comment":{"url":"https://api.github.com/repos/ChargeTimeEU/Java-OCA-OCPP/issues/comments/379016697","html_url":"https://github.com/ChargeTimeEU/Java-OCA-OCPP/issues/37#issuecomment-379016697","issue_url":"https://api.github.com/repos/ChargeTimeEU/Java-OCA-OCPP/issues/37","id":379016697,"user":{"login":"goekay","id":3861031,"avatar_url":"https://avatars0.githubusercontent.com/u/3861031?v=4","gravatar_id":"","url":"https://api.github.com/users/goekay","html_url":"https://github.com/goekay","followers_url":"https://api.github.com/users/goekay/followers","following_url":"https://api.github.com/users/goekay/following{/other_user}","gists_url":"https://api.github.com/users/goekay/gists{/gist_id}","starred_url":"https://api.github.com/users/goekay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goekay/subscriptions","organizations_url":"https://api.github.com/users/goekay/orgs","repos_url":"https://api.github.com/users/goekay/repos","events_url":"https://api.github.com/users/goekay/events{/privacy}","received_events_url":"https://api.github.com/users/goekay/received_events","type":"User","site_admin":false},"created_at":"2018-04-05T17:36:07Z","updated_at":"2018-04-05T17:36:07Z","author_association":"NONE","body":"_i think_, the problem lies in the [OcppDraft](https://github.com/ChargeTimeEU/Java-OCA-OCPP/blob/master/ocpp-v1_6/src/main/java/eu/chargetime/ocpp/OcppDraft.java).\r\n\r\nfirst of all, the methods `postProcessHandshakeRequestAsClient` and `postProcessHandshakeResponseAsServer` call themselves and create an infinite recursion. i guess, you want to call the super method, but the `super.` prefix is missing.\r\n\r\non the other hand, you shouldn't set the `Sec-WebSocket-Protocol` this way anyways. if you look at the `Draft_6455`, the impl is actually complete enough to set protocols and deal with them etc. \r\n\r\nyou should only call its constructor by setting the wanted protocol, like:\r\n```\r\npublic OcppDraft() {\r\n    super(Collections.emptyList(), Collections.singletonList(new Protocol(\"ocpp1.6\")));\r\n}\r\n```\r\n\r\nbut, i am not familiar with the code base and this is my observation after looking at the code for a few minutes. i hope it helps."}}
{"actor":{"display_login":"goekay"}}