That was it. Btw, the common codec is not mentioned in the Java robot
tutorial.

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


On Wed, Apr 7, 2010 at 8:24 PM, Austin Chau <austin.c...@gmail.com> wrote:

> Hi you are missing the common-codec jar in your project, you can grab
> it here -
>
>
> http://code.google.com/p/wave-robot-java-client/downloads/detail?name=commons-codec-1.4.jar&can=2&q=
>
> On Apr 7, 11:36 am, Joel Dietz <jdi...@gmail.com> wrote:
> > 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:1
> 166)
> >         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<google-wave-api%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-wave-api?hl=en.
>
>

-- 
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