关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、418799587 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 4271|回复: 0

[Online开发] 自动生成代码class cc_ci not found while looking for property: create_...

[复制链接]
发表于 2022-4-24 20:48:05 | 显示全部楼层 |阅读模式
自动生成代码的时候报错:同步数据库失败,class cc_ci not found while looking for property: create_time

错误是由create_time和update_time造成的。删除这两个字段就不会报该错误。不知道这个错误是什么原因造成的。

后台日志显示:
  1. 2022-04-24 20:43:08.345 [http-nio-8080-exec-6] INFO  org.hibernate.dialect.Dialect:170 - HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
  2. 2022-04-24 20:43:08.358 [http-nio-8080-exec-6] ERROR org.jeecg.modules.online.cgform.c.a:480 - Error calling Value#setTypeUsingReflection: containingClassName=[cc_ci], propertyName=[create_time], role=[cc_ci.create_time] : origin(null)
  3. org.hibernate.boot.MappingException: Error calling Value#setTypeUsingReflection: containingClassName=[cc_ci], propertyName=[create_time], role=[cc_ci.create_time] : origin(null)
  4.         at org.hibernate.boot.model.source.internal.hbm.ModelBinder.prepareValueTypeViaReflection(ModelBinder.java:2474)
  5.         at org.hibernate.boot.model.source.internal.hbm.ModelBinder.createBasicAttribute(ModelBinder.java:1920)
  6.         at org.hibernate.boot.model.source.internal.hbm.ModelBinder.bindAllEntityAttributes(ModelBinder.java:1166)
  7.         at org.hibernate.boot.model.source.internal.hbm.ModelBinder.bindRootEntity(ModelBinder.java:273)
  8.         at org.hibernate.boot.model.source.internal.hbm.ModelBinder.bindEntityHierarchy(ModelBinder.java:193)
  9.         at org.hibernate.boot.model.source.internal.hbm.HbmMetadataSourceProcessorImpl.processEntityHierarchies(HbmMetadataSourceProcessorImpl.java:144)
  10.         at org.hibernate.boot.model.process.spi.MetadataBuildingProcess$1.processEntityHierarchies(MetadataBuildingProcess.java:226)
  11.         at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:273)
  12.         at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)
  13.         at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:473)
  14.         at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:84)
  15.         at org.hibernate.boot.MetadataSources.buildMetadata(MetadataSources.java:185)
  16.         at org.jeecg.modules.online.config.c.d.a(DbTableProcess.java:134)
  17.         at org.jeecg.modules.online.cgform.service.a.d.doDbSynch(OnlCgformHeadServiceImpl.java:429)
  18.         at org.jeecg.modules.online.cgform.service.a.d$FastClassBySpringCGLIB$76271ae2.invoke(<generated>)
  19.         at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  20.         at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
  21.         at org.jeecg.modules.online.cgform.service.a.d$EnhancerBySpringCGLIB$9a3c4588.doDbSynch(<generated>)
  22.         at org.jeecg.modules.online.cgform.c.a.h(OnlCgformApiController.java:477)
  23.         at org.jeecg.modules.online.cgform.c.a$FastClassBySpringCGLIB$b70991a.invoke(<generated>)
  24.         at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  25.         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
  26.         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
  27.         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
  28.         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95)
  29.         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  30.         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
  31.         at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
  32.         at org.jeecg.modules.online.cgform.c.a$EnhancerBySpringCGLIB$959a8a7e.h(<generated>)
  33.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  34.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  35.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  36.         at java.lang.reflect.Method.invoke(Method.java:498)
  37.         at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
  38.         at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
  39.         at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
  40.         at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878)
  41.         at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792)
  42.         at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  43.         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
  44.         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
  45.         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
  46.         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
  47.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
  48.         at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
  49.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
  50.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  51.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  52.         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  53.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  54.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  55.         at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
  56.         at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
  57.         at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
  58.         at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
  59.         at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
  60.         at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
  61.         at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
  62.         at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
  63.         at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
  64.         at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:450)
  65.         at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
  66.         at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
  67.         at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
  68.         at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)
  69.         at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
  70.         at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
  71.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  72.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  73.         at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:92)
  74.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  75.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  76.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  77.         at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
  78.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  79.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  80.         at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88)
  81.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  82.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  83.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  84.         at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
  85.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  86.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  87.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  88.         at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
  89.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  90.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  91.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  92.         at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:93)
  93.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  94.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  95.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  96.         at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
  97.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  98.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  99.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  100.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
  101.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
  102.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
  103.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
  104.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  105.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
  106.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  107.         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
  108.         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  109.         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
  110.         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
  111.         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  112.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  113.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  114.         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  115.         at java.lang.Thread.run(Thread.java:748)
  116. Caused by: org.hibernate.MappingException: class cc_ci not found while looking for property: create_time
  117.         at org.hibernate.internal.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:221)
  118.         at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:526)
  119.         at org.hibernate.boot.model.source.internal.hbm.ModelBinder.prepareValueTypeViaReflection(ModelBinder.java:2462)
  120.         ... 111 common frames omitted
  121. Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [cc_ci]
  122.         at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:133)
  123.         at org.hibernate.internal.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:217)
  124.         ... 113 common frames omitted
  125. Caused by: java.lang.ClassNotFoundException: Could not load requested class : cc_ci
  126.         at org.hibernate.boot.registry.classloading.internal.AggregatedClassLoader.findClass(AggregatedClassLoader.java:210)
  127.         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  128.         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  129.         at java.lang.Class.forName0(Native Method)
  130.         at java.lang.Class.forName(Class.java:348)
  131.         at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:130)
  132.         ... 114 common frames omitted
复制代码


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表