[
https://jira.jboss.org/jira/browse/JBESB-2922?page=com.atlassian.jira.plu...
]
David Ward commented on JBESB-2922:
-----------------------------------
There you go again, with your logic. ;) Yeah, that was my question originally ("is
this an invalid test?"). It seems that the only code that cares about the result are
unit tests... So, I can remove a whole test class if that's cool. Curious what the
reason was originally for holding onto the DOMResult was originally. Tom or Daniel, was
this building toward something future?
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