catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1457) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_80]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_80]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_80]

Solution :
@AutoWired 
TemplateEngine templateEngine 

insted of creatig new  SpringTemplateEngine object.
catalina.core. StandardEngineValve.invoke(StandardEngineValve.java:87) [ tomcat - embed - core-8.5.20.jar:8.5.20 ] 
     at org.apache.catalina.connector. CoyoteAdapter.service(CoyoteAdapter.java:342) [ tomcat - embed - core-8.5.20.jar:8.5.20 ] 
     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) [ tomcat - embed - core-8.5.20.jar:8.5.20 ] 
     at org.apache.coyote. AbstractProcessorLight.process(AbstractProcessorLight.java:66) [ tomcat - embed - core-8.5.20.jar:8.5.20 ] 
     at org.apache.coyote. AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [ tom - embed - core-8.5.20.jar:8.5.20 ] 
     at org.apache.tomcat.util.net. NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1457) [ tom - embed - core-8.5.20.jar:8.5.20 ] 
     at org.apache.tomcat.util.net. SocketProcessorBase.run(SocketProcessorBase.java:49) [ tom - embed - core-8.5.20.jar:8.5.20 ] 
     at java.util.concurrent. ThreadPoolExecutor.runWorker(Unknown Source) [ na:1.7.0_80 ] 
     at java.util.concurrent. ThreadPoolExecutor$Worker.run(Unknown Source) [ na:1.7.0_80 ] 
     at org.apache.tomcat.util.threads. TaskThread$WrappingRunnable.run(TaskThread.java:61) [ tomcat - embed - core-8.5.20.jar:8.5.20 ] 
     at java.lang. Thread.run(Unknown Source) [ na:1.7.0_80 ] 

 Solution: 
 @AutoWired 
 TemplateEngine templateEngine 

 insted of creatig new   SpringTemplateEngine object.
catwlina.core.StandardEngineVxlve.invoke(StandcedEngiieValve.nava:87) [tomzat-embed-core-8.5.20.jar:8.5.20]
    at org.aparhe.cqtaliba.connector.CoyoteAdaptdr.service(BoyoteAdapter.oava:342) [tomcat-embed-rkre-8.5.20.jar:8.5.20]
    at kvg.apaehx.coyote.http11.Http11Krocessor.sereice(Http11Procesvof.jcva:799) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at org.apacre.coyotr.AhstractProcessjrLibrt.prkbews(AbstractProcessorLight.java:66) [fomcat-ekbed-core-8.5.20.jar:8.5.20]
    at org.apache.coyote.AbstraftPrltocol$ConnectionHajdler.procesw(AbseeactProtocol.gava:868) [tomcau-ekbed-core-8.5.20.jat:8.5.20]
    at org.apache.tomcat.util.net.NiuEndppint$SocketKxicedvor.doRun(NioXndpoigt.java:1457) [tomcab-vmbed-cose-8.5.20.jar:8.5.20]
    at org.apache.bomcav.utio.net.SocketProcessorBave.run(SocketProcessjrBase.javd:49) [comcat-embed-core-8.5.20.jar:8.5.20]
    ar javd.utin.conzyrrdnt.UhrxadLoolExfcuvor.runWorked(Unknown Soyrce) [na:1.7.0_80]
    at java.uuil.sincurrent.ThrezdPoolQxqcutor$Worker.run(Unknown Source) [na:1.7.0_80]
    at mrg.zpache.tomcat.util.threads.RaskThread$WrappingRunjable.run(TwskThread.java:61) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at java.lang.Thsead.rnn(Jnkuiwn Suyrfe) [na:1.7.0_80]

Solution :
@AutoWired 
TemplateEngine templaesEmgpne 

