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

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

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

查看: 7365|回复: 2

[代码生成器] 生成代码报错

[复制链接]
发表于 2018-1-29 11:27:24 | 显示全部楼层 |阅读模式
HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.jeecgframework.codegenerate.util.CodeResourceUtil
type Exception report
message Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.jeecgframework.codegenerate.util.CodeResourceUtil
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.jeecgframework.codegenerate.util.CodeResourceUtil        org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1280)        org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:958)        org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)        org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)        javax.servlet.http.HttpServlet.service(HttpServlet.java:624)        org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)        javax.servlet.http.HttpServlet.service(HttpServlet.java:731)        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)        org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:119)        com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)        org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)        org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause
java.lang.NoClassDefFoundError: Could not initialize class org.jeecgframework.codegenerate.util.CodeResourceUtil        org.jeecgframework.web.cgform.controller.generate.GenerateController.gogenerate(GenerateController.java:117)        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        java.lang.reflect.Method.invoke(Method.java:483)        org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)        org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)        org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)        org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:747)        org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:676)        org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)        org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)        org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)        org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)        javax.servlet.http.HttpServlet.service(HttpServlet.java:624)        org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)        javax.servlet.http.HttpServlet.service(HttpServlet.java:731)        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)        org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:119)        com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)        org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)        org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.64 logs.

发表于 2018-1-29 11:45:32 | 显示全部楼层
确认下最新版的依赖是否下载成功,删掉本地仓库重新下载试试
 楼主| 发表于 2018-1-29 13:12:21 | 显示全部楼层
admin 发表于 2018-1-29 11:45
确认下最新版的依赖是否下载成功,删掉本地仓库重新下载试试

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

本版积分规则

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