{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/SignalR/issues/3303","repository_url":"https://api.github.com/repos/aspnet/SignalR","labels_url":"https://api.github.com/repos/aspnet/SignalR/issues/3303/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/SignalR/issues/3303/comments","events_url":"https://api.github.com/repos/aspnet/SignalR/issues/3303/events","html_url":"https://github.com/aspnet/SignalR/issues/3303","id":380678250,"node_id":"MDU6SXNzdWUzODA2NzgyNTA=","number":3303,"title":"Java client: NullPointerException in thread \"OkHttp Dispatcher\" when connection timeout","user":{"login":"a-konyaev","id":19644291,"node_id":"MDQ6VXNlcjE5NjQ0Mjkx","avatar_url":"https://avatars2.githubusercontent.com/u/19644291?v=4","gravatar_id":"","url":"https://api.github.com/users/a-konyaev","html_url":"https://github.com/a-konyaev","followers_url":"https://api.github.com/users/a-konyaev/followers","following_url":"https://api.github.com/users/a-konyaev/following{/other_user}","gists_url":"https://api.github.com/users/a-konyaev/gists{/gist_id}","starred_url":"https://api.github.com/users/a-konyaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-konyaev/subscriptions","organizations_url":"https://api.github.com/users/a-konyaev/orgs","repos_url":"https://api.github.com/users/a-konyaev/repos","events_url":"https://api.github.com/users/a-konyaev/events{/privacy}","received_events_url":"https://api.github.com/users/a-konyaev/received_events","type":"User","site_admin":false},"labels":[{"id":531772650,"node_id":"MDU6TGFiZWw1MzE3NzI2NTA=","url":"https://api.github.com/repos/aspnet/SignalR/labels/status:%20Investigate","name":"status: Investigate","color":"e580c2","default":false}],"state":"closed","locked":false,"assignee":{"login":"mikaelm12","id":4809660,"node_id":"MDQ6VXNlcjQ4MDk2NjA=","avatar_url":"https://avatars1.githubusercontent.com/u/4809660?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaelm12","html_url":"https://github.com/mikaelm12","followers_url":"https://api.github.com/users/mikaelm12/followers","following_url":"https://api.github.com/users/mikaelm12/following{/other_user}","gists_url":"https://api.github.com/users/mikaelm12/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelm12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelm12/subscriptions","organizations_url":"https://api.github.com/users/mikaelm12/orgs","repos_url":"https://api.github.com/users/mikaelm12/repos","events_url":"https://api.github.com/users/mikaelm12/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelm12/received_events","type":"User","site_admin":false},"assignees":[{"login":"mikaelm12","id":4809660,"node_id":"MDQ6VXNlcjQ4MDk2NjA=","avatar_url":"https://avatars1.githubusercontent.com/u/4809660?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaelm12","html_url":"https://github.com/mikaelm12","followers_url":"https://api.github.com/users/mikaelm12/followers","following_url":"https://api.github.com/users/mikaelm12/following{/other_user}","gists_url":"https://api.github.com/users/mikaelm12/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelm12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelm12/subscriptions","organizations_url":"https://api.github.com/users/mikaelm12/orgs","repos_url":"https://api.github.com/users/mikaelm12/repos","events_url":"https://api.github.com/users/mikaelm12/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelm12/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-11-14T12:35:06Z","updated_at":"2018-12-13T19:03:22Z","closed_at":"2018-12-13T19:03:22Z","author_association":"NONE","body":"I have been trying to connect to server through proxy and have gotten connection timeout.\r\nBut during handle that error java-client library failed with NPE:\r\n```\r\nException in thread \"OkHttp Dispatcher\" java.lang.NullPointerException\r\n\tat com.microsoft.signalr.HubConnection.stopConnection(HubConnection.java:431)\r\n\tat com.microsoft.signalr.HubConnection.lambda$null$6(HubConnection.java:301)\r\n\tat com.microsoft.signalr.WebSocketTransport.onClose(WebSocketTransport.java:93)\r\n\tat com.microsoft.signalr.WebSocketTransport.lambda$start$24(WebSocketTransport.java:56)\r\n\tat com.microsoft.signalr.OkHttpWebSocketWrapper$SignalRWebSocketListener.onFailure(OkHttpWebSocketWrapper.java:98)\r\n\tat okhttp3.internal.ws.RealWebSocket.failWebSocket(RealWebSocket.java:570)\r\n\tat okhttp3.internal.ws.RealWebSocket$2.onFailure(RealWebSocket.java:220)\r\n\tat okhttp3.RealCall$AsyncCall.execute(RealCall.java:161)\r\n\tat okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```\r\nThere is error in method com.microsoft.signalr.HubConnection#stopConnection at line:\r\nhttps://github.com/aspnet/SignalR/blob/release/2.2/clients/java/signalr/src/main/java/com/microsoft/signalr/HubConnection.java#L431\r\nconnectionState is null when this line is executing.\r\n\r\nMy client code:\r\n```\r\n        HubConnection hubConnection = HubConnectionBuilder\r\n                .create(\"http://some-server\")\r\n                .build();\r\n        hubConnection.start()\r\n                .timeout(10, TimeUnit.SECONDS)\r\n                .blockingAwait();\r\n```"}}
{"actor":{"display_login":"mikaelm12"}}