[Dev] TM5 code throws SAX expression
Frank Cohen
fcohen at pushtotest.com
Wed Mar 28 19:38:21 PST 2007
Hi William: I did a fresh check-out of the TM5 repository. I used the
tool build.xml to run the deploy_to_testmaker target. Then I used the
TestMaker build.xml run target.
TestMaker 5 appears, I click the New Test icon in the top tool bar, I
enter a testscenario.xml into the file selector, and I get:
org.xml.sax.SAXParseException: unexpected root element (uri:"",
local:"testscenario"). Expected elements are <{www.pushtotest.com/tm5}
testscenario>
at
com.pushtotest.testmaker.XSTest.xml.TestScenario.impl.runtime.SAXUnmarsh
allerHandlerImpl.startElement(SAXUnmarshallerHandlerImpl.java:113)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement
(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl
$NSContentDispatcher.scanRootElementHook(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
com.pushtotest.testmaker.XSTest.xml.TestScenario.impl.runtime.Unmarshall
erImpl.unmarshal(UnmarshallerImpl.java:140)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
(AbstractUnmarshallerImpl.java:131)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
(AbstractUnmarshallerImpl.java:136)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
(AbstractUnmarshallerImpl.java:145)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
(AbstractUnmarshallerImpl.java:163)
at
com.pushtotest.testmaker.XSTest.xml.TestScenario.XMLReader.loadConfig
(XMLReader.java:68)
at com.pushtotest.testmaker.XSTest.xml.TestScenario.XMLReader.<init>
(XMLReader.java:53)
at com.pushtotest.testmaker.controller.guiTestScenarioPanel.<init>
(guiTestScenarioPanel.java:62)
at
com.pushtotest.testmaker.controller.guiTestScenarioPanel.newFromDialog
(guiTestScenarioPanel.java:109)
at com.pushtotest.testmaker.gui.ScriptEditor.jbase.newTestscenario
(jbase.java:367)
at com.pushtotest.testmaker.gui.ScriptEditor.jbase.access$000
(jbase.java:119)
at com.pushtotest.testmaker.gui.ScriptEditor.jbase$2.actionPerformed
(jbase.java:322)
at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1882)
at javax.swing.AbstractButton$Handler.actionPerformed
(AbstractButton.java:2202)
at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:
258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5554)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5319)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4021)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:
4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:
3936)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
--------------- linked to ------------------
javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: unexpected root element (uri:"",
local:"testscenario"). Expected elements are <{www.pushtotest.com/tm5}
testscenario>]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException
(AbstractUnmarshallerImpl.java:298)
at
com.pushtotest.testmaker.XSTest.xml.TestScenario.impl.runtime.Unmarshall
erImpl.unmarshal(UnmarshallerImpl.java:144)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
(AbstractUnmarshallerImpl.java:131)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
(AbstractUnmarshallerImpl.java:136)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
(AbstractUnmarshallerImpl.java:145)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
(AbstractUnmarshallerImpl.java:163)
at
com.pushtotest.testmaker.XSTest.xml.TestScenario.XMLReader.loadConfig
(XMLReader.java:68)
at com.pushtotest.testmaker.XSTest.xml.TestScenario.XMLReader.<init>
(XMLReader.java:53)
at com.pushtotest.testmaker.controller.guiTestScenarioPanel.<init>
(guiTestScenarioPanel.java:62)
at
com.pushtotest.testmaker.controller.guiTestScenarioPanel.newFromDialog
(guiTestScenarioPanel.java:109)
at com.pushtotest.testmaker.gui.ScriptEditor.jbase.newTestscenario
(jbase.java:367)
at com.pushtotest.testmaker.gui.ScriptEditor.jbase.access$000
(jbase.java:119)
at com.pushtotest.testmaker.gui.ScriptEditor.jbase$2.actionPerformed
(jbase.java:322)
at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1882)
at javax.swing.AbstractButton$Handler.actionPerformed
(AbstractButton.java:2202)
at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:
258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5554)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5319)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4021)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:
4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:
3936)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.pushtotest.testmaker.controller.guiTestScenarioPanel.<init>
(guiTestScenarioPanel.java:63)
at
com.pushtotest.testmaker.controller.guiTestScenarioPanel.newFromDialog
(guiTestScenarioPanel.java:109)
at com.pushtotest.testmaker.gui.ScriptEditor.jbase.newTestscenario
(jbase.java:367)
at com.pushtotest.testmaker.gui.ScriptEditor.jbase.access$000
(jbase.java:119)
at com.pushtotest.testmaker.gui.ScriptEditor.jbase$2.actionPerformed
(jbase.java:322)
at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1882)
at javax.swing.AbstractButton$Handler.actionPerformed
(AbstractButton.java:2202)
at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:
258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5554)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5319)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4021)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:
4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:
3936)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
-Frank
--
Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 7426
TestMaker: The open-source SOA test automation tool
More information about the Dev
mailing list