Attempted validation of DomSource leads to
"java.lang.UnsupportedOperationException: TODO"
from
"org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype&q
uot;
------------------------------------------------------------
------------------------------------------------------------
------------------------------
Key: AXIS2-3853
URL: http
s://issues.apache.org/jira/browse/AXIS2-3853
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Affects Versions: 1.4
Environment: Weblogic 10 on Solaris 8, JRE 1.5
Reporter: Nathan Royko Maurer
Priority: Minor
running Axis2 1.4 inside a enterprise application webapp on
Weblogic 10 yields the "UnsupportedOperationException:
TODO" when I try to validate a DOMSource against a
schema. Java Code looks like this:
SchemaFactory factory =
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI
);
Source source = new StreamSource(schemaFile);
Schema schema = factory.newSchema(source);
Validator validator = schema.newValidator();
validator.validate(new DOMSource(sourceElement));
Stack trace looks like this (shortened to what I think is
the relevant portion):
at
weblogic.servlet.internal.WebAppServletContext.securedExecut
e(WebAppServletContext.java:2140)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAp
pServletContext.java:2046)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequ
estImpl.java:1366)
at
weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Caused by: java.lang.UnsupportedOperationException: TODO
at
org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype(Documen
tImpl.java:233)
at
org.apache.xerces.jaxp.validation.DOMValidatorHelper.setupEn
tityMap(Unknown Source)
at
org.apache.xerces.jaxp.validation.DOMValidatorHelper.validat
e(Unknown Source)
at
org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unk
nown Source)
at
javax.xml.validation.Validator.validate(Validator.java:82)
at
edu.wisc.phin.service.sphere.sphere_outcomes.SPHEREOutcomesS
keleton.validate(SPHEREOutcomesSkeleton.java:105)
at
edu.wisc.phin.service.sphere.sphere_outcomes.SPHEREOutcomesS
keleton.checkAvail(SPHEREOutcomesSkeleton.java:118)
at
edu.wisc.phin.service.sphere.sphere_outcomes.SPHEREOutcomesM
essageReceiverInOut.invokeBusinessLogic(SPHEREOutcomesMessag
eReceiverInOut.java:84)
I have seen this problem referenced elsewhere in earlier
builds of Axis2 (http://java2.53
41.com/msg/228500.html). How can I work around
unimplemented interfaces in
org.apache.axiom.om.impl.dom.DocumentImpl?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.
------------------------------------------------------------
---------
To unsubscribe, e-mail: axis-dev-unsubscribe ws.apache.org
For additional commands, e-mail: axis-dev-help ws.apache.org
|