javascript - org.thymeleaf.exceptions.TemplateInputException : Exception parsing document: template="result", line 28 - column 23 -
i using spring boot, thymeleaf , javascript
controller
package demo; import java.sql.connection; import java.sql.statement; import org.springframework.boot.autoconfigure.web.errorcontroller; import org.springframework.stereotype.controller; import org.springframework.ui.model; import org.springframework.web.bind.annotation.modelattribute; import org.springframework.web.bind.annotation.requestmapping; import org.springframework.web.bind.annotation.requestmethod; @controller class testcontroller implements errorcontroller{ protected connection conn; private static final string path = "/error"; public testcontroller() { super(); } // en cas d'érreur @requestmapping(value = path) public string error() { system.err.println("test1"); return "error"; } @override public string geterrorpath() { system.err.println("test2"); return path; } // afficher le formulaire de création de base de données @requestmapping(value="/test", method=requestmethod.get) public string test(model model){ try { detailsdatabase db=new detailsdatabase(); model.addattribute("db",new detailsdatabase()); system.out.println(model); } catch (exception { e.printstacktrace(); } system.err.println("test3"); return "hello"; } @requestmapping(value="/test", method=requestmethod.post) public string databasesubmit(@modelattribute detailsdatabase db, model model) { model.addattribute("db",db); try { // on crée la base et on récupère une connection this.conn=singletonconnection.getconnection(); statement ps1=conn.createstatement(); ps1.execute("create database "+db.getdatabase_name()); ps1.close(); } catch (exception e) { e.printstacktrace(); } system.err.println("test5"); return "result"; } // @requestmapping(value="/test", method=requestmethod.get) /*string url=singletonconnection.geturl()+"/"+db.getdatabase_name()+""; singletonconnection.setconnection(drivermanager.getconnection(url,"root","")); this.conn=singletonconnection.getconnection(); statement ps2=conn.createstatement(); system.err.println("test4"); statement ps=conn.createstatement(); string req="create table " +db.gettable_name()+" ("+db.getfield()+" "+db.gettype()+"("+db.getsize()+")" +" "+db.getnullabilité()+")"; system.err.println(req); ps.execute(req); ps2.close();*/ }
here's principal form: hello.html
<!doctype html> <html> <head> <title>creating database: handing form submission</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" ></meta> </head> <body> <h1>form</h1> <form action="#" th:action="@{/test}" th:object="${db}" method="post"> <p>database_name: <input type="text" th:field="*{database_name}" /></p> <p>columns_number <input type="text" th:field="*{columns_number}" /></p> <p><input type="submit" value="submit" /> <input type="reset" value="reset" /></p> </form> </body> </html>
and here's second form: result.html
<!doctype html> <html xmlns:th="http://www.thymeleaf.org"> <head> <title>getting started: handing form submission</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"></meta> <script type="text/javascript" src="jquery-1.11.3.js"></script> </head> <body> <h1>result</h1> <p th:text="'columns_number: ' + ${db.columns_number}" /> <h3>création de la base de données</h3> <p>table_name: <input type="text" th:field="${db.table_name}" /></p> <table id='tablona' border='1px'> <tr> <th>field</th> <th>size</th> <th>type</th> <th>null</th> </tr> </table> </body> </html> <script type="text/javascript"> for(i=0;i<10;i++) { $('<tr>'+ '<td><input id="field" type="text" name="field'+i+'" maxlength="255" required="required"/></td>'+ '<td><input id="size" type="text" name="size'+i+'" maxlength="255" required="required"/></td>'+ '<td><select id="type" name="type'+i+'">'+ '<option value="varchar">varchar</option>'+ '<option value="int">int</option>'+ '<option value="text">long</option>'+ '<option value="float">float</option>'+ '<option value="double">double</option>'+ '<option value="date">date</option>'+ '<option value="time">time</option>'+ '<option value="year">year</option>'+ '<option value="real">real</option>'+ '<option value="boolean">boolean</option>'+ '<option value="longtext">longtext</option>'+ '<option value="binary">binary</option>'+ '</select></td>'+ '<td><select id="null" name="nullabilite'+i+'">'+ '<option value="null">null</option>'+ '<option value="not_null">not_null</option>'+ '</select></td>'+ '</tr>').appendto($("#tablona")).html() } </script>
i getting error on line: for(i=0;i<10;i++) {
here's stack trace:
2015-05-12 10:41:58.805 error 1876 --- [ qtp13863100-20] o.thymeleaf.templateparser.errorhandler : [thymeleaf][qtp13863100-20] fatal error during parsing org.xml.sax.saxparseexception: le contenu des éléments doit inclure un balisage ou des caractères au format correct. @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.createsaxparseexception(unknown source) @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.fatalerror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmlscanner.reportfatalerror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.startofmarkup(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl.parse(unknown source) @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.doparse(abstractnonvalidatingsaxtemplateparser.java:209) @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.parsetemplateusingpool(abstractnonvalidatingsaxtemplateparser.java:134) @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.parsetemplate(abstractnonvalidatingsaxtemplateparser.java:116) @ org.thymeleaf.templaterepository.gettemplate(templaterepository.java:278) @ org.thymeleaf.templateengine.process(templateengine.java:1104) @ org.thymeleaf.templateengine.process(templateengine.java:1060) @ org.thymeleaf.templateengine.process(templateengine.java:1011) @ org.thymeleaf.spring4.view.thymeleafview.renderfragment(thymeleafview.java:335) @ org.thymeleaf.spring4.view.thymeleafview.render(thymeleafview.java:190) @ org.springframework.web.servlet.dispatcherservlet.render(dispatcherservlet.java:1244) @ org.springframework.web.servlet.dispatcherservlet.processdispatchresult(dispatcherservlet.java:1027) @ org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:971) @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:893) @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:966) @ org.springframework.web.servlet.frameworkservlet.dopost(frameworkservlet.java:868) @ javax.servlet.http.httpservlet.service(httpservlet.java:644) @ org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java:842) @ javax.servlet.http.httpservlet.service(httpservlet.java:725) @ org.eclipse.jetty.servlet.servletholder.handle(servletholder.java:808) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1669) @ org.eclipse.jetty.websocket.server.websocketupgradefilter.dofilter(websocketupgradefilter.java:224) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.springframework.web.filter.hiddenhttpmethodfilter.dofilterinternal(hiddenhttpmethodfilter.java:77) @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:85) @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:585) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:143) @ org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:577) @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:223) @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:1127) @ org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.java:515) @ org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:185) @ org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:1061) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:141) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:97) @ org.eclipse.jetty.server.server.handle(server.java:497) @ org.eclipse.jetty.server.httpchannel.handle(httpchannel.java:310) @ org.eclipse.jetty.server.httpconnection.onfillable(httpconnection.java:257) @ org.eclipse.jetty.io.abstractconnection$2.run(abstractconnection.java:540) @ org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:635) @ org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:555) @ java.lang.thread.run(unknown source) 2015-05-12 10:41:58.807 error 1876 --- [ qtp13863100-20] org.thymeleaf.templateengine : [thymeleaf][qtp13863100-20] exception processing template "result": exception parsing document: template="result", line 28 - column 23 2015-05-12 10:41:58.812 warn 1876 --- [ qtp13863100-20] o.eclipse.jetty.servlet.servlethandler : org.springframework.web.util.nestedservletexception: request processing failed; nested exception org.thymeleaf.exceptions.templateinputexception: exception parsing document: template="result", line 28 - column 23 @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:978) @ org.springframework.web.servlet.frameworkservlet.dopost(frameworkservlet.java:868) @ javax.servlet.http.httpservlet.service(httpservlet.java:644) @ org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java:842) @ javax.servlet.http.httpservlet.service(httpservlet.java:725) @ org.eclipse.jetty.servlet.servletholder.handle(servletholder.java:808) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1669) @ org.eclipse.jetty.websocket.server.websocketupgradefilter.dofilter(websocketupgradefilter.java:224) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.springframework.web.filter.hiddenhttpmethodfilter.dofilterinternal(hiddenhttpmethodfilter.java:77) @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:85) @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:585) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:143) @ org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:577) @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:223) @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:1127) @ org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.java:515) @ org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:185) @ org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:1061) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:141) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:97) @ org.eclipse.jetty.server.server.handle(server.java:497) @ org.eclipse.jetty.server.httpchannel.handle(httpchannel.java:310) @ org.eclipse.jetty.server.httpconnection.onfillable(httpconnection.java:257) @ org.eclipse.jetty.io.abstractconnection$2.run(abstractconnection.java:540) @ org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:635) @ org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:555) @ java.lang.thread.run(unknown source) caused by: org.thymeleaf.exceptions.templateinputexception: exception parsing document: template="result", line 28 - column 23 @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.parsetemplateusingpool(abstractnonvalidatingsaxtemplateparser.java:166) @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.parsetemplate(abstractnonvalidatingsaxtemplateparser.java:116) @ org.thymeleaf.templaterepository.gettemplate(templaterepository.java:278) @ org.thymeleaf.templateengine.process(templateengine.java:1104) @ org.thymeleaf.templateengine.process(templateengine.java:1060) @ org.thymeleaf.templateengine.process(templateengine.java:1011) @ org.thymeleaf.spring4.view.thymeleafview.renderfragment(thymeleafview.java:335) @ org.thymeleaf.spring4.view.thymeleafview.render(thymeleafview.java:190) @ org.springframework.web.servlet.dispatcherservlet.render(dispatcherservlet.java:1244) @ org.springframework.web.servlet.dispatcherservlet.processdispatchresult(dispatcherservlet.java:1027) @ org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:971) @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:893) @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:966) ... 31 common frames omitted caused by: org.xml.sax.saxparseexception: le contenu des éléments doit inclure un balisage ou des caractères au format correct. @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.createsaxparseexception(unknown source) @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.fatalerror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmlscanner.reportfatalerror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.startofmarkup(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl.parse(unknown source) @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.doparse(abstractnonvalidatingsaxtemplateparser.java:209) @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.parsetemplateusingpool(abstractnonvalidatingsaxtemplateparser.java:134) ... 43 common frames omitted test1 {db=detailsdatabase [database_name=null, table_name=null, field=null, size=0, type=null, nullabilité=null, columns_number=0]} test3 test5 2015-05-12 10:50:36.556 error 1876 --- [ qtp13863100-21] o.thymeleaf.templateparser.errorhandler : [thymeleaf][qtp13863100-21] fatal error during parsing org.xml.sax.saxparseexception: le contenu des éléments doit inclure un balisage ou des caractères au format correct. @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.createsaxparseexception(unknown source) @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.fatalerror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmlscanner.reportfatalerror(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.startofmarkup(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl.parse(unknown source) @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.doparse(abstractnonvalidatingsaxtemplateparser.java:209) @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.parsetemplateusingpool(abstractnonvalidatingsaxtemplateparser.java:134) @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.parsetemplate(abstractnonvalidatingsaxtemplateparser.java:116) @ org.thymeleaf.templaterepository.gettemplate(templaterepository.java:278) @ org.thymeleaf.templateengine.process(templateengine.java:1104) @ org.thymeleaf.templateengine.process(templateengine.java:1060) @ org.thymeleaf.templateengine.process(templateengine.java:1011) @ org.thymeleaf.spring4.view.thymeleafview.renderfragment(thymeleafview.java:335) @ org.thymeleaf.spring4.view.thymeleafview.render(thymeleafview.java:190) @ org.springframework.web.servlet.dispatcherservlet.render(dispatcherservlet.java:1244) @ org.springframework.web.servlet.dispatcherservlet.processdispatchresult(dispatcherservlet.java:1027) @ org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:971) @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:893) @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:966) @ org.springframework.web.servlet.frameworkservlet.dopost(frameworkservlet.java:868) @ javax.servlet.http.httpservlet.service(httpservlet.java:644) @ org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java:842) @ javax.servlet.http.httpservlet.service(httpservlet.java:725) @ org.eclipse.jetty.servlet.servletholder.handle(servletholder.java:808) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1669) @ org.eclipse.jetty.websocket.server.websocketupgradefilter.dofilter(websocketupgradefilter.java:224) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.springframework.web.filter.hiddenhttpmethodfilter.dofilterinternal(hiddenhttpmethodfilter.java:77) @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:85) @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:585) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:143) @ org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:577) @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:223) @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:1127) @ org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.java:515) @ org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:185) @ org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:1061) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:141) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:97) @ org.eclipse.jetty.server.server.handle(server.java:497) @ org.eclipse.jetty.server.httpchannel.handle(httpchannel.java:310) @ org.eclipse.jetty.server.httpconnection.onfillable(httpconnection.java:257) @ org.eclipse.jetty.io.abstractconnection$2.run(abstractconnection.java:540) @ org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:635) @ org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:555) @ java.lang.thread.run(unknown source) 2015-05-12 10:50:36.558 error 1876 --- [ qtp13863100-21] org.thymeleaf.templateengine : [thymeleaf][qtp13863100-21] exception processing template "result": exception parsing document: template="result", line 28 - column 23 2015-05-12 10:50:36.567 warn 1876 --- [ qtp13863100-21] o.eclipse.jetty.servlet.servlethandler : org.springframework.web.util.nestedservletexception: request processing failed; nested exception org.thymeleaf.exceptions.templateinputexception: exception parsing document: template="result", line 28 - column 23 @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:978) @ org.springframework.web.servlet.frameworkservlet.dopost(frameworkservlet.java:868) @ javax.servlet.http.httpservlet.service(httpservlet.java:644) @ org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java:842) @ javax.servlet.http.httpservlet.service(httpservlet.java:725) @ org.eclipse.jetty.servlet.servletholder.handle(servletholder.java:808) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1669) @ org.eclipse.jetty.websocket.server.websocketupgradefilter.dofilter(websocketupgradefilter.java:224) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.springframework.web.filter.hiddenhttpmethodfilter.dofilterinternal(hiddenhttpmethodfilter.java:77) @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:85) @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107) @ org.eclipse.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1652) @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:585) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:143) @ org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:577) @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:223) @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:1127) @ org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.java:515) @ org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:185) @ org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:1061) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:141) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:97) @ org.eclipse.jetty.server.server.handle(server.java:497) @ org.eclipse.jetty.server.httpchannel.handle(httpchannel.java:310) @ org.eclipse.jetty.server.httpconnection.onfillable(httpconnection.java:257) @ org.eclipse.jetty.io.abstractconnection$2.run(abstractconnection.java:540) @ org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:635) @ org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:555) @ java.lang.thread.run(unknown source) caused by: org.thymeleaf.exceptions.templateinputexception: exception parsing document: template="result", line 28 - column 23 @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.parsetemplateusingpool(abstractnonvalidatingsaxtemplateparser.java:166) @ org.thymeleaf.templateparser.xmlsax.abstractnonvalidatingsaxtemplateparser.parsetemplate(abstractnonvalidatingsaxtemplateparser.java:116) @ org.thymeleaf.templaterepository.gettemplate(templaterepository.java:278) @ org.thymeleaf.templateengine.process(templateengine.java:1104) @ org.thymeleaf.templateengine.process(templateengine.java:1060) @ org.thymeleaf.templateengine.process(templateengine.java:1011) @ org.thymeleaf.spring4.view.thymeleafview.renderfragment(thymeleafview.java:335) @ org.thymeleaf.spring4.view.thymeleafview.render(thymeleafview.java:190) @ org.springframework.web.servlet.dispatcherservlet.render(dispatcherservlet.java:1244) @ org.springframework.web.servlet.dispatcherservlet.processdispatchresult(dispatcherservlet.java:1027) @ org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:971) @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:893) @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:966) ... 31 common frames omitted caused by: org.xml.sax.saxparseexception: le contenu des éléments doit inclure un balisage ou des caractères au format correct.
have tried wrapping inline code cdata section?
<script type="text/javascript"> //<![cdata[ for(i=0;i<10;i++) { // ... } //]]> </script>
Comments
Post a Comment