[prev in list] [next in list] [prev in thread] [next in thread]
List: wink-dev
Subject: [jira] [Commented] (WINK-425) NullPointerException in getContentLengthValue (HeadMethodHandler.java:
From: "Slawomir Lisznianski (JIRA)" <jira () apache ! org>
Date: 2016-11-08 14:21:58
Message-ID: JIRA.12738319.1409600108000.221470.1478614918395 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/WINK-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15647687#comment-15647687 \
]
Slawomir Lisznianski commented on WINK-425:
-------------------------------------------
Sure!
> NullPointerException in getContentLengthValue (HeadMethodHandler.java:100)
> --------------------------------------------------------------------------
>
> Key: WINK-425
> URL: https://issues.apache.org/jira/browse/WINK-425
> Project: Wink
> Issue Type: Bug
> Components: Server
> Affects Versions: 1.4
> Environment: Ubuntu 14.04 LTS, Apache 2.4.7, Tomcat 7, Wink 1.4
> Reporter: Slawomir Lisznianski
>
> I'd like to reopen bug WINK-357 reported on 11/Jan/12.
> A web crawler hitting any of my resources with a HEAD request will cause this error \
> since countingStream is NULL here: {code:java}
> HeadMethodHandler.java:100:
> getContentLengthValue() {
> return countingStream.getByteCount();
> }
> {code}
> One should not be required to handle HEAD requests only to avoid this bug from \
> being exposed. {code:xml}
> i2014-08-28 17:19:18:982 [ajp-bio-8009-exec-1] INFO \
> org.apache.wink.server.internal.registry.ResourceRegistry - The system cannot find \
> any method in the ************ class that supports HEAD
> . Verify that a method exists.
> 2014-08-28 17:19:18:987 [ajp-bio-8009-exec-1] INFO \
> org.apache.wink.server.internal.RequestProcessor - The following error occurred \
> during the invocation of the handlers chain: NullPointerException with message \
> 'null' while processing HEAD request sent to \
> https://pushcoin.com/api/v1/guest/fbauths/code 2014-08-28 17:19:18:987 \
> [ajp-bio-8009-exec-1] ERROR com.pushcoin.pws.provider.UnknownExceptionMapper - \
> Error: java.lang.NullPointerException
> at org.apache.wink.server.internal.handlers.HeadMethodHandler$NoBodyResponse.getContentLengthValue(HeadMethodHandler.java:100)
> at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleResponse(HeadMethodHandler.java:83)
> at org.apache.wink.server.handlers.ResponseHandlersChain.handle(ResponseHandlersChain.java:26)
> at org.apache.wink.server.handlers.ResponseHandlersChain.handle(ResponseHandlersChain.java:22)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic