hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCORE-419) Catch NullPointerExceptions (NPE) in BHttpConnectionBase#close()
Date Mon, 15 Feb 2016 14:29:18 GMT

     [ https://issues.apache.org/jira/browse/HTTPCORE-419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCORE-419.
----------------------------------------
    Resolution: Won't Fix

> Catch NullPointerExceptions (NPE) in BHttpConnectionBase#close()
> ----------------------------------------------------------------
>
>                 Key: HTTPCORE-419
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-419
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore
>    Affects Versions: 4.4.4
>         Environment: Google App Engine
>            Reporter: Johann
>              Labels: easyfix
>
> Google App Engine occasionally throws a NullPointerException when calling {{Socket#shutdownInput()}}
and {{Socket#shutdownOutput()}}. Here are some stack traces:
> {code}
> Uncaught exception from servlet
> java.lang.NullPointerException
>      at com.google.appengine.api.socket.SocketApiHelper.translateError(SocketApiHelper.java:100)
>      at com.google.appengine.api.socket.SocketApiHelper.translateError(SocketApiHelper.java:119)
>      at com.google.appengine.api.socket.SocketApiHelper.makeSyncCall(SocketApiHelper.java:85)
>      at com.google.appengine.api.socket.AppEngineSocketImpl.shutdownOutput(AppEngineSocketImpl.java:678)
>      at java.net.Socket.shutdownOutput(Socket.java:1544)
>      at org.apache.http.impl.BHttpConnectionBase.close(BHttpConnectionBase.java:325)
> Uncaught exception from servlet
> java.lang.NullPointerException
>      at com.google.appengine.api.socket.SocketApiHelper.translateError(SocketApiHelper.java:100)
>      at com.google.appengine.api.socket.SocketApiHelper.translateError(SocketApiHelper.java:119)
>      at com.google.appengine.api.socket.SocketApiHelper.makeSyncCall(SocketApiHelper.java:85)
>      at com.google.appengine.api.socket.AppEngineSocketImpl.shutdownInput(AppEngineSocketImpl.java:664)
>      at java.net.Socket.shutdownInput(Socket.java:1514)
>      at org.apache.http.impl.BHttpConnectionBase.close(BHttpConnectionBase.java:329)
> {code}
> Would it be possible to catch those NPEs so I don't have to override the class manually?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message