Women in Technology

Hear us Roar



Article:
  XML Document Validation with an XML Schema
Subject:   Null Pointer exception while running
Date:   2005-12-17 03:21:25
From:   NehaK
hi


While running this code i am getting the below mentionrd error. I am using the JAXP Parser. I have set the 2 jars in the classpath also. and i am using jdk1.5 version.


Kindly suggest what could be the issue.


Exception in thread "main" javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.lang.NullPointerException
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
at JAXPValidator.validateSchema(JAXPValidator.java:19)
at JAXPValidator.main(JAXPValidator.java:82)

Main Topics Newest First

Showing messages 1 through 1 of 1.

  • Null Pointer exception while running
    2005-12-17 14:23:44  Deepak Vohra | [View]

    1. Add xercesImpl.jar to Classpath.

    2. System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
    "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");