码上敲享录 > java常见报错解答 > java.lang.ClassNotFoundException: groovy.lang.GroovyObject

java.lang.ClassNotFoundException: groovy.lang.GroovyObject

上一章章节目录下一章 2020-01-09已有2353人阅读 评论(0)

java.lang.ClassNotFoundException: groovy.lang.GroovyObject

at java.lang.ClassLoader.findClass(ClassLoader.java:530) ~[na:1.8.0_192]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_192]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_192]

at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_192]

at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[na:1.8.0_192]

at net.sf.jasperreports.engine.util.JRClassLoader.loadClass(JRClassLoader.java:338) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.util.JRClassLoader.loadClassFromBytes(JRClassLoader.java:261) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.loadEvaluator(JRAbstractJavaCompiler.java:102) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.design.JRAbstractCompiler.loadEvaluator(JRAbstractCompiler.java:340) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.JasperCompileManager.getEvaluator(JasperCompileManager.java:378) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.fill.JRFillDataset.createCalculator(JRFillDataset.java:462) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:405) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:89) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:104) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:62) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:179) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:81) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:457) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:418) ~[jasperreports-5.6.0.jar:5.6.0]

at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:839) ~[jasperreports-5.6.0.jar:5.6.0]

at com.example.ireport.util.JasperUtil.PCexportPdfDir(JasperUtil.java:57) ~[classes/:na]

at com.example.ireport.controller.IndexController.getpcPdf(IndexController.java:69) ~[classes/:na]

at com.example.ireport.controller.IndexController.readReport(IndexController.java:46) ~[classes/:na]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_192]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_192]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_192]

at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_192]

at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE]


解决方法:

在pom.xml文件引入依赖,即可解决。

<dependency>
   <groupId>org.codehaus.groovy</groupId>
   <artifactId>groovy</artifactId>
   <version>2.4.9</version>
</dependency>



向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
向大家推荐《ireport实战教程》:https://xiaozhuanlan.com/ireport?rel=6923152725
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交