axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Royko Maurer (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-3853) Attempted validation of DomSource leads to "java.lang.UnsupportedOperationException: TODO" from "org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype"
Date Thu, 12 Jun 2008 18:30:44 GMT
Attempted validation of DomSource leads to "java.lang.UnsupportedOperationException: TODO"
from "org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype"
------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-3853
                 URL: https://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.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.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message