TesNG.xml file error when running a suite.

So I have a Maven project that has a testng.xml file:

But when I try to run this in intellij 8M1, I get this error: C:\usr\bin\Java\jdk1.6.0_06\bin\java -ea -Didea.launcher.port=7534 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 8.0M1\bin" -Dfile.encoding=windows-1252 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 8.0M1\plugins\testng\lib\testng-jdk15.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\charsets.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\deploy.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\javaws.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\jce.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\jsse.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\management-agent.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\plugin.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\resources.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\rt.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\ext\dnsns.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\ext\localedata.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\ext\sunjce_provider.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\ext\sunmscapi.jar;C:\usr\bin\Java\jdk1.6.0_06\jre\lib\ext\sunpkcs11.jar;C:\opt\projects\cloudstorage\mom-services\cloudstorage-mom\changerequest\changerequest-su\target\test-classes;C:\opt\projects\cloudstorage\mom-services\cloudstorage-mom\changerequest\changerequest-su\target\classes;C:\opt\.m2\repository\com\thoughtworks\xstream\xstream\1.3\xstream-1.3.jar;C:\opt\.m2\repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;C:\opt\.m2\repository\org\codehaus\jettison\jettison\1.0-RC2\jettison-1.0-RC2.jar;C:\opt\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;C:\opt\.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar;C:\opt\.m2\repository\org\springframework\spring-test\2.5.5\spring-test-2.5.5.jar;C:\opt\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;C:\opt\.m2\repository\org\testng\testng\5.8\testng-5.8-jdk15.jar;C:\opt\.m2\repository\com\baselogic\common-jar\3.0-SNAPSHOT\common-jar-3.0-SNAPSHOT.jar;C:\opt\.m2\repository\mysql\mysql-connector-java\5.1.6\mysql-connector-java-5.1.6.jar;C:\opt\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1_3.jar;C:\opt\.m2\repository\commons-digester\commons-digester\1.8\commons-digester-1.8.jar;C:\opt\.m2\repository\commons-beanutils\commons-beanutils\1.8.0-BETA\commons-beanutils-1.8.0-BETA.jar;C:\opt\.m2\repository\commons-dbcp\commons-dbcp\1.2.2\commons-dbcp-1.2.2.jar;C:\opt\.m2\repository\commons-pool\commons-pool\1.4\commons-pool-1.4.jar;C:\opt\.m2\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\opt\.m2\repository\commons-lang\commons-lang\2.3\commons-lang-2.3.jar;C:\opt\.m2\repository\concurrent\concurrent\1.3.4\concurrent-1.3.4.jar;C:\opt\.m2\repository\log4j\log4j\1.2.13\log4j-1.2.13.jar;C:\opt\.m2\repository\org\aspectj\aspectjweaver\1.6.0\aspectjweaver-1.6.0.jar;C:\opt\.m2\repository\org\springframework\spring\2.5.5\spring-2.5.5.jar;C:\opt\.m2\repository\org\springframework\spring-agent\2.5.5\spring-agent-2.5.5.jar;C:\opt\.m2\repository\org\springframework\spring-aspects\2.5.5\spring-aspects-2.5.5.jar;C:\opt\.m2\repository\org\aspectj\aspectjrt\1.6.0\aspectjrt-1.6.0.jar;C:\opt\.m2\repository\org\springframework\spring-beans\2.5.5\spring-beans-2.5.5.jar;C:\opt\.m2\repository\org\springframework\spring-core\2.5.5\spring-core-2.5.5.jar;C:\opt\.m2\repository\org\springframework\spring-context\2.5.5\spring-context-2.5.5.jar;C:\opt\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\opt\.m2\repository\org\springframework\spring-orm\2.5.5\spring-orm-2.5.5.jar;C:\opt\.m2\repository\org\springframework\spring-tx\2.5.5\spring-tx-2.5.5.jar;C:\opt\.m2\repository\com\baselogic\build-tools\3.0-SNAPSHOT\build-tools-3.0-SNAPSHOT.jar;C:\opt\.m2\repository\org\dbunit\dbunit\2.2.1\dbunit-2.2.1.jar;C:\opt\.m2\repository\junit-addons\junit-addons\1.4\junit-addons-1.4.jar;C:\opt\.m2\repository\xerces\xercesImpl\2.6.2\xercesImpl-2.6.2.jar;C:\opt\.m2\repository\xerces\xmlParserAPIs\2.6.2\xmlParserAPIs-2.6.2.jar;C:\opt\.m2\repository\poi\poi\2.5.1-final-20040804\poi-2.5.1-final-20040804.jar;C:\opt\.m2\repository\org\slf4j\slf4j-api\1.3.0\slf4j-api-1.3.0.jar;C:\opt\.m2\repository\org\slf4j\slf4j-nop\1.4.3\slf4j-nop-1.4.3.jar;C:\opt\.m2\repository\org\easymock\easymock\2.4\easymock-2.4.jar;C:\opt\.m2\repository\org\easymock\easymockclassextension\2.4\easymockclassextension-2.4.jar;C:\opt\.m2\repository\com\servepath\gogrid\core\2.0-SNAPSHOT\core-2.0-SNAPSHOT.jar;C:\opt\.m2\repository\org\json\json\20080701\json-20080701.jar;C:\opt\.m2\repository\net\sourceforge\jtds\jtds\1.2\jtds-1.2.jar;C:\opt\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar;C:\opt\.m2\repository\org\springframework\spring-support\2.0.6\spring-support-2.0.6.jar;C:\opt\.m2\repository\org\springframework\spring-remoting\2.0.6\spring-remoting-2.0.6.jar;C:\opt\.m2\repository\org\springframework\spring-aop\2.5.5\spring-aop-2.5.5.jar;C:\opt\.m2\repository\org\springframework\spring-web\2.5.5\spring-web-2.5.5.jar;C:\opt\.m2\repository\org\springframework\spring-dao\2.0.6\spring-dao-2.0.6.jar;C:\opt\.m2\repository\org\springframework\ldap\spring-ldap\1.2.1\spring-ldap-1.2.1.jar;C:\opt\.m2\repository\org\springframework\ldap\spring-ldap-tiger\1.2.1\spring-ldap-tiger-1.2.1.jar;C:\opt\.m2\repository\org\hibernate\hibernate-annotations\3.3.1.GA\hibernate-annotations-3.3.1.GA.jar;C:\opt\.m2\repository\org\hibernate\hibernate\3.2.6.ga\hibernate-3.2.6.ga.jar;C:\opt\.m2\repository\net\sf\ehcache\ehcache\1.3.0\ehcache-1.3.0.jar;C:\opt\.m2\repository\dom4j\dom4j\1.3\dom4j-1.3.jar;C:\opt\.m2\repository\antlr\antlr\2.7.2\antlr-2.7.2.jar;C:\opt\.m2\repository\asm\asm\2.2.3\asm-2.2.3.jar;C:\opt\.m2\repository\org\hibernate\hibernate-commons-annotations\3.3.0.ga\hibernate-commons-annotations-3.3.0.ga.jar;C:\opt\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar;C:\opt\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar;C:\opt\.m2\repository\commons-cli\commons-cli\1.0\commons-cli-1.0.jar;C:\opt\.m2\repository\commons-httpclient\commons-httpclient\3.0\commons-httpclient-3.0.jar;C:\opt\.m2\repository\commons-discovery\commons-discovery\0.4\commons-discovery-0.4.jar;C:\opt\.m2\repository\velocity\velocity\1.4\velocity-1.4.jar;C:\opt\.m2\repository\velocity\velocity-dep\1.4\velocity-dep-1.4.jar;C:\opt\.m2\repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;C:\opt\.m2\repository\aspectj\aspectjweaver\1.5.3\aspectjweaver-1.5.3.jar;C:\opt\.m2\repository\aspectj\aspectjrt\1.5.3\aspectjrt-1.5.3.jar;C:\opt\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar;C:\opt\.m2\repository\net\java\dev\stax-utils\stax-utils\20060502\stax-utils-20060502.jar;C:\opt\.m2\repository\backport-util-concurrent\backport-util-concurrent\3.0\backport-util-concurrent-3.0.jar;C:\opt\.m2\repository\org\acegisecurity\acegi-security-tiger\1.0.6\acegi-security-tiger-1.0.6.jar;C:\opt\.m2\repository\org\acegisecurity\acegi-security\1.0.6\acegi-security-1.0.6.jar;C:\opt\.m2\repository\org\springframework\spring-jdbc\2.5.5\spring-jdbc-2.5.5.jar;C:\opt\.m2\repository\oro\oro\2.0.7\oro-2.0.7.jar;C:\opt\.m2\repository\org\apache\xbean\xbean-spring\3.4\xbean-spring-3.4.jar;C:\opt\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.4\wstx-asl-3.2.4.jar;C:\opt\.m2\repository\xmlbeans\xbean\2.2.0\xbean-2.2.0.jar;C:\opt\.m2\repository\org\apache\camel\camel-spring\1.5-SNAPSHOT\camel-spring-1.5-SNAPSHOT.jar;C:\opt\.m2\repository\org\apache\camel\camel-core\1.5-SNAPSHOT\camel-core-1.5-SNAPSHOT.jar;C:\opt\.m2\repository\commons-logging\commons-logging-api\1.1\commons-logging-api-1.1.jar;C:\opt\.m2\repository\org\apache\camel\camel-jms\1.5-SNAPSHOT\camel-jms-1.5-SNAPSHOT.jar;C:\opt\.m2\repository\org\springframework\spring-jms\2.5.5\spring-jms-2.5.5.jar;C:\opt\.m2\repository\org\springframework\spring-context-support\2.5.5\spring-context-support-2.5.5.jar;C:\opt\.m2\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.1.1\geronimo-jms_1.1_spec-1.1.1.jar;C:\opt\.m2\repository\org\apache\geronimo\specs\geronimo-jta_1.1_spec\1.1.1\geronimo-jta_1.1_spec-1.1.1.jar;C:\opt\.m2\repository\org\apache\activemq\activemq-core\5.1.0\activemq-core-5.1.0.jar;C:\opt\.m2\repository\org\apache\activemq\activeio-core\3.1.0\activeio-core-3.1.0.jar;C:\opt\.m2\repository\org\apache\geronimo\specs\geronimo-j2ee-management_1.0_spec\1.1\geronimo-j2ee-management_1.0_spec-1.1.jar;C:\opt\.m2\repository\org\apache\activemq\activeio-core\3.1.0\activeio-core-3.1.0-tests.jar;C:\opt\.m2\repository\com\baselogic\data-services\jpa-impl\3.0-SNAPSHOT\jpa-impl-3.0-SNAPSHOT.jar;C:\opt\.m2\repository\javax\transaction\jta\1.0.1B\jta-1.0.1B.jar;C:\opt\.m2\repository\org\hibernate\hibernate-entitymanager\3.2.1.ga\hibernate-entitymanager-3.2.1.ga.jar;C:\opt\.m2\repository\jboss\javassist\3.3.ga\javassist-3.3.ga.jar;C:\opt\.m2\repository\jboss\jboss-archive-browsing\5.0.0alpha-200607201-119\jboss-archive-browsing-5.0.0alpha-200607201-119.jar;C:\opt\.m2\repository\org\hibernate\ejb3-persistence\1.0.1.GA\ejb3-persistence-1.0.1.GA.jar;C:\opt\.m2\repository\c3p0\c3p0\0.9.1.2\c3p0-0.9.1.2.jar;C:\opt\.m2\repository\com\sun\xml\bind\jaxb-impl\2.1.6\jaxb-impl-2.1.6.jar;C:\opt\.m2\repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar;C:\opt\.m2\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-rt-frontend-jaxws\2.1\cxf-rt-frontend-jaxws-2.1.jar;C:\opt\.m2\repository\javax\xml\ws\jaxws-api\2.1-1\jaxws-api-2.1-1.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-api\2.1\cxf-api-2.1.jar;C:\opt\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0.2\geronimo-activation_1.1_spec-1.0.2.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-common-utilities\2.1\cxf-common-utilities-2.1.jar;C:\opt\.m2\repository\org\apache\geronimo\specs\geronimo-annotation_1.0_spec\1.1.1\geronimo-annotation_1.0_spec-1.1.1.jar;C:\opt\.m2\repository\org\apache\geronimo\specs\geronimo-stax-api_1.0_spec\1.0.1\geronimo-stax-api_1.0_spec-1.0.1.jar;C:\opt\.m2\repository\wsdl4j\wsdl4j\1.6.1\wsdl4j-1.6.1.jar;C:\opt\.m2\repository\xml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar;C:\opt\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.4.1\XmlSchema-1.4.1.jar;C:\opt\.m2\repository\org\apache\neethi\neethi\2.0.4\neethi-2.0.4.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-common-schemas\2.1\cxf-common-schemas-2.1.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-rt-core\2.1.1\cxf-rt-core-2.1.1.jar;C:\opt\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.3\geronimo-javamail_1.4_spec-1.3.jar;C:\opt\.m2\repository\com\sun\xml\fastinfoset\FastInfoset\1.2.2\FastInfoset-1.2.2.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-rt-bindings-soap\2.1\cxf-rt-bindings-soap-2.1.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-tools-common\2.1\cxf-tools-common-2.1.jar;C:\opt\.m2\repository\com\sun\xml\bind\jaxb-xjc\2.1.6\jaxb-xjc-2.1.6.jar;C:\opt\.m2\repository\org\apache\geronimo\specs\geronimo-ws-metadata_2.0_spec\1.1.2\geronimo-ws-metadata_2.0_spec-1.1.2.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-rt-databinding-jaxb\2.1\cxf-rt-databinding-jaxb-2.1.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-rt-bindings-xml\2.1\cxf-rt-bindings-xml-2.1.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-rt-frontend-simple\2.1\cxf-rt-frontend-simple-2.1.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-rt-ws-addr\2.1\cxf-rt-ws-addr-2.1.jar;C:\opt\.m2\repository\com\sun\xml\messaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-rt-transports-http\2.1\cxf-rt-transports-http-2.1.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-rt-transports-jms\2.1\cxf-rt-transports-jms-2.1.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-rt-management\2.1\cxf-rt-management-2.1.jar;C:\opt\.m2\repository\org\apache\cxf\cxf-rt-databinding-aegis\2.1\cxf-rt-databinding-aegis-2.1.jar;C:\opt\.m2\repository\jaxen\jaxen\1.1\jaxen-1.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA 8.0M1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.testng.remote.RemoteTestNG -port 5000 -d C:\opt\projects\cloudstorage\mom-services\cloudstorage-mom\changerequest\changerequest-su\target\test-classes -sourcedir C:/opt/projects/cloudstorage/mom-services/cloudstorage-mom/changerequest/changerequest-su/src/main/java;C:/opt/projects/cloudstorage/mom-services/cloudstorage-mom/changerequest/changerequest-su/src/main/resources;C:/opt/projects/cloudstorage/mom-services/cloudstorage-mom/changerequest/changerequest-su/src/test/java;C:/opt/projects/cloudstorage/mom-services/cloudstorage-mom/changerequest/changerequest-su/src/test/resources "C:\Documents and Settings\mick\.IntelliJIdea80\system\camel-parent_Change_Request-Suite_98041bcb.xml" org.xml.sax.SAXParseException: Element type "parameter" must be followed by either attribute specifications, ">" or "/>]]>".
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.seekCloseOfStartTag(XMLDocumentFragmentScannerImpl.java:1389)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1322)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
at org.testng.xml.Parser.parse(Parser.java:162)
at org.testng.TestNG.setTestSuites(TestNG.java:507)
at org.testng.TestNG.configure(TestNG.java:943)
at org.testng.remote.RemoteTestNG.configure(RemoteTestNG.java:49)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
WARNING: No test suite found. Nothing to run

Process finished with exit code 0

1 comment
Comment actions Permalink

The error seems to be:

]]>

where my JSON should be wrapped in ' not "

{"customerId":"16323","commandType":"provision","quota":"102400"}

0

Please sign in to leave a comment.