NoClassDefFoundError:org/apache/xml/serializer/TreeWalker

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

NoClassDefFoundError:org/apache/xml/serializer/TreeWalker

Postby svisser1448437380 » Thu Mar 24, 2016 4:52 pm

When using var myXML= new XML() and working with it in Developer, at the end I can do a myXML.toXMLString() with the output to a messagebox.
But when I imported the solution in the Application server and start the smart client, after hitting the button with the code XML.toXMLString(), nothing happens anymore (function stops). (solution still works)

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

Code: Select all
Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker
   at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:823)
   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.XMLObjectImpl.execIdCall(XMLObjectImpl.java:1074)
   at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:121)
   at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:107)
   at org.mozilla.javascript.gen.toos_forms_frm_invo_details_ExportLianderInvoice_17._c_ExportLianderInvoice_0(toos/forms/frm_invo_details/ExportLianderInvoice:496)
   at org.mozilla.javascript.gen.toos_forms_frm_invo_details_ExportLianderInvoice_17.call(toos/forms/frm_invo_details/ExportLianderInvoice)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204)
   at org.mozilla.javascript.gen.toos_forms_frm_invo_details_ExportLianderInvoice_17.call(toos/forms/frm_invo_details/ExportLianderInvoice)
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:628)
   at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:824)
   at com.servoy.j2db.FormController.executeFunction(FormController.java:1277)
   at com.servoy.j2db.FormController.executeFunction(FormController.java:1144)
   at com.servoy.j2db.FormController$ScriptExecuter.executeFunction(FormController.java:1056)
   at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:284)
   at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:250)
   at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:218)
   at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:213)
   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.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 com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   ... 60 more


What's missing in the Application server / station running the smart client?
(in developer\plugins there it the file org.apache.xml.serializer_2.7.1.v201005080400.jar)
saNder Visser
IT2serve
Servoy 7.4.7 / Windows 8.1
User avatar
svisser1448437380
 
Posts: 10
Joined: Wed Nov 25, 2015 9:43 am
Location: Zoetermeer, Netherlands

Re: NoClassDefFoundError:org/apache/xml/serializer/TreeWalke

Postby svisser1448437380 » Thu May 26, 2016 12:18 pm

There was a difference between the plugins available in the developer and the one in the application server. Updating the plugins in the application server with the plugins from developer solved the problem.
saNder Visser
IT2serve
Servoy 7.4.7 / Windows 8.1
User avatar
svisser1448437380
 
Posts: 10
Joined: Wed Nov 25, 2015 9:43 am
Location: Zoetermeer, Netherlands


Return to Programming with Servoy

Who is online

Users browsing this forum: Bing [Bot] and 6 guests