jrbean.jar error

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

jrbean.jar error

Postby lwjwillemsen » Fri Aug 14, 2020 3:19 pm

Hi,

Env.: Smart client 2020.03.1 (WAR file deployment).
Problem: When showing a form where we use the jrbean (Jasper Reporting bean) we get error message:
"bean missing com.servoy.plugins.jasperreports.bean.JasperReportsServoyViewer".

- In Servoy2020.3.1 developer no error and all ok.
- I checked the client java cache and the jrbean.jar is present as resource.
?
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 673
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: jrbean.jar error

Postby jcompagner » Fri Aug 14, 2020 3:40 pm

are you sure its in the jnlp file?

no other errors in the java console before this?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8460
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: jrbean.jar error

Postby lwjwillemsen » Fri Aug 14, 2020 4:11 pm

Hi Johan,

The jrbean.jar is shipped through the Servoy Application Server beans folder where we put all the non-jnlp jar files.

Java-log:
SEVERE: net/sf/jasperreports/view/JRViewer
at svy_nav_navigation/scopes/globals/svy_nav_showForm:6860 (svy_nav_showForm)
at svy_nav_navigation/scopes/globals/svy_nav_tree_node_selected:7598 (svy_nav_tree_node_selected)

java.lang.NoClassDefFoundError: net/sf/jasperreports/view/JRViewer
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetPublicMethods(Unknown Source)
at java.lang.Class.getMethods(Unknown Source)
at com.sun.beans.finder.MethodFinder$1.create(Unknown Source)
at com.sun.beans.finder.MethodFinder$1.create(Unknown Source)
at com.sun.beans.util.Cache.get(Unknown Source)
at com.sun.beans.finder.MethodFinder.findMethod(Unknown Source)
at java.beans.Statement.getMethod(Unknown Source)
at java.beans.Statement.invokeInternal(Unknown Source)
at java.beans.Statement.access$000(Unknown Source)
at java.beans.Statement$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.Statement.invoke(Unknown Source)
at java.beans.Expression.getValue(Unknown Source)
at com.sun.beans.decoder.ObjectElementHandler.getValueObject(Unknown Source)
at com.sun.beans.decoder.NewElementHandler.getValueObject(Unknown Source)
at com.sun.beans.decoder.ElementHandler.getContextBean(Unknown Source)
at com.sun.beans.decoder.NewElementHandler.getContextBean(Unknown Source)
at com.sun.beans.decoder.ObjectElementHandler.getValueObject(Unknown Source)
at com.sun.beans.decoder.NewElementHandler.getValueObject(Unknown Source)
at com.sun.beans.decoder.ElementHandler.endElement(Unknown Source)
at com.sun.beans.decoder.DocumentHandler.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at com.sun.beans.decoder.DocumentHandler$1.run(Unknown Source)
at com.sun.beans.decoder.DocumentHandler$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at com.sun.beans.decoder.DocumentHandler.parse(Unknown Source)
at java.beans.XMLDecoder$1.run(Unknown Source)
at java.beans.XMLDecoder$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.XMLDecoder.parsingComplete(Unknown Source)
at java.beans.XMLDecoder.readObject(Unknown Source)
at com.servoy.j2db.component.ComponentFactory.getBeanInstanceFromXML(ComponentFactory.java:872)
at com.servoy.j2db.component.ComponentFactory.createBean(ComponentFactory.java:2381)
at com.servoy.j2db.component.ComponentFactory.createComponentEx(ComponentFactory.java:375)
at com.servoy.j2db.component.ComponentFactory.createComponent(ComponentFactory.java:258)
at com.servoy.j2db.smart.dataui.DataRendererFactory.placeElements(DataRendererFactory.java:300)
at com.servoy.j2db.smart.dataui.DataRendererFactory.completeRenderers(DataRendererFactory.java:266)
at com.servoy.j2db.FormController.createDataRenderers(FormController.java:454)
at com.servoy.j2db.FormController.init(FormController.java:275)
at com.servoy.j2db.FormManager.leaseFormPanel(FormManager.java:787)
at com.servoy.j2db.FormManager.leaseFormPanel(FormManager.java:1)
at com.servoy.j2db.scripting.CreationalPrototype.get(CreationalPrototype.java:168)
at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2357)
at org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1515)
at org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1496)
at org.mozilla.javascript.gen.svy_nav_navigation_scopes_globals_svy_nav_showForm_111._c_svy_nav_showForm_0(svy_nav_navigation/scopes/globals/svy_nav_showForm:6860)
at org.mozilla.javascript.gen.svy_nav_navigation_scopes_globals_svy_nav_showForm_111.call(svy_nav_navigation/scopes/globals/svy_nav_showForm)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.mozilla.javascript.gen.svy_nav_navigation_scopes_globals_svy_nav_tree_node_selected_62._c_svy_nav_tree_node_selected_0(svy_nav_navigation/scopes/globals/svy_nav_tree_node_selected:7598)
at org.mozilla.javascript.gen.svy_nav_navigation_scopes_globals_svy_nav_tree_node_selected_62.call(svy_nav_navigation/scopes/globals/svy_nav_tree_node_selected)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:399)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3534)
at org.mozilla.javascript.gen.svy_nav_navigation_scopes_globals_svy_nav_tree_node_selected_62.call(svy_nav_navigation/scopes/globals/svy_nav_tree_node_selected)
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:670)
at com.servoy.j2db.plugins.ClientPluginAccessProvider$MethodExecutor.run(ClientPluginAccessProvider.java:574)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: net.sf.jasperreports.view.JRViewer
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 94 more

