[ https://issues.apache.org/jira/browse/WSCOMMONS-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved WSCOMMONS-420. --------------------------------------- Resolution: Fixed Fix Version/s: Axiom 1.2.8 Assignee: Andreas Veithen This should now work (tested with Xerces 2.9.1). > Attempted validation of DomSource leads to > "java.lang.UnsupportedOperationException: TODO" from > "org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype" > ------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: WSCOMMONS-420 > URL: https://issues.apache.org/jira/browse/WSCOMMONS-420 > Project: WS-Commons > Issue Type: Bug > Components: AXIOM > Environment: Weblogic 10 on Solaris 8, JRE 1.5 > Reporter: Nathan Royko Maurer > Assignee: Andreas Veithen > Priority: Minor > Fix For: Axiom 1.2.8 > > > 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.securedExecute(WebAppServletContext.java:2140) > at > weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046) > at > weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.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(DocumentImpl.java:233) > at > org.apache.xerces.jaxp.validation.DOMValidatorHelper.setupEntityMap(Unknown > Source) > at > org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) > at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown > Source) > at javax.xml.validation.Validator.validate(Validator.java:82) > at > edu.wisc.phin.service.sphere.sphere_outcomes.SPHEREOutcomesSkeleton.validate(SPHEREOutcomesSkeleton.java:105) > at > edu.wisc.phin.service.sphere.sphere_outcomes.SPHEREOutcomesSkeleton.checkAvail(SPHEREOutcomesSkeleton.java:118) > at > edu.wisc.phin.service.sphere.sphere_outcomes.SPHEREOutcomesMessageReceiverInOut.invokeBusinessLogic(SPHEREOutcomesMessageReceiverInOut.java:84) > I have seen this problem referenced elsewhere in earlier builds of Axis2 > (http://java2.5341.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.