I'm using outbound-channel-adapter of spring integration ftp
<int-ftp:outbound-channel-adapter id="ftpOutAdapterAutoCreate"
session-factory="ftpSessionFactory" channel="outChannel"
remote-directory-expression="headers.['remotedir']" charset="UTF-8" />
In my java code i'm setting remote directory in header.
org.springframework.integration.Message<File> messageA=
org.springframework.integration.support.MessageBuilder
.withPayload(reqFile).setHeader("remotedir", "/errorOrders").build();
Error message it is showing while deploying
org.springframework.expression.spel.SpelParseException: EL1049E:(pos 7):
Unexpected data after '.': 'lsquare([)'