This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

CommandLineJobRunner and standard input

Mar 4th, 2011, 01:33 PM

I've noticed a problem with the org.springframework.batch.core.launch.support.Comm andLineJobRunner when using an environment without stdin available. In my case, launching an AutoSys job to run the CommandLineJobRunner, and standard input is not available. The code in question in the main method:

Since I'm not using standard input to pass in parameters but using the command line instead, I had to comment out this section in order for the CommandLineJobRunner to execute properly. The code should be modified to properly handle the exception for this scenario. Thanks.