Exception in thread "main" java.lang.NullPointerException
at org.testng.xml.TestNGContentHandler.resolveEntity(TestNGContentHandler.java:71)
at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.testng.xml.Parser.parseOneFile(Parser.java:261)
at org.testng.xml.Parser.parse(Parser.java:158)
at org.testng.TestNG.setTestSuites(TestNG.java:491)
at org.testng.TestNG.configure(TestNG.java:1061)
at org.testng.remote.RemoteTestNG.configure(RemoteTestNG.java:49)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:120)
Does anybody knows what seems to be a problem?
Thanks in advance
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=183461&messageID=259218#259218
I don't have the source of the 5.5 around, but by looking at that code
I cannot imagine how can you get a NPE. Looks very strange. Would it
be possible to upgrade to 5.7 and test if the error still occurs?
./alex
--
.w( the-mindstorm )p.
TestNG co-founder
EclipseTestNG Creator
Exception in thread "main" java.lang.NullPointerException
at org.testng.xml.TestNGContentHandler.resolveEntity(TestNGContentHandler.java:73)
at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.testng.xml.Parser.parseOneFile(Parser.java:261)
at org.testng.xml.Parser.parse(Parser.java:158)
at org.testng.TestNG.setTestSuites(TestNG.java:472)
at org.testng.TestNG.configure(TestNG.java:882)
at org.testng.remote.RemoteTestNG.configure(RemoteTestNG.java:49)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:122)
Can you see what is the problem now?
Thanks
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=183461&messageID=259967#259967
[code]
if (Parser.DEPRECATED_TESTNG_DTD_URL.equals(publicId)
|| Parser.TESTNG_DTD_URL.equals(publicId)) {
InputStream is =
getClass().getClassLoader().getResourceAsStream(Parser.TESTNG_DTD);
if (null == is) {
[...]
[/code]
I frankly don't have the slightest idea where that NPE is coming from.
./alex
--
.w( the_mindstorm )p.
TestNG co-founder
EclipseTestNG Creator
I see... What is your environment? Do you have multiple XML related
jars in your classpath? (I am afraid you've reached one of those XML
hell setups, but I cannot put my finger on it).
Thanks in advance
-Vickey
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=183461&messageID=293319#293319
Just for Information, when i had this XML issue, there were only two libraries in my classpath JRE and TestNg1.5 and i downloaded TestNg Libraries using eclipse plugins update method from the TestNg Update site.
i will try to install Eclipse JAVA IDE again and check if this is a problem with Eclipse or not
-vickey
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=183461&messageID=294098#294098
-Thanks
Vickey
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=183461&messageID=294108#294108