Not sure if it only happens in ajax templates, but if validation fails and a message should be rendered next to an input element I get this error in the tomcat console, and no validation message rendered/template not updated properly. I do see these exceptions pop up in the tomcat log of other webdsl apps as well.


exception occured while handling request URL: http://localhost:8080/reposearch/addProject
exception message: could not initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer.initialize(
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(
at webdsl.generated.domain.SecurityContext_$$_javassist_13.getPrincipal(SecurityContext_$$
at webdsl.generated.templates.AddProjectPage.serve(
at utils.DispatchServletHelper.handlePage(
at utils.DispatchServletHelper.doServe(
at utils.DispatchServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.valves.AccessLogValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.AbstractHttp11Processor.process(
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
Error: server received POST request but was unable to dispatch to a proper action

Example code

define ajax addProject(){
var p := "";
var gu := "";
var gr := "";
var n : URL := "";
var r : Request := Request{};

"Add your project/repository!"
  table {
    row { column{"Project name: "}     column{input(p)} }
    row { column{"SVN: "}              column{input(n)}    }
    row { column{<span class="home-text">"or"</span>} column{}    }
    row { column{"Github user: "}      column{input(gu)} }
    row { column{"Github repository: "}column{input(gr)} }
  submit action{replace("requestPH", req(""));} {"cancel"}
  submit action{
   validate(/[A-Za-z0-9]+[A-Za-z0-9\-_\.\s][A-Za-z0-9]+/.match(p), "Project name should be at least 3 characters (allowed chars: a-z,A-Z,0-9,-,_, ,.)");
   validate( (n.length() > 0 || (gu.length() > 0 && gr.length() > 0) ), "Please specify an SVN repository url or Github user and repository");

   r.project:=p; r.svn:=n;;;; replace("requestPH", req("Your request is sent to the administrators. Please allow some time to process your request"));} {"add request"}
submitlink openPendingRequests(){nOfPendingRequests()}

action openPendingRequests(){return pendingRequests();}


Submitted by Elmer van Chastelet on 20 June 2012 at 15:21

On 20 June 2012 at 15:21 Elmer van Chastelet tagged error

On 21 June 2012 at 11:51 Elmer van Chastelet closed this issue.

On 21 June 2012 at 11:51 Elmer van Chastelet commented:

Fixed in r5174

Log in to post comments