Menu

JDOM Error

2005-09-28
2013-04-25
  • Harikrishna Majeti

    Hi Everybody,

    I am having some problem running my tests using SQLUNIT 4.9. I am getting the following error,
    I have set classpath properly. Some body told me to unzip JDOM.jar and use the same in Classpath. Even then I am having same problem.

    If any body has already faced this problem, Please help me out.

    Error Message in Log file:

    [sqlunit] DEBUG [main] (SQLUnitResult.java:135) - >> setTestFile(d:\sqlunit-4.9\test\oracle\test.xml)
      [sqlunit] DEBUG [main] (ConnectionRegistry.java:240) - >> releaseConnections()
      [sqlunit] DEBUG [main] (SQLUnitResult.java:99) - >> errorCount()
      [sqlunit] DEBUG [main] (SQLUnitResult.java:90) - >> failureCount()
      [sqlunit] FATAL [main] (SQLUnit.java:223) - XML error (org.jdom.input.JDOMParseException): Error on line 1: The processing instruction target matching "[xX][mM][lL]" is not allowed.
      [sqlunit] net.sourceforge.sqlunit.SQLUnitException: XML error (org.jdom.input.JDOMParseException): Error on line 1: The processing instruction target matching "[xX][mM][lL]" is not allowed.
      [sqlunit]     at net.sourceforge.sqlunit.SQLUnit.processDoc(SQLUnit.java:401)
      [sqlunit]     at net.sourceforge.sqlunit.SQLUnit.testWrapper(SQLUnit.java:243)
      [sqlunit]     at net.sourceforge.sqlunit.SQLUnit.runTest(SQLUnit.java:220)
      [sqlunit]     at net.sourceforge.sqlunit.ant.SqlunitTask.execute(SqlunitTask.java:112)
      [sqlunit]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [sqlunit]     at org.apache.tools.ant.Task.perform(Task.java:364)
      [sqlunit]     at org.apache.tools.ant.Target.execute(Target.java:341)
      [sqlunit]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [sqlunit]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [sqlunit]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [sqlunit]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [sqlunit]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [sqlunit]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [sqlunit]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [sqlunit]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [sqlunit]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [sqlunit] Caused by: org.jdom.input.JDOMParseException: Error on line 1: The processing instruction target matching "[xX][mM][lL]" is not allowed.
      [sqlunit]     at org.jdom.input.SAXBuilder.build(SAXBuilder.java:381)
      [sqlunit]     at org.jdom.input.SAXBuilder.build(SAXBuilder.java:684)
      [sqlunit]     at net.sourceforge.sqlunit.SQLUnit.processDoc(SQLUnit.java:268)
      [sqlunit]     ... 15 more
      [sqlunit] Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
      [sqlunit]     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      [sqlunit]     at org.jdom.input.SAXBuilder.build(SAXBuilder.java:370)
      [sqlunit]     ... 17 more
      [sqlunit] sqlunit-ant: XML error (org.jdom.input.JDOMParseException): Error on line 1: The processing instruction target matching "[xX][mM][lL]" is not allowed.
      [sqlunit] net.sourceforge.sqlunit.SQLUnitException: One or more SQLUnit Tests failed, see D:\sqlunit-4.9\Harilog.log for details
      [sqlunit]     at net.sourceforge.sqlunit.ant.SqlunitTask.execute(SqlunitTask.java:129)
      [sqlunit]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [sqlunit]     at org.apache.tools.ant.Task.perform(Task.java:364)
      [sqlunit]     at org.apache.tools.ant.Target.execute(Target.java:341)
      [sqlunit]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [sqlunit]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [sqlunit]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [sqlunit]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [sqlunit]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [sqlunit]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [sqlunit]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [sqlunit]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [sqlunit]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

     
    • Sujit Pal

      Sujit Pal - 2005-12-17

      Hi Harikrishna,

      It would be helpful if you post your xml file, going by the output, there are some things that look like you are doing something wrong from an XML point of view.
      [sqlunit] Caused by: org.jdom.input.JDOMParseException: Error on line 1: The processing instruction target matching "[xX][mM][lL]" is not allowed.

      -sujit

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.