[esb-issues] [JBoss JIRA] Commented: (JBESB-2922) SchemaValidationActionUnitTest test failure serialising DOM

David Ward (JIRA) jira-events at lists.jboss.org
Tue Nov 3 11:53:06 EST 2009


    [ https://jira.jboss.org/jira/browse/JBESB-2922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12492829#action_12492829 ] 

David Ward commented on JBESB-2922:
-----------------------------------

Getting back to this... I have an easy workaround.  Basically, we're just interested in the structure of the document post-validation.  So, what I did was check to see if the DOMResult's node is populated.  If it's not (on error with JDK 1.6), I just use the node from the original DOMSource.  It's the same exact structure anyway after error validation with JDK 1.5.  So, we'll have consistent behavior/output.  Running integration tests using both JDK 1.5 and 1.6 locally now.  When both pass, I'll check in the change.

> SchemaValidationActionUnitTest test failure serialising DOM
> -----------------------------------------------------------
>
>                 Key: JBESB-2922
>                 URL: https://jira.jboss.org/jira/browse/JBESB-2922
>             Project: JBoss ESB
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Rosetta
>    Affects Versions: 4.6
>            Reporter: Kevin Conner
>            Assignee: David Ward
>             Fix For: 4.7
>
>
> The following error is being seen on the CI machines, executing on JDK 1.6
>      [java]     [junit] java.lang.RuntimeException: Unexpected error.  Unable to serialize DOM.
>      [java]     [junit] 	at org.jboss.soa.esb.actions.validation.ValidationException.getDomResult(ValidationException.java:59)
>      [java]     [junit] 	at org.jboss.soa.esb.actions.validation.SchemaValidationActionUnitTest.processInvalidXml(SchemaValidationActionUnitTest.java:65)
>      [java]     [junit] Caused by: org.xml.sax.SAXParseException: Premature end of file.
>      [java]     [junit] 	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>      [java]     [junit] 	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>      [java]     [junit] 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
>      [java]     [junit] 	at org.jboss.soa.esb.dom.YADOMUtil.parseStream(YADOMUtil.java:148)
>      [java]     [junit] 	at org.jboss.soa.esb.dom.YADOMUtil.parseStream(YADOMUtil.java:114)
>      [java]     [junit] 	at org.jboss.soa.esb.dom.YADOMUtil.parse(YADOMUtil.java:95)
>      [java]     [junit] 	at org.jboss.soa.esb.actions.validation.ValidationException.getDomResult(ValidationException.java:51)
> Tom, are we trying to serialise parser specific classes here?  If so this will fail in a mixed environment.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the esb-issues mailing list