[
https://issues.apache.org/jira/browse/CAMEL-7926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14175273#comment-14175273
]
Alexandru Repede commented on CAMEL-7926:
-----------------------------------------
Maybe I should specify that Message in question is a retried one (it had failed
some processing, was put in an "error" queue, taken from that queue and sent
into the mentioned Processor)... on a WebLogic server.
> header "CamelFileLastModified" returned as String in Processor
> --------------------------------------------------------------
>
> Key: CAMEL-7926
> URL: https://issues.apache.org/jira/browse/CAMEL-7926
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.8.6
> Reporter: Alexandru Repede
> Priority: Minor
>
> Given a class that implements _Processor_
> When trying to get _Exchange.FILE_LAST_MODIFIED_ as a java.util.Date, the
> result is null. When calling
> {noformat}
> Date lastModification =
> exchange.getIn().getHeader(Exchange.FILE_LAST_MODIFIED, Date.class);
> {noformat}
> _lastModification_ is null.
> Upon debugging, discovered that the header in question is a String. The call
> {noformat}
> exchange.getIn().getHeader(Exchange.FILE_LAST_MODIFIED)
> {noformat}
> returns a not null String value.
> How is this possible when even _ExpressionBuilder.dateExpression_ does
> {noformat}
> Date date;
> date = exchange.getIn().getHeader(Exchange.FILE_LAST_MODIFIED, Date.class);
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)