Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-494

AbstractHttpSenderConnection getErrorMessage()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.6
    • Fix Version/s: 1.5.7
    • Component/s: Core
    • Labels:
      None
    • 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());

        Activity

        Hide
        pakopako pavlin added a comment -

        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

        Show
        pakopako pavlin added a comment - 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
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing old issues

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing old issues

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            pakopako pavlin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: