[SWS-494] AbstractHttpSenderConnection getErrorMessage() Created: 12/Mar/09  Updated: 04/May/12  Resolved: 12/May/09

Status: Closed
Project: Spring Web Services
Component/s: Core
Affects Version/s: 1.5.6
Fix Version/s: 1.5.7

Type: Bug Priority: Major
Reporter: pavlin Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

winXP sp3, jdk1.5.0_14, tomcat 6


I have situation where AbstractHttpSenderConnection.getResponseMessage() returns null which results in NullPointerException at AbstractHttpSenderConnection.getErrorMessage() due to the construcor of StringBuffer ( when passed String to the StringBuffer it tries to get it's length ) I can't imagine why null is not casted to "null"

StringBuffer buffer = new StringBuffer(getResponseMessage());

Comment by pavlin [ 12/Mar/09 ]

And I think the problem with the NULL response message comes from here :


public String getResponseMessage() throws IOException {
	return responseMessage;

getResponseCode is 404 but responseMessage is null

hope this helps



Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Sun Mar 18 09:30:53 UTC 2018 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.