XPath Parameter binding of Date.class returns null

Solution In Progress - Updated -

Issue

We upgraded from Fuse 7.1 to JBoss Fuse 6.1 on 7/25/2015. Prior to that deployment, the below code would query a W3C formatted string from an XML document and place it into the departureTS variable after automated conversion to a Java.util.Date data type.

@XPath(value = "/*/DepartureTime/Value", resultType = Date.class) final Date departureTS

Since the deployment, the exact same line of code consistently returns null. The only workaround that we have discovered is to change the resultType and variable data type to String. After this change, we have to manually convert the W3C spec dateTime string into a Java.util.Date data type.

Environment

Red Hat JBoss Fuse 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.