Error with JasperSoft Plugin on Servoy 8.4

Questions and answers on developing, deploying and using plugins and JavaBeans

Error with JasperSoft Plugin on Servoy 8.4

Postby jvalencia » Thu Dec 27, 2018 8:03 pm

Error with JasperSoft Plugin on Servoy 8.4

Servoy 8.4.0rc2
ChartNScript_Servoy_JasperReports_Plugin_v.6.4.1
OS: Windows 10
Java: 1.8

Same plugin works fine on Servoy 8.3

ERROR com.servoy.j2db.util.Debug - org/apache/commons/collections/map/ReferenceMap
at C:\Servoy\all_workspaces\Servoy84_Developer\App4u_Tow01\forms\App4u_Tow_Customer_frm.js:725 (submethod_print_Jasper)
at C:\Servoy\all_workspaces\Servoy84_Developer\App4u_Tow01\forms\App4u_Tow_Customer_frm.js:574 (toolbar_header_Print)
at C:\Servoy\all_workspaces\Servoy84_Developer\App4u_Tow01\forms\App4u_Toolbar.js:668 (toolbar_header_Print)
java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ReferenceMap
at net.sf.jasperreports.engine.component.ComponentsEnvironment.<init>(ComponentsEnvironment.java:56) ~[jasperreports-6.4.1.jar:6.4.1]
at net.sf.jasperreports.engine.component.ComponentsEnvironment.getInstance(ComponentsEnvironment.java:76) ~[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.compileToFile(JasperCompileManager.java:227) ~[jasperreports-6.4.1.jar:6.4.1]
at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:542) ~[jasperreports-6.4.1.jar:6.4.1]
at com.servoy.plugins.jasperreports.JasperReportsServer.jasperCompile(JasperReportsServer.java:284) ~[servoy_jasperreports.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_73]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_73]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_73]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_73]
at com.servoy.j2db.util.AbstractRemoteInvocationHandler.invokeMethod(AbstractRemoteInvocationHandler.java:77) ~[servoy_shared_8.4.0.3401_rc2.jar:?]
at com.servoy.j2db.util.ThreadingRemoteInvocationHandler$1.run(ThreadingRemoteInvocationHandler.java:79) ~[servoy_shared_8.4.0.3401_rc2.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_73]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_73]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_73]
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.map.ReferenceMap
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_73]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_73]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_73]
... 23 more
JavaException: java.lang.Exception: org/apache/commons/collections/map/ReferenceMap
at C:\Servoy\all_workspaces\Servoy84_Developer\App4u_Tow01\forms\App4u_Tow_Customer_frm.js:725 (submethod_print_Jasper)
at C:\Servoy\all_workspaces\Servoy84_Developer\App4u_Tow01\forms\App4u_Tow_Customer_frm.js:574 (toolbar_header_Print)
at C:\Servoy\all_workspaces\Servoy84_Developer\App4u_Tow01\forms\App4u_Toolbar.js:668 (toolbar_header_Print)
jvalencia
 
Posts: 5
Joined: Tue Nov 30, 2010 6:35 pm

Re: Error with JasperSoft Plugin on Servoy 8.4

Postby rgansevles » Thu Dec 27, 2018 10:55 pm

The commons-collections library has been upgraded in Servoy 8.4
The jasper reports plugin needs to be adjusted for that.
Please file an issue at https://www.servoyforge.net/projects/se ... perreports

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1883
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Error with JasperSoft Plugin on Servoy 8.4

Postby rgansevles » Fri Dec 28, 2018 10:42 am

Servoy upgraded commons-collections from 3 to 4.
As a workaround, adding commons-collections 3 jar to the plugin directory will probably fix this issue.
A proper fix to the plugin is still needed, though.
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1883
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Error with JasperSoft Plugin on Servoy 8.4

Postby jcompagner » Fri Dec 28, 2018 2:14 pm

you can download the 3.2.2 version from here: https://commons.apache.org/proper/commo ... ctions.cgi

created a case: https://support.servoy.com/browse/SVY-13162 to add that jar by default in the plugin
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8172
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Error with JasperSoft Plugin on Servoy 8.4

Postby jvalencia » Fri Dec 28, 2018 4:59 pm

Thanks Johan, that seems to work

I copied the commons-collections-3.2.2.jar to plugins folder
jvalencia
 
Posts: 5
Joined: Tue Nov 30, 2010 6:35 pm

Re: Error with JasperSoft Plugin on Servoy 8.4

Postby omar » Thu May 09, 2019 11:19 am

The link appears to be broken. The files can be found in the download area however. For now, this one works: http://apache.mirror1.spango.com//commons/collections/binaries/commons-collections-3.2.2-bin.zip
Intrasoft, Founder
Omar van Galen
omar@intrasoft.nl
+31-(0)6-21234586
Servoy Developer
omar
 
Posts: 330
Joined: Sat Feb 12, 2011 4:51 pm
Location: Intrasoft, The Netherlands


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 1 guest