You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Yiing Fern <ye...@promserv.com.my> on 2002/04/10 06:14:03 UTC

Unable to load .jmx files

I'm currently using ApacheJmeter version 1.7. The program is working fine
except that I'm unable to load any saved .jmx files. Below is the error
message show in the dos prompt window:

java.lang.NoSuchMethodError
        at
org.apache.jmeter.util.JMeterUtils.getXMLParser(JMeterUtils.java:269)

        at org.apache.jmeter.gui.action.Load.doAction(Load.java:124)
        at
org.apache.jmeter.gui.action.ActionRouter.actionPerformed(ActionRoute
r.java:94)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
n Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease
d(Unknown Source)
        at java.awt.Component.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.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


I have checked the JMeterUtils.java file. The course of the error is this
line (269):

reader = xmlFactory.newSAXParser().getXMLReader();

which is part of the getXMLParser() method (see below):

 public static XMLReader getXMLParser()
  {
    XMLReader reader = null;

    try {
    reader = xmlFactory.newSAXParser().getXMLReader();
    } catch (Exception e) {
    reader = (XMLReader) instantiate(getPropDefault("xml.parser",
"org.apache.xerces.parsers.SAXParser"), "org.xml.sax.XMLReader");
    }

    return reader;
  }

I've tried to update this program with it's nightly releases and replace the
xerces.jar file with xercesImpl.jar and xmlParserAPIs.jar I downloaded from
jakarta website. But the problem still persist.

Anyone who knows the solution for this problem, please help.

Thank you
Y.F. Yee


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>