1 Reply Latest reply on Feb 19, 2009 9:56 AM by blabno

    Null Pointer Exception Encountered while running Test

    Jubril Adisa Novice

      I am trying to run a Test using the ant Build File and anytime i run the Ant file i always get this



      test:
         [testng] Exception in thread "main" java.lang.NullPointerException
         [testng]     at org.testng.xml.XmlTest.<init>(XmlTest.java:54)
         [testng]     at org.testng.xml.TestNGContentHandler.xmlTest(TestNGContentHandler.java:214)
         [testng]     at org.testng.xml.TestNGContentHandler.startElement(TestNGContentHandler.java:399)
         [testng]     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
         [testng]     at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:798)
         [testng]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:878)
         [testng]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:1157)
         [testng]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
         [testng]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)