title: Grails service - invoking method from controller?
body: <p>I'm trying to call a method on a grails service from a controller, but it looks like execution is just skipping the method call. 
  I've tried debugging the application with a breakpoint inside the method but it is never hit.</p>
  
  <p>My service (generated with grails create-service) is:</p>
  
  <pre><code>class FormatterService {
      static transactional = false
  
      def formatList (List&lt;Host&gt;, String fmt) {
          OutputObject somePOGO = new OutputObject();
          (snip)
          return somePOGO
      }
  }
  </code></pre>
  
  <p>Then on my controller I have:</p>
  
  <pre><code>class HostController {
      def formatterService
  
      def getHostsByLabels = {
          (snip)
          OutputObject o = formatterService.formatList(someHosts,params.format)
          (snip)
      }
  }
  </code></pre>
  
  <p>When the <code>formatterService.formatList</code> method should be called in the controller, execution simply skips to the next line, no output is printed to the console and breakpoints within the method are not hit. The OutputObject o reference is null afterward.</p>
  
  <p>What is wrong here? It could be a really basic mistake from my part, but I just can't put my finger on it...</p>