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)
|
Showing messages 1 through 1 of 1.
2. System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
"org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");