Could not initialize class com.jaspersoft.jasperreports.util.WebResourceHandlersExtensionRegistryFactory

0

Hello, I'm trying to compile my report with java, it contains a Spider Area chart, and I got this error:

org.springframework.amqp.rabbit.listener.exception.ListenerExecutionFailedException: Listener method 'receiveMessage' threw exception
        at org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter.invokeListenerMethod(MessageListenerAdapter.java:380) ~[spring-rabbit-2.0.3.RELEASE.jar:2.0.3.RELEASE]
        at org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter.onMessage(MessageListenerAdapter.java:298) ~[spring-rabbit-2.0.3.RELEASE.jar:2.0.3.RELEASE]
        at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1414) ~[spring-rabbit-2.0.3.RELEASE.jar:2.0.3.RELEASE]
        at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(AbstractMessageListenerContainer.java:1337) ~[spring-rabbit-2.0.3.RELEASE.jar:2.0.3.RELEASE]
        at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:1324) ~[spring-rabbit-2.0.3.RELEASE.jar:2.0.3.RELEASE]
        at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:1303) ~[spring-rabbit-2.0.3.RELEASE.jar:2.0.3.RELEASE]
        at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:785) [spring-rabbit-2.0.3.RELEASE.jar:2.0.3.RELEASE]
        at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:769) [spring-rabbit-2.0.3.RELEASE.jar:2.0.3.RELEASE]
        at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$700(SimpleMessageListenerContainer.java:77) [spring-rabbit-2.0.3.RELEASE.jar:2.0.3.RELEASE]
        at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1010) [spring-rabbit-2.0.3.RELEASE.jar:2.0.3.RELEASE]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_172]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.jaspersoft.jasperreports.util.WebResourceHandlersExtensionRegistryFactory
        at java.lang.Class.forName0(Native Method) ~[na:1.8.0_172]
        at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_172]
        at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:156) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:114) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.util.ClassUtils.instantiateClass(ClassUtils.java:55) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:278) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:255) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:175) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:138) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:110) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.DefaultJasperReportsContext.getExtensions(DefaultJasperReportsContext.java:268) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.component.ComponentsEnvironment.findBundles(ComponentsEnvironment.java:109) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCachedBundles(ComponentsEnvironment.java:99) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.component.ComponentsEnvironment.getBundles(ComponentsEnvironment.java:87) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.getSchemaLocations(JRReportSaxParserFactory.java:93) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.configureParser(BaseSaxParserFactory.java:153) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.createParser(BaseSaxParserFactory.java:108) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRXmlDigesterFactory.java:1596) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:1565) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:263) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:219) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:194) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:185) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:288) ~[jasperreports-6.4.1.jar:6.4.1]
        at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:575) ~[jasperreports-6.4.1.jar:6.4.1]
        at com.cybersaint.report.listener.ReportOneReceiver.receiveMessage(ReportOneReceiver.java:41) ~[main/:na]
        at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) ~[na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_172]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_172]
        at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:280) ~[spring-core-5.0.5.RELEASE.jar:5.0.5.RELEASE]
        at org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter.invokeListenerMethod(MessageListenerAdapter.java:372) ~[spring-rabbit-2.0.3.RELEASE.jar:2.0.3.RELEASE]
        ... 10 common frames omitted
 

Do you know what am I missing?

How can I compile the reports from the Pro version with java?

ignacio_6's picture
Joined: Apr 24 2018 - 9:38am
Last seen: 1 year 6 months ago

0 Answers:

No answers yet
Feedback
randomness