ClassCastException ApachePingbackClient

Issue #1925 resolved
Daniel Zoller created an issue

We get a ClassCastException in ApachePingbackClient#sendPingback (Integer to String)

Please check why the RPC Client returns an Integer instead of a String.

Comments (8)

  1. Viktor Hemsen

    "Servers MUST respond to this function call either with a single string or with a fault code." http://www.hixie.ch/specs/pingback/pingback#return

    at the moment sendPingback() returns this:

    return (String) client.execute("pingback.ping", params); 
    

    I suggest not to cast the object but to convert it to a String:

    return String.valueOf(client.execute("pingback.ping", params)); 
    

    Any thoughts on this?

  2. Log in to comment