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

David Ward (JIRA) jira-events at lists.jboss.org
Mon Nov 2 15:45:05 EST 2009


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

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

PS: The DOMSource returned by createDomSourceFromPayload(xml) seems to be populated fine.  Again, it appears the act of validating that DOMSource will populate the DOMResult *even on exception* with JDK 1.5, but not with JDK 1.6.

> 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