[
https://issues.apache.org/jira/browse/KNOX-900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sandeep More updated KNOX-900:
------------------------------
Attachment: KNOX-900.001.patch
In this particular UnitTest we open 100 websocket sessions and try to send data
through them. For some reason, intermittently some sessions seem to die, the
fix tries to look for closed and null sessions before sending data.
> UnitTest WebsocketMultipleConnectionTest intermittantly fails with NPE
> ----------------------------------------------------------------------
>
> Key: KNOX-900
> URL: https://issues.apache.org/jira/browse/KNOX-900
> Project: Apache Knox
> Issue Type: Bug
> Components: Tests
> Affects Versions: 0.11.0
> Environment: Jenkins
> Reporter: Sandeep More
> Assignee: Sandeep More
> Fix For: 0.12.0
>
> Attachments: KNOX-900.001.patch
>
>
> https://builds.apache.org/job/Knox-0.12.0/lastBuild/org.apache.knox$gateway-server/testReport/org.apache.hadoop.gateway.websockets/WebsocketMultipleConnectionTest/testMultipleConnections/
> Error Message
> RemoteEndpoint unavailable, outgoing connection not open
> Stacktrace
> org.eclipse.jetty.websocket.api.WebSocketException: RemoteEndpoint
> unavailable, outgoing connection not open
> at
> org.eclipse.jetty.websocket.common.WebSocketSession.getRemote(WebSocketSession.java:252)
> at
> org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote.<init>(AbstractJsrRemote.java:50)
> at
> org.eclipse.jetty.websocket.jsr356.JsrBasicRemote.<init>(JsrBasicRemote.java:44)
> at
> org.eclipse.jetty.websocket.jsr356.JsrSession.getBasicRemote(JsrSession.java:166)
> at
> org.apache.hadoop.gateway.websockets.WebsocketMultipleConnectionTest.testMultipleConnections(WebsocketMultipleConnectionTest.java:165)
> Standard Output
> ERROR [org.apache.hadoop.gateway.websockets] Error:
> java.lang.NullPointerException
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)