Well, I’ve figured it out.
The issue was caused by the @Option annotation on the fileParam.
@Option ( option = "fileParam", description = "A file parameter" )
Removing it solved the issue.
I’ve just learned that @Option is for exposing the parameter to a command line option. I don’t need it.