title: Grails render view in not rendering view
body: <p>I am working on a web application,in which from a domain i want to render a view on browser.</p>
  
  <p>My requirement is something like this-</p>
  
  <p>When user comes to my website for registration,after he submits  data from controller i render a different view.</p>
  
  <p>I am using</p>
  
  <pre><code>render(view:'myviewname')
  </code></pre>
  
  <p>but it not working and gives error invocation target exception and control goes to some other method of same controller.
   i also try using PageRendrar and by creating separate method for render my view but in all case finding same issue.</p>
  
  <p>Code -if have tried using different ways but all are not working for me.</p>
  
  <pre><code>def mytest(){
     render(view:'mytest')
  }
  
  
  def mytest(){
     render(view:'/book/myview')
     return
  }
  
  def mytest(){
    render(view:'/error')
  }
  </code></pre>
  
  <p>UPDATED: </p>
  
  <blockquote>
    <p>WARN: Exception: java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav‌​a:25)
    at java.lang.reflect.Method.invoke(Method.java:597) at
    com.springsource.loaded.ri.ReloadedTypeInvoker$2.invoke(ReloadedTypeInvoker.java‌​:107)
    at
    com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInter‌​ceptor.java:1260)</p>
  </blockquote>
  
  <p>Thanks in advance.</p>