[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
Environment:

winXP sp3, jdk1.5.0_14, tomcat 6



 Description   

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());



 Comments   
Comment by pavlin [ 12/Mar/09 ]

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

HttpURLConnection.java

public String getResponseMessage() throws IOException {
	getResponseCode();
	return responseMessage;
    }

getResponseCode is 404 but responseMessage is null

hope this helps

Cheers,

Pavlin

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Mon Dec 18 05:14:29 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.