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

        pakopako pavlin created issue -
        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
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Fix Version/s 1.5.7 [ 11173 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing old issues

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing old issues
        arjen.poutsma Arjen Poutsma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        60d 22h 31m 1 Arjen Poutsma 12/May/09 10:24 PM
        In Progress In Progress Resolved Resolved
        3m 15s 1 Arjen Poutsma 12/May/09 10:27 PM
        Resolved Resolved Closed Closed
        1087d 8h 36m 1 Arjen Poutsma 04/May/12 7:03 AM

          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: