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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content