Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

org.apache.xerces.impl.dv.DVFactoryException: DTD factory cl

I am getting the below exception trying to execute a similar application as https://jazz.net/wiki/bin/view/Main/ConsumingJFSStorageServiceOSGi.

I changed my workspace JRE from IBM to SUN 1.5 and the below error vanished. Can you please let me know how to fix this using IBM JRE itself

I got this exception while executing the line:

model.read(new StringReader(xml), ""); //$NON-NLS-1$

org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.createDatatypeValidatorFactory(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)
at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.create(RDFXMLParser.java:82)
at com.hp.hpl.jena.rdf.arp.JenaReader.<init>(JenaReader.java:62)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1328)

0 votes



2 answers

Permanent link
Hello,

See https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/88094, especially comment 44.

Martha
Jazz Process Developer

I am getting the below exception trying to execute a similar application as https://jazz.net/wiki/bin/view/Main/ConsumingJFSStorageServiceOSGi.

I changed my workspace JRE from IBM to SUN 1.5 and the below error vanished. Can you please let me know how to fix this using IBM JRE itself

I got this exception while executing the line:

model.read(new StringReader(xml), ""); //$NON-NLS-1$

org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.createDatatypeValidatorFactory(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)
at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.create(RDFXMLParser.java:82)
at com.hp.hpl.jena.rdf.arp.JenaReader.<init>(JenaReader.java:62)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1328)

0 votes


Permanent link
Thank you !!!, very good finding, it solved my problem.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 25 '09, 10:30 a.m.

Question was seen: 16,354 times

Last updated: Nov 25 '09, 10:30 a.m.

Confirmation Cancel Confirm