aug 14, 2020 4:08:23 PM com.servoy.j2db.util.Debug error
SEVERE: net/sf/jasperreports/view/JRViewer
at glb/forms/glb_dashboard_dtl/fill_questions:293 (fill_questions)
at glb/forms/glb_dashboard_dtl/onDataChangeReportId:143 (onDataChangeReportId)
at glb/forms/glb_dashboard_dtl/onPreShow:63 (onPreShow)
at svy_nav_navigation/scopes/globals/svy_nav_onShow:5605 (svy_nav_onShow)

java.lang.NoClassDefFoundError: net/sf/jasperreports/view/JRViewer
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetPublicMethods(Unknown Source)
at java.lang.Class.getMethods(Unknown Source)
at com.sun.beans.finder.MethodFinder$1.create(Unknown Source)
at com.sun.beans.finder.MethodFinder$1.create(Unknown Source)
at com.sun.beans.util.Cache.get(Unknown Source)
at com.sun.beans.finder.MethodFinder.findMethod(Unknown Source)
at java.beans.Statement.getMethod(Unknown Source)
at java.beans.Statement.invokeInternal(Unknown Source)
at java.beans.Statement.access$000(Unknown Source)
at java.beans.Statement$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.Statement.invoke(Unknown Source)
at java.beans.Expression.getValue(Unknown Source)
at com.sun.beans.decoder.ObjectElementHandler.getValueObject(Unknown Source)
at com.sun.beans.decoder.NewElementHandler.getValueObject(Unknown Source)
at com.sun.beans.decoder.ElementHandler.getContextBean(Unknown Source)
at com.sun.beans.decoder.NewElementHandler.getContextBean(Unknown Source)
at com.sun.beans.decoder.ObjectElementHandler.getValueObject(Unknown Source)
at com.sun.beans.decoder.NewElementHandler.getValueObject(Unknown Source)
at com.sun.beans.decoder.ElementHandler.endElement(Unknown Source)
at com.sun.beans.decoder.DocumentHandler.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at com.sun.beans.decoder.DocumentHandler$1.run(Unknown Source)
at com.sun.beans.decoder.DocumentHandler$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at com.sun.beans.decoder.DocumentHandler.parse(Unknown Source)
at java.beans.XMLDecoder$1.run(Unknown Source)
at java.beans.XMLDecoder$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.XMLDecoder.parsingComplete(Unknown Source)
at java.beans.XMLDecoder.readObject(Unknown Source)
at com.servoy.j2db.component.ComponentFactory.getBeanInstanceFromXML(ComponentFactory.java:872)
at com.servoy.j2db.component.ComponentFactory.createBean(ComponentFactory.java:2381)
at com.servoy.j2db.component.ComponentFactory.createComponentEx(ComponentFactory.java:375)
at com.servoy.j2db.component.ComponentFactory.createComponent(ComponentFactory.java:258)
at com.servoy.j2db.smart.dataui.DataRendererFactory.placeElements(DataRendererFactory.java:300)
at com.servoy.j2db.smart.dataui.DataRendererFactory.completeRenderers(DataRendererFactory.java:266)
at com.servoy.j2db.FormController.createDataRenderers(FormController.java:454)
at com.servoy.j2db.FormController.setView(FormController.java:919)
at com.servoy.j2db.FormController.recreateUI(FormController.java:367)
at com.servoy.j2db.BasicFormController$JSForm.js_recreateUI(BasicFormController.java:3479)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:292)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at org.mozilla.javascript.gen.glb_forms_glb_dashboard_dtl_fill_questions_135._c_fill_questions_0(glb/forms/glb_dashboard_dtl/fill_questions:293)
at org.mozilla.javascript.gen.glb_forms_glb_dashboard_dtl_fill_questions_135.call(glb/forms/glb_dashboard_dtl/fill_questions)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
at org.mozilla.javascript.gen.glb_forms_glb_dashboard_dtl_onDataChangeReportId_129._c_onDataChangeReportId_0(glb/forms/glb_dashboard_dtl/onDataChangeReportId:143)
at org.mozilla.javascript.gen.glb_forms_glb_dashboard_dtl_onDataChangeReportId_129.call(glb/forms/glb_dashboard_dtl/onDataChangeReportId)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at org.mozilla.javascript.gen.glb_forms_glb_dashboard_dtl_onPreShow_127._c_onPreShow_0(glb/forms/glb_dashboard_dtl/onPreShow:63)
at org.mozilla.javascript.gen.glb_forms_glb_dashboard_dtl_onPreShow_127.call(glb/forms/glb_dashboard_dtl/onPreShow)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.mozilla.javascript.gen.svy_nav_navigation_scopes_globals_svy_nav_onShow_126._c_svy_nav_onShow_0(svy_nav_navigation/scopes/globals/svy_nav_onShow:5605)
at org.mozilla.javascript.gen.svy_nav_navigation_scopes_globals_svy_nav_onShow_126.call(svy_nav_navigation/scopes/globals/svy_nav_onShow)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:399)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3534)
at org.mozilla.javascript.gen.svy_nav_navigation_scopes_globals_svy_nav_onShow_126.call(svy_nav_navigation/scopes/globals/svy_nav_onShow)
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:670)
at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:1074)
at com.servoy.j2db.BasicFormController.executeFormMethod(BasicFormController.java:790)
at com.servoy.j2db.BasicFormController.executeOnShowMethod(BasicFormController.java:658)
at com.servoy.j2db.BasicFormController.access$2(BasicFormController.java:651)
at com.servoy.j2db.BasicFormController$1.run(BasicFormController.java:387)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: net.sf.jasperreports.view.JRViewer
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 107 more
Attachments
image-2020-08-04-10-26-15-275.png
image-2020-08-04-10-26-15-275.png (91.87 KiB) Viewed 2415 times
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 673
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: jrbean.jar error

Postby jcompagner » Fri Aug 14, 2020 5:08 pm

so the problem is its really not there it is not shipped to the client\
you need to look really in the jnlp files to see if it is really there (?raw=true behind for example a jnlp url)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8460
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: jrbean.jar error

Postby lwjwillemsen » Sat Aug 15, 2020 12:05 am

After clearing the java cache and starting the smart client all the jar files from the Servoy beans folder are visible in the java resources including the jrbean.jar.
Other beans we use on forms are working ok.
Java beans do not need to be specified in a jnlp to operate on a Servoy form since the content of the beans folder is shipped to the client!
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 673
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: jrbean.jar error

Postby jcompagner » Mon Aug 17, 2020 5:23 pm

but they are ofcourse generated by us in a special jnlp !!
so i can only see that when i see the contents of that jnlp

do you have a url that i can hit to check this out?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8460
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: jrbean.jar error

Postby lwjwillemsen » Tue Aug 18, 2020 12:03 am

Okay, I see the jrbean.jar.jnlp in the Java resources. The jrbean.jar is also present in the Java resources.
Content:
<jnlp spec="1.0+" codebase="http://ig-visiontest8:8080/main/" href="http://ig-visiontest8:8080/main/servoy-client/beans/jrbean.jar.jnlp">
<information>
<title>Servoy Client Beans</title>
<vendor>Servoy and Others</vendor>
<homepage href="null"/>
</information>
<security>
<all-permissions/>
</security>
<update check="timeout" policy="always"/>
<resources>
<jar href="http://ig-visiontest8:8080/main/beans/jrbean.jar" version="1597071513773" download="eager" main="false"/>
</resources>
<component-desc/>
</jnlp>

+ in Servoy2020.03.0 war file deployment no problem.
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 673
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: jrbean.jar error

Postby jcompagner » Tue Aug 18, 2020 9:08 am

then i don't know without really seeing it myself
It could be that maybe it needs something by itself and because of that it is not loading.
i don't see what is changed in servoy for .1 for that
its just that something is not there on the client.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8460
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: jrbean.jar error

Postby lwjwillemsen » Tue Aug 18, 2020 10:16 am

Hi Johan,

We built a Docker container with Servoy2020.03.1 (Servoy Cloud) and tested it: Same error...

Can we go private for further follow up or?

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 673
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: jrbean.jar error

Postby jcompagner » Tue Aug 18, 2020 11:43 am

which jrviewer.jar are you using?

https://jar-download.com/artifacts/net. ... iewer.java

i see it uses commons logging but that should still be shipped by us to the client as far as i see

If you can send me a public url of the smart client where i can download it privately then i can have a look

i really wonder what the difference is between the jnlp files for 2020.3 and 2020.3.1 i can't see that there are any changes.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8460
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: jrbean.jar error

Postby lwjwillemsen » Wed Aug 19, 2020 2:49 pm

The jrviewer is situated somewhere in the servoy_jasperreports.jar imho.
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 673
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: jrbean.jar error

Postby lwjwillemsen » Wed Aug 19, 2020 11:00 pm

I think I found it:

Class "net.sf.jasperreports.view.JRViewer.class" does not exist any more in (application_server\plugins\servoy_jasperreports\)jasperreports-6.12.2.jar.
It is relocated to "net.sf.jasperreports.swing.JRViewer.class".
In the jasperreports-6.4.1.jar the class "net.sf.jasperreports.view.JRViewer.class" does exist.

I guess a new jrbean.jar is needed for use with the jasperreports-6.12.2.jar.

Is my guess correct Johan or Gabi?
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 673
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: jrbean.jar error

Postby jcompagner » Thu Aug 20, 2020 9:31 am

right so remember to mention this...
The change was not just the update from 2020.3.0 to 3.1... i want to really stress this that people check this
You also updated jasper.. And that then suddenly jasper related stuff is not working anymore should directly point back to that specific update.

But what i still don't get, so you have besides your jasperreports also a jrbean.jar?
and where did you get the jrbean from? i dont see it in a download of jasper (or i am looking at the wrong one)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8460
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: jrbean.jar error

Postby jcompagner » Thu Aug 20, 2020 9:50 am

i double checked it and yes: 6.4.1_2019.12.1 compared to 6.12.2_2020.03 the net.sf.jasperreports.view is different (both already had the net.sf.jasperreports.swing.JRViewer)
I guess the deprecated that already for a while and now removed it.

so we need to update i guess he jrbean code to use that one. and i see in our code:
https://github.com/Servoy/servoy_jasper ... r.java#L44

thats already done. but i guess the latest jrbean from servoy forge still uses the old stuff.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8460
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: jrbean.jar error

Postby jcompagner » Thu Aug 20, 2020 10:22 am

i attached a new jrbean to the latest release of jasper:

https://github.com/Servoy/servoy_jasper ... tag/6.12.2
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8460
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Next

Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 4 guests