Guest User

ExceptionInInitializerError

a guest
May 31st, 2021
15
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. java.lang.ExceptionInInitializerError
  2. at org.apache.poi.openxml4j.opc.OPCPackage.init(OPCPackage.java:162)
  3. at org.apache.poi.openxml4j.opc.OPCPackage.<init>(OPCPackage.java:142)
  4. at org.apache.poi.openxml4j.opc.Package.<init>(Package.java:37)
  5. at org.apache.poi.openxml4j.opc.ZipPackage.<init>(ZipPackage.java:65)
  6. at org.apache.poi.openxml4j.opc.OPCPackage.create(OPCPackage.java:338)
  7. at org.apache.poi.xssf.usermodel.XSSFWorkbook.newPackage(XSSFWorkbook.java:434)
  8. at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:218)
  9. at org.openmrs.module.reporting.common.ExcelBuilder.<init>(ExcelBuilder.java:50)
  10. at org.openmrs.module.reporting.report.renderer.XlsReportRenderer.render(XlsReportRenderer.java:83)
  11. at org.openmrs.module.reporting.report.service.ReportServiceImpl.runReport(ReportServiceImpl.java:487)
  12. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  13. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  14. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  15. at java.lang.reflect.Method.invoke(Method.java:498)
  16. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
  17. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205)
  18. at com.sun.proxy.$Proxy248.runReport(Unknown Source)
  19. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  20. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  21. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  22. at java.lang.reflect.Method.invoke(Method.java:498)
  23. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
  24. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
  25. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
  26. at org.springframework.cache.interceptor.CacheInterceptor.lambda$invoke$0(CacheInterceptor.java:53)
  27. at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:352)
  28. at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  29. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  30. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:123)
  31. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  32. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:56)
  33. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  34. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:56)
  35. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  36. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
  37. at com.sun.proxy.$Proxy249.runReport(Unknown Source)
  38. at org.openmrs.module.reporting.report.task.RunQueuedReportsTask.executeTask(RunQueuedReportsTask.java:59)
  39. at org.openmrs.module.reporting.report.task.ReportingTask.run(ReportingTask.java:37)
  40. at org.openmrs.api.context.Daemon$6.run(Daemon.java:356)
  41. Caused by: java.lang.ClassCastException: org.apache.xerces.stax.XMLEventFactoryImpl cannot be cast to javax.xml.stream.XMLEventFactory
  42. at javax.xml.stream.XMLEventFactory.newInstance(XMLEventFactory.java:30)
  43. at org.apache.poi.openxml4j.opc.internal.marshallers.PackagePropertiesMarshaller.<clinit>(PackagePropertiesMarshaller.java:41)
  44. ... 39 more
RAW Paste Data