Project

General

Profile

Defect #1319

Save XML file in Servoy Smart Client not work with JasperReport plugin

Added by Javier Arroyo about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
04/03/2018
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

I have detected that if I have installed the jasperreport plugin I am not allowed to save xml in a file in Servoy SmartClient. The Java console gives me the error that I put below. If I remove the jasperreport plugin there is no problem, I can save Xml in a file
When I use in Servoy var myXML= new XML and working with it in Developer, at the end I can do a myXML.toXMLString() with the output to save XML in a file. I think it is the jasperreports plugin that adds some xml libs that shouldn't be there.
How can I solve that? I need the Jasperreport reports and at the same time I need to be able to save xml files from my applications. This error only occurs in SamrtClient, in webclient it does not happen.

When Java console is activated on the client running the smart client, the following error's appears:

Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker
at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:818)
at org.mozilla.javascript.xmlimpl.XmlProcessor.toString(XmlProcessor.java:336)
at org.mozilla.javascript.xmlimpl.XmlProcessor.elementToXmlString(XmlProcessor.java:401)
at org.mozilla.javascript.xmlimpl.XmlProcessor.ecmaToXmlString(XmlProcessor.java:434)
at org.mozilla.javascript.xmlimpl.XmlNode.ecmaToXMLString(XmlNode.java:647)
at org.mozilla.javascript.xmlimpl.XML.toXMLString(XML.java:779)
at org.mozilla.javascript.xmlimpl.XML.ecmaToString(XML.java:764)
at org.mozilla.javascript.xmlimpl.XML.toString(XML.java:769)
at com.servoy.j2db.persistence.Column.getAsRightType(Column.java:454)
at com.servoy.j2db.persistence.Column.getAsRightType(Column.java:197)
at com.servoy.j2db.scripting.ScriptVariableScope.put(ScriptVariableScope.java:422)
at com.servoy.j2db.scripting.ScriptVariableScope.put(ScriptVariableScope.java:310)
at com.servoy.j2db.scripting.FormScope.put(FormScope.java:465)
at org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:2324)
at org.mozilla.javascript.ScriptRuntime.setName(ScriptRuntime.java:1926)
at org.mozilla.javascript.gen.NominaAgServ_forms_dialogGeneracionXMLSolicTrabTram_GenerarXML_21._c_GenerarXML_0(Unknown Source)
at org.mozilla.javascript.gen.NominaAgServ_forms_dialogGeneracionXMLSolicTrabTram_GenerarXML_21.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:97)
at org.mozilla.javascript.gen.NominaAgServ_forms_dialogGeneracionXMLSolicTrabTram_btn_ok_20._c_btn_ok_0(Unknown Source)
at org.mozilla.javascript.gen.NominaAgServ_forms_dialogGeneracionXMLSolicTrabTram_btn_ok_20.call(Unknown Source)
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:665)
at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:1063)
at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:945)
at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:812)
at com.servoy.j2db.FormController$ScriptExecuter.executeFunction(FormController.java:1041)
at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:299)
at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:265)
at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:233)
at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:228)
at com.servoy.j2db.smart.dataui.AbstractScriptButton$2.actionPerformed(AbstractScriptButton.java:660)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.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.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at com.servoy.j2db.util.gui.JEscapeDialog.setVisible(JEscapeDialog.java:170)
at com.servoy.j2db.gui.FormDialog.setVisible(FormDialog.java:164)
at com.servoy.j2db.smart.SwingRuntimeWindow.finalizeShowWindow(SwingRuntimeWindow.java:875)
at com.servoy.j2db.smart.SwingRuntimeWindow.doOldShowInDialog(SwingRuntimeWindow.java:511)
at com.servoy.j2db.smart.SwingRuntimeWindow.doOldShow(SwingRuntimeWindow.java:420)
at com.servoy.j2db.scripting.RuntimeWindow.doShow(RuntimeWindow.java:304)
at com.servoy.j2db.scripting.RuntimeWindow.show(RuntimeWindow.java:298)
at com.servoy.j2db.scripting.RuntimeWindow.showObject(RuntimeWindow.java:285)
at com.servoy.j2db.scripting.JSWindow.js_show(JSWindow.java:155)
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:158)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:312)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:62)
at org.mozilla.javascript.gen.NominaAgServ_scopes_globals_NOMshowDialogGeneracionXMLSolicTrabTram_15._c_NOMshowDialogGeneracionXMLSolicTrabTram_0(NominaAgServ/scopes/globals/NOMshowDialogGeneracionXMLSolicTrabTram:2629)
at org.mozilla.javascript.gen.NominaAgServ_scopes_globals_NOMshowDialogGeneracionXMLSolicTrabTram_15.call(NominaAgServ/scopes/globals/NOMshowDialogGeneracionXMLSolicTrabTram)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:78)
at org.mozilla.javascript.gen.NominaAgServ_scopes_globals_MenuSLDNOM_14._c_MenuSLDNOM_0(NominaAgServ/scopes/globals/MenuSLDNOM:9554)
at org.mozilla.javascript.gen.NominaAgServ_scopes_globals_MenuSLDNOM_14.call(NominaAgServ/scopes/globals/MenuSLDNOM)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204)
at org.mozilla.javascript.gen.NominaAgServ_scopes_globals_MenuSLDNOM_14.call(NominaAgServ/scopes/globals/MenuSLDNOM)
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:665)
at com.servoy.j2db.plugins.ClientPluginAccessProvider$MethodExecutor.run(ClientPluginAccessProvider.java:564)
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: org.apache.xml.serializer.TreeWalker
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 113 more

Also available in: Atom PDF