List Info

Thread: Created: (AXIS2-3853) Attempted validation of DomSource leads to "java.lang.UnsupportedOpera




Created: (AXIS2-3853) Attempted validation of DomSource leads to "java.lang.UnsupportedOpera
country flaguser name
United States
2008-06-12 13:30:44
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-unsubscribews.apache.org
For additional commands, e-mail: axis-dev-helpws.apache.org


Commented: (AXIS2-3853) Attempted validation of DomSource leads to "java.lang.UnsupportedOpe
country flaguser name
United States
2008-06-13 06:20:45
    [ https://
issues.apache.org/jira/browse/AXIS2-3853?page=com.atlassian.
jira.plugin.system.issuetabpanels:comment-tabpanel&focus
edCommentId=12604803#action_12604803 ] 

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

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

h
ttps://issues.apache.org/jira/browse/WSCOMMONS-348
http:
//mail-archives.apache.org/mod_mbox/ws-commons-dev/200805.mb
ox/%3c80D033D3-198E-4067-A1C3-F0D16BD49845skynet.be%3e

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/mo
dules/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&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-unsubscribews.apache.org
For additional commands, e-mail: axis-dev-helpws.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )