Can you put a few lines of an example of your files up here. Just a few lines and you can modify the data to obscure anything about the company or data that you don't want known.
Unexpected record 'fileHeaderRecord' at line 2 java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 Unexpected record 'paymentData' at line 2 Not very helpful errors There are a few things I can think would cause this but without the mapping or data can't tell. Whatever you are using to identify a fileHeaderRecord is failing to disambiguate it from whatever the record on the second line is. It is still trying to parse the second line as a fileHeaderRecord and throws up its hands when it tries to parse it. One error I've never seen before is where it thinks that line two is both a fileHeaderRecord and a paymentData record line two. If you only expect one fileHeaderRecord make sure you set the min/max to 1. On Wed, Aug 31, 2016 at 10:28 AM, Brad Johnson <brad.john...@mediadriver.com > wrote: > This would indicate that you have a record in the file that is > unexpected. While an error handler could help with that you can tell it to > ignore records with certain characteristics or if there's a couple of > header and footer lines just add getter/setters for them along with the > mappying (or, if you wish, add that to your bean). I made the silly mistake > early on of believing that "rid" did that. Instead it's short for record > id. > > Does your file have a header in it? It's failing on the parsing due to a > mapping error. > > Brad > > On Wed, Aug 31, 2016 at 10:05 AM, Claus Ibsen <claus.ib...@gmail.com> > wrote: > >> Camel 2.18.0 is expected to be released in september 2016. >> >> You can build or use SNAPSHOT to try latest code >> http://camel.apache.org/maven-2-snapshot-repository-in-pom.html >> http://camel.apache.org/building.html >> >> On Wed, Aug 31, 2016 at 4:11 PM, spurcell <scott_purc...@mastercard.com> >> wrote: >> > GM Claus-Ibsen-2, >> > >> > Thanks for the response ... really appreciated that angle. It looks like >> > that functionality was just added to MASTER (trunk I assume). We are >> running >> > on Camel 2.16.1, and the camel-bean docs show this capability in 2.10, >> so we >> > were struggling yesterday to understand. >> > >> > As we see this functionality under MASTER I think it will be released >> under >> > 2.18. Would you happen to know when this release is going to occur? Our >> team >> > would like to start testing and using this if it occurs shortly, as we >> have >> > a release date prior to Dec. >> > >> > Thanks >> > Scott >> > >> > >> > >> > -- >> > View this message in context: http://camel.465427.n5.nabble. >> com/Camel-BeanIODataFormat-Configure-ErrorHandler-for-BeanIO >> -Reader-tp5787005p5787051.html >> > Sent from the Camel - Users mailing list archive at Nabble.com. >> >> >> >> -- >> Claus Ibsen >> ----------------- >> http://davsclaus.com @davsclaus >> Camel in Action 2: https://www.manning.com/ibsen2 >> > >