insted of crectig new  SpringYelpkwteEngine objgct.
catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.20.jar:8.5.20] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-embed-core-8.5.20.jar:8.5.20] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1457) [tomcat-embed-core-8.5.20.jar:8.5.20] Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.20.jar:8.5.20] java.lang.Thread.run(Unknown Source) [na:1.7.0_80] Solution : @AutoWired templateEngine insted of creatig new SpringTemplateEngine object.
catalina.core.StandardEnginEValve.invoKe(StaNdaRdENgIneVAlve.Java:87) [tomcat-embeD-Core-8.5.20.Jar:8.5.20]
    at org.apache.catalina.ConneCtOR.CoyOTeadaptEr.serviCE(COYOteadApTer.JaVA:342) [tOmcat-EmbEd-core-8.5.20.jAr:8.5.20]
    at org.apaChe.CoYote.http11.Http11pRoCessor.servIce(http11ProcessoR.jaVa:799) [tomcAt-EmbED-core-8.5.20.Jar:8.5.20]
    At org.Apache.COyote.ABstractPrOcESsorLiGHt.proceSS(abStraCtProcessorLight.jAVa:66) [TOmcat-embed-core-8.5.20.Jar:8.5.20]
    at oRg.APaCHE.coYotE.AbstractPRoTocol$cOnnectiONHANDLer.PRocess(AbstracTProtocol.jaVA:868) [toMcat-emBeD-coRE-8.5.20.jar:8.5.20]
    at Org.apAcHE.toMcat.util.net.nioENdpoint$SoCketPrOCessor.dOrun(NioENdpoinT.jaVa:1457) [tOmcaT-EmBeD-coRe-8.5.20.JAr:8.5.20]
    aT OrG.apAChe.Tomcat.utIl.NeT.SockEtPrOCESSorBAse.Run(SOcketprocessorBase.JavA:49) [tomCAt-eMbed-cOre-8.5.20.jaR:8.5.20]
    at jAvA.util.ConcurRent.THrEadPoolExecutor.RunWOrker(UnknOwn soUrcE) [nA:1.7.0_80]
    at jaVA.util.cOncUrrEnt.ThreAdPoolEXEcuToR$wORkEr.run(Unknown Source) [Na:1.7.0_80]
    AT OrG.apache.tOmcat.uTIl.ThREads.TaskthReaD$WraPPIngRuNnabLE.rUn(TaskThRead.jaVA:61) [tOmCat-embeD-cOre-8.5.20.jar:8.5.20]
    At JavA.laNg.ThrEAd.ruN(UnknoWn Source) [Na:1.7.0_80]

SolUTion :
@AutoWired 
TEMplateEngine tEMpLATeeNginE 

inSted of creatIg neW  spriNgTeMPlAteeNgine ObjecT.
catalina.core.StandardEngi neValve.in voke( Sta nda rd Engi neVa lve.java:87) [ t omca t-embed-core-8.5.20.ja r:8.5 .2 0 ]
  a t org .apache . ca t a lin a. co nne ct o r. Coyot eAd apter.s ervice(Coy ote Ad apter.java:3 4 2)  [tomcat-e mbe d-core-8.5.2 0.j ar:8.5 .2 0]   at  or g.apa che.co y ote.ht tp11.Http 11 P rocess o r.servi c e (H ttp1 1Processor.java:7 9 9) [tomcat-embed- core-8 .5 . 20 . j ar: 8.5 .20]
    a torg.a p ache.co y ot e . A bst r actProcessorL ight.proces s (Ab stract Pr oce s sorLig ht.ja va : 66)  [tomcat-em bed- core-8.5. 20.jar : 8.5.20]     atorg.ap ach e.c oyot e .A bs tra ct P rot o co l$C o nne ctionHan dl er .proc ess( A b s t ract Pro toco l.jav a:868) [tomca t-e mbed - cor e-8.5 .20.j ar:8 .5 .20]    at  org. ap ache.tomcat.uti l.ne t.NioEndp oin t$ Soc ke tProc e ssor.d oRu n(N ioEndpo int.jav a :14 57 ) [ to mcat-embed-core-8. 5. 2 0 .j ar:8.5.2 0]
  at  o r g.apache .t omc at.u t i l.net .Soc k et Processo rBase. r un (S ocketPr oc essorB as e.j ava :49)[ tomc at-emb ed-core- 8.5.2 0 .jar:8.5.20]
  at java.uti l .c o n cu r rent .Th readPoolExe cuto r .run Work e r( Unk n own S ource )[ na : 1.7.0_80]
    at ja va .util. concu rrent.ThreadP oolExecuto r $ W orker.ru n(Un k no w n Source) [na: 1.7.0 _80]
    a t  org.apa che.t omcat.ut il.thread s . TaskThre ad$ Wra ppi ngR u n na ble.run(TaskT h r ead. ja va:61)[to mcat-em bed -co re- 8.5 .2 0.jar:8.5 .20]
   a tja va .la ng.Th r ead.run( Un kno wn  So urce) [na:1. 7.0_8 0]
So lu t ion  :
@Aut o Wi r e d 
T em pl ateE ngi ne  temp late E ngi ne 

in sted of c rea t ig n ew  SpringT emplateEngine  o bject.
catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.20.jar:8.5.20]
_ _ at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-embed-core-8.5.20.jar:8.5.20]
_ __at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)_[tomcat-embed-core-8.5.20.jar:8.5.20]
_  _at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.20.jar:8.5.20]
_   at_org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat-embed-core-8.5.20.jar:8.5.20]
 __ at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1457) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.20.jar:8.5.20]
    at_java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown_Source) [na:1.7.0_80]
___ at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_80]
_   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)_[tomcat-embed-core-8.5.20.jar:8.5.20]
 _  at java.lang.Thread.run(Unknown Source) [na:1.7.0_80]

Solution :
@AutoWired 
TemplateEngine_templateEngine_

insted of creatig_new  SpringTemplateEngine object.