hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCORE-419) Catch NullPointerExceptions (NPE) in BHttpConnectionBase#close()
Date Sun, 07 Feb 2016 19:58:39 GMT

    [ https://issues.apache.org/jira/browse/HTTPCORE-419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15136407#comment-15136407
] 

Gary Gregory commented on HTTPCORE-419:
---------------------------------------

Are you using the latest GAE? The stack trace does not match https://code.google.com/p/googleappengine/source/browse/trunk/java/src/main/com/google/appengine/api/socket/SocketApiHelper.java

There is no {{SocketApiHelper.java:119}}

> 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