title: Grails Rest Client Builder POST Return Error/Exception
body: <p>I've been working with the grails plugin: 'grails-rest-client-builder:2.0.1'</p>
  
  <p><a href="https://github.com/grails-plugins/grails-rest-client-builder/" rel="nofollow">https://github.com/grails-plugins/grails-rest-client-builder/</a></p>
  
  <p>I'm experiencing an odd issue when I POST some data to a web service, a <strong>500 Exception</strong>, even though the POST indeed is working successfully. </p>
  
  <pre><code>Class
  java.lang.NoClassDefFoundError
  Message
  org/springframework/util/StreamUtils
  
  Around line 195 of PageFragmentCachingFilter.java
  if (CollectionUtils.isEmpty(cacheOperations)) {             
  log.debug("No cacheable annotation found for {}:{} {}"
  new Object[] { request.getMethod(), request.getRequestURI(), getContext() });
  chain.doFilter(request, response);
  return;
  }
  </code></pre>
  
  <p>The response that is coming back from the web service should look like this:</p>
  
  <p><code>{"id":"9999","key":"IX-2247","self":"https://jira.xxxx.com/rest/api/latest/issue/9999"}</code></p>
  
  <p>Again, <strong>the web service is correctly getting the values that I pass into it</strong>, and I verified this by checking the application that I'm posting to and I do see what I expect. Not only that, but I also receive an email from the system that I am POSTing to, and the email contains the correct values from the Grails application.</p>
  
  <p>Here's the POST that I'm using:</p>
  
  <pre><code>    def rest = new grails.plugins.rest.client.RestBuilder()
      def resp = rest.post("https://jira.xxxx.com/rest/api/latest/issue/"){
          auth "Basic xxxx"
          contentType "application/json"
          json builder.toPrettyString()
      }
  </code></pre>
  
  <p>My hypothesis is that perhaps the issue is that the <code>rest-client-builder</code> is having some kind of issue with the response that is being returned from the web service. </p>
  
  <p>Has anyone encountered anything like this before, where the service is working, but Grails throws a <strong>500 error</strong>, even on a successful POST?</p>
  
  <p>Please let me know if I need to provide additional information.</p>
  
  <p>Thanks in advance!</p>