Trying to fetch a wavelet like so:

fetchWavelet(waveId, waveletId, rpcURL)

Error received:


java.lang.NoClassDefFoundError: org/apache/commons/codec/digest/DigestUtils

        at 
com.google.wave.api.AbstractRobot.createOAuthUrlString(AbstractRobot.java:1166)
        at com.google.wave.api.AbstractRobot.makeRpc(AbstractRobot.java:1069)
        at 
com.google.wave.api.AbstractRobot.fetchWavelet(AbstractRobot.java:558)


Appears to be failing at this line in the AbstractRobot class:

---

  private static String createOAuthUrlString(String jsonBody, String
rpcServerUrl,
      String consumerKey, String consumerSecret)
      throws IOException, URISyntaxException, OAuthException {
    OAuthMessage message = new OAuthMessage(POST, rpcServerUrl,
        Collections.<Entry<String, String>>emptyList());

    // Compute the hash of the body.
    byte[] rawBody = jsonBody.getBytes(UTF_8);
* This line-->*   byte[] hash = DigestUtils.sha(rawBody);
    byte[] encodedHash = Base64.encodeBase64(hash);
    message.addParameter(OAUTH_BODY_HASH, new String(encodedHash, UTF_8));


Which I suppose means that this import statement is not working:

import org.apache.commons.codec.digest.DigestUtils;





d3developer.com | twitter.com/fractastical | twitter.com/jdietz

-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.

Reply via email to