liujbjava 发表于 2017-9-17 16:18:26

常用示例中的Minidao列表查询,后台报错,自己写的Minidao也报

本帖最后由 liujbjava 于 2017-9-17 16:20 编辑

jeecg3.7 maven版本,jdk1.7.0_51,tomcat 7.0.33


Template not found for name "java/lang/Object_toString.sql".
The name was interpreted by this TemplateLoader: ClassTemplateLoader(resourceLoaderClass=org.jeecgframework.minidao.util.FreemarkerParseFactory, basePackagePath="/").
freemarker.template.TemplateNotFoundException: Template not found for name "java/lang/Object_toString.sql".
The name was interpreted by this TemplateLoader: ClassTemplateLoader(resourceLoaderClass=org.jeecgframework.minidao.util.FreemarkerParseFactory, basePackagePath="/").
      at org.jeecgframework.minidao.util.FreemarkerParseFactory.parseTemplate(FreemarkerParseFactory.java:78)
      at org.jeecgframework.minidao.aop.MiniDaoHandler.parseSqlTemplate(MiniDaoHandler.java:548)
      at org.jeecgframework.minidao.aop.MiniDaoHandler.invoke(MiniDaoHandler.java:95)
Template not found for name "java/lang/Object_toString.sql".
      at com.sun.proxy.$Proxy151.toString(Unknown Source)
The name was interpreted by this TemplateLoader: ClassTemplateLoader(resourceLoaderClass=org.jeecgframework.minidao.util.FreemarkerParseFactory, basePackagePath="/").
      at com.jeecg.demo.controller.JeecgListDemoController.minidaoListDemo(JeecgListDemoController.java:83)
模板名:{ java/lang/Object_toString.sql }
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:175)
      at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
      at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:93)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:744)
发送一次的模板key:{ java/lang/Object_toString.sql }


admin 发表于 2017-9-18 15:59:32

不太清楚问题,可以下载minidao源码,debug跟下 http://git.oschina.net/jeecg/minidao

liujbjava 发表于 2017-9-26 09:51:25

admin 发表于 2017-9-18 15:59 static/image/common/back.gif
不太清楚问题,可以下载minidao源码,debug跟下 http://git.oschina.net/jeecg/minidao

好的,非常感谢!:)
页: [1]
查看完整版本: 常用示例中的Minidao列表查询,后台报错,自己写的Minidao也报