Author: richard.opalka(a)jboss.com
Date: 2010-04-30 06:27:14 -0400 (Fri, 30 Apr 2010)
New Revision: 12127
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/JAXBDeserializer.java
Log:
[JBWS-2686] rollback the rollback - IOW the fix is effective again
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/JAXBDeserializer.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/JAXBDeserializer.java 2010-04-30
08:11:02 UTC (rev 12126)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/JAXBDeserializer.java 2010-04-30
10:27:14 UTC (rev 12127)
@@ -77,7 +77,17 @@
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
unmarshaller.setAttachmentUnmarshaller( new AttachmentUnmarshallerImpl());
+
+ //workaround for
https://jira.jboss.org/jira/browse/JBWS-2686 while waiting for
Sun's bug to be fixed
+ unmarshaller.setEventHandler(new ValidationEventHandler() {
+ public boolean handleEvent(final ValidationEvent event)
+ {
+ int severity = event.getSeverity();
+ return (severity != ValidationEvent.FATAL_ERROR && severity !=
ValidationEvent.ERROR);
+ }
+ });
+
JAXBElement jbe = unmarshaller.unmarshal(xmlFragment, javaType);
value = jbe.getValue();