{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6710","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6710/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6710/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6710/events","html_url":"https://github.com/orientechnologies/orientdb/issues/6710","id":177776863,"number":6710,"title":"Public Address declaration makes OrientDB Crash","user":{"login":"Pro-Vizion","id":19283770,"avatar_url":"https://avatars.githubusercontent.com/u/19283770?v=3","gravatar_id":"","url":"https://api.github.com/users/Pro-Vizion","html_url":"https://github.com/Pro-Vizion","followers_url":"https://api.github.com/users/Pro-Vizion/followers","following_url":"https://api.github.com/users/Pro-Vizion/following{/other_user}","gists_url":"https://api.github.com/users/Pro-Vizion/gists{/gist_id}","starred_url":"https://api.github.com/users/Pro-Vizion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pro-Vizion/subscriptions","organizations_url":"https://api.github.com/users/Pro-Vizion/orgs","repos_url":"https://api.github.com/users/Pro-Vizion/repos","events_url":"https://api.github.com/users/Pro-Vizion/events{/privacy}","received_events_url":"https://api.github.com/users/Pro-Vizion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/waiting%20reply","name":"waiting reply","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"assignees":[{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-09-19T12:54:34Z","updated_at":"2016-09-20T08:15:45Z","closed_at":null,"body":"## OrientDB Version, operating system, or hardware.\r\n- v2.0 SNAPSHOT[ ] - .18[ ] .17[ ] .16[ ] .15[ ] .14[ ] .13[ ] .12[ ] .11[ ] .10[ ] .9[ ] .8[ ] .7[ ] .6[ ] .5[ ] .4[ ] .3[ ] .2[ ] .1[ ] .0[ ]\r\n- v2.1 SNAPSHOT[ ] - .16[ ] .15[ ] .14[ ] .13[ ] .12[ ] .11[ ] .10[ ] .9[ ] .8[ ] .7[ ] .6[ ] .5[ ] .4[ ] .3[ ] .2[ ] .1[ ] .0[ ]\r\n- v2.2 SNAPSHOT[ ] - .rc1[ ] .beta2[ ] .beta1[ ] .10[X]\r\n\r\n## Operating System\r\n- [ ] Linux\r\n- [ ] MacOSX\r\n- [X] Windows\r\n- [ ] Other Unix\r\n- [ ] Other, name? \r\n\r\n## Steps to reproduce the problem\r\n\r\n## Error 1\r\nIn hazelcast.xml, when declaring a public ip address : \r\n`<public-address>192.168.1.XX</public-address>`\r\nIf we don't give a port number, we have this error : \r\n```\r\nError on starting distributed plugin\r\njava.lang.StringIndexOutOfBoundsException: String index out of range: -1\r\n    at java.lang.String.substring(Unknown Source)\r\n    at com.orientechnologies.orient.server.distributed.ORemoteServerChannel.<init>(ORemoteServerChannel.java:69)\r\n    at com.orientechnologies.orient.server.distributed.ORemoteServerController.<init>(ORemoteServerController.java:50)\r\n    at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.getRemoteServer(OHazelcastPlugin.java:522)\r\n    at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.startup(OHazelcastPlugin.java:205)\r\n    at com.orientechnologies.orient.server.OServer.registerPlugins(OServer.java:1208)\r\n    at com.orientechnologies.orient.server.OServer.activate(OServer.java:391)\r\n    at com.provizion.node.launcher.Main.startOrientDB(Main.java:278)\r\n    at com.provizion.node.launcher.Main.startNode(Main.java:619)\r\n    at com.provizion.node.launcher.Main.main(Main.java:651)\r\n```\r\nThe problem is inside ORemoteServerChannel class constructor. Line 69. You don't check the value content before doing a substring on it.\r\n\r\n## Error 2\r\nIn hazelcast.xml, when declaring a public ip address : \r\n`<public-address>192.168.1.XX:NNNN</public-address>`\r\nIf we give a port number, we have an error later : \r\n\r\n```\r\nError while logging processing event\r\ncom.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException: Cannot read protocol version from remote server /192.168.1.34:18879: java.net.SocketTimeoutException: Read timed out\r\n    at com.orientechnologies.orient.client.binary.OChannelBinaryClientAbstract.<init>(OChannelBinaryClientAbstract.java:87)\r\n    at com.orientechnologies.orient.client.binary.OChannelBinarySynchClient.<init>(OChannelBinarySynchClient.java:32)\r\n    at com.orientechnologies.orient.server.distributed.ORemoteServerChannel.connect(ORemoteServerChannel.java:104)\r\n    at com.orientechnologies.orient.server.distributed.ORemoteServerChannel.<init>(ORemoteServerChannel.java:72)\r\n    at com.orientechnologies.orient.server.distributed.ORemoteServerController.<init>(ORemoteServerController.java:50)\r\n    at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.getRemoteServer(OHazelcastPlugin.java:522)\r\n    at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.registerNode(OHazelcastPlugin.java:754)\r\n    at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.entryAdded(OHazelcastPlugin.java:709)\r\n    at com.hazelcast.map.impl.MapListenerAdaptors$1$1.onEvent(MapListenerAdaptors.java:66)\r\n    at com.hazelcast.map.impl.MapListenerAdaptors$1$1.onEvent(MapListenerAdaptors.java:63)\r\n    at com.hazelcast.map.impl.InternalMapListenerAdapter.onEvent(InternalMapListenerAdapter.java:56)\r\n    at com.hazelcast.map.impl.InternalMapListenerAdapter.onEvent(InternalMapListenerAdapter.java:35)\r\n    at com.hazelcast.map.impl.event.MapEventPublishingService.callListener(MapEventPublishingService.java:109)\r\n    at com.hazelcast.map.impl.event.MapEventPublishingService.dispatchEntryEventData(MapEventPublishingService.java:121)\r\n    at com.hazelcast.map.impl.event.MapEventPublishingService.dispatchEvent(MapEventPublishingService.java:51)\r\n    at com.hazelcast.map.impl.event.MapEventPublishingService.dispatchEvent(MapEventPublishingService.java:38)\r\n    at com.hazelcast.map.impl.MapService.dispatchEvent(MapService.java:94)\r\n```\r\n\r\n## Expected behavior and actual behavior\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/248234834","html_url":"https://github.com/orientechnologies/orientdb/issues/6710#issuecomment-248234834","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6710","id":248234834,"user":{"login":"Pro-Vizion","id":19283770,"avatar_url":"https://avatars.githubusercontent.com/u/19283770?v=3","gravatar_id":"","url":"https://api.github.com/users/Pro-Vizion","html_url":"https://github.com/Pro-Vizion","followers_url":"https://api.github.com/users/Pro-Vizion/followers","following_url":"https://api.github.com/users/Pro-Vizion/following{/other_user}","gists_url":"https://api.github.com/users/Pro-Vizion/gists{/gist_id}","starred_url":"https://api.github.com/users/Pro-Vizion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pro-Vizion/subscriptions","organizations_url":"https://api.github.com/users/Pro-Vizion/orgs","repos_url":"https://api.github.com/users/Pro-Vizion/repos","events_url":"https://api.github.com/users/Pro-Vizion/events{/privacy}","received_events_url":"https://api.github.com/users/Pro-Vizion/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T08:15:45Z","updated_at":"2016-09-20T08:15:45Z","body":"Ok, so you know what? my bad. it's my fault, i gave you too much information.\r\nforget the \"Error 2\".... can you please focus on \"Error 1\" ?\r\nLike i said, this Error 2 is only the result of putting a port number in the public-address tag. Something that should not be done.\r\n\r\nThe main problem we're talking here is : that your code **force us** to put the \"IP:PPPP\" in this tag. **If we don't**, we have a **java.lang.StringIndexOutOfBoundsException**\r\n\r\nPlease check **ORemoteServerChannel** class constructor. **Line 69**. You don't check the value content before doing a substring on it. That's it....\r\n\r\nIs it more clear?"}}
{"actor":{"display_login":"Pro-Vizion"}}