[ 
https://issues.apache.org/jira/browse/AXIS2-3853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604803#action_12604803
 ] 

Andreas Veithen commented on AXIS2-3853:
----------------------------------------

This is a problem with the AXIOM DOM implementation which is far from complete:

https://issues.apache.org/jira/browse/WSCOMMONS-348
http://mail-archives.apache.org/mod_mbox/ws-commons-dev/200805.mbox/[EMAIL 
PROTECTED]

As an alternative to DOMSource you can use a StaxSource from the Spring 
framework (or a StAXSource from Java 6) as in the following piece of code:

https://svn.apache.org/repos/asf/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/util/AXIOMUtils.java



> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to