[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 Fri Jul 20 05:06:13 UTC 2018 using JIRA 7.9.0#79000-sha1:3ca552e944c2fe83b21589bc06f155b9b428cc2b.