hc-dev mailing list archives

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

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

Johann commented on HTTPCORE-419:
---------------------------------

Thanks Gary, I'll try deploying with the latest version. Unfortunately, I can't use the latest
SDK on Linux because it always tries to launch {{%u}} as the OAuth URL which is a bit weird.

> 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