Questions tagged [bindy]

Bindy is a component for Apache-Camel for parsing/binding non-structured data (e.g. CSV records) to/from Java Beans.

Bindy is a component for for parsing/binding non-structured data to/from Java Beans.

It has a support for:

  • CSV records
  • Fixed-length records,
  • FIX messages,
  • or almost any other non-structured data

Bindy evaluates the annotations in the used Java Beans to determine the record structure and to perform the parsing/binding between the data records and the Beans.

99 questions
1
vote
1 answer

Camel-Bindy (2.21.2) Fixed length unmarshalling appears to be ignoring trim=true annotation

I've a class that was working with Bindy 2.17, but having migrated to Camel 2.21.2, it is no longer trimming the incoming data when I unmarshall. I've tried adding a paddingChar attribute to the record annotation, but that has had no effect, and as…
Screwtape
  • 1,337
  • 2
  • 12
  • 27
1
vote
0 answers

can we parse a records with separators at multiple levels using bindy

we have got a requirement to convert a tab delimited data record into a JSON structure. But there are some delimiter inside each field as well. Below would be the same data record "123456 16 2014/6/960,2015/1/153 2014/2,2015/3" below is the JSON…
abhi pm
  • 41
  • 1
  • 7
1
vote
1 answer

How to stop generating mutiple time header columns in single file, In bindy component?

Hello I am working on a CSV file using camel bindy component where I split data into 1000 line of chunks and its generating header columns with each chunks, I need it should generate only one time with single file. MyRoute: final DataFormat inputCSV…
Rajat.r2
  • 137
  • 2
  • 13
1
vote
1 answer

Camel Bindy: how to ignore last columns

I have a CSV file, which I'm parsing using Bindy. I have created a CsvRecord class with all the DataField. Now, they have added new columns to the CSV file and I want Bindy to just ignore them. How do I do that? I know I could change the code adding…
Gep
  • 848
  • 13
  • 29
1
vote
0 answers

camel-bindy not mapping first column when null

This is something similar to what I have: @CsvRecord(separator = "\\t", skipFirstLine = true) public class Inventory { @DataField(pos = 1, required=false) private String vendor; @DataField(pos = 2, required=false) private String…
user3049941
  • 87
  • 1
  • 2
  • 9
1
vote
0 answers

What error "Some fields are missing (optional or mandatory), line : 1" in apache camel means?

I try to implement transforming csv file using apache camel and bindy to a list of objects. I tried to do it like here http://www.mastertheintegration.com/camel/transforming-data-with-camel/transforming-csv-to-java-objects-using-camel.html…
Peters_
  • 597
  • 2
  • 8
  • 28
1
vote
2 answers

Camel Bindy Fixed Length Format : How to use inherited classes?

I have two classes CommonRequest and AccountRequest @FixedLengthRecord(paddingChar=' ',ignoreTrailingChars=true) public class CommonRequest { @Id private String corelationID; @DataField(pos=1,length=8) private String…
1
vote
1 answer

Fuse 6.2, fabric and camel-bindy: unable to resolve dependecy

I have a camel-route that uses camel-bindy to transform data. I'm using features to defined all the needed bundled for the route to work and in my pom I have the dependecy for camel-bindy. I create a container in Fabric and add a custom profile…
Jkike
  • 807
  • 6
  • 12
1
vote
1 answer

Inspect marshalled Pojo with a Processor with Camel and Bindy

I have a flat file, in which each line needs to be captured and unmarshalled into a POJO. I am using Camel and Bindy and utilizing the Splitter EIP. For some reason i am not able to inspect the POJO (using a Processor) after the unmarshalling…
Mechkov
  • 4,294
  • 1
  • 17
  • 25
1
vote
1 answer

Camel Bindy Date format Unmarshalling issue

I ran into an issue with Apache Camel Bindy data format for the Date field parsing from a CSV file. Date in the CSV is 02/11/2015 03:34:49 PM Format in the Bindy Class annotated as @DataField(pos = 8,pattern="MM/dd/yyyy hh:mm:ss a") private Date…
Kiran Chitturi
  • 483
  • 1
  • 6
  • 13
1
vote
1 answer

Apache camel bindy - how to log or debug

I'm trying to get some log informations from camel bindy. I had a working setup using an BindyCsvDataFormat bindyProduct with an annotated product-bean and an csv file as source. Now I changed the CSV file and the annotated bean. The processing…
Andreas Jabusch
  • 109
  • 2
  • 9
1
vote
1 answer

Bindy paddingChar

In my Bindy model I would like to set a paddingChar on one field. I saw in the documentation that with a @Fixed-length record I can add a paddingChar attribute but with a @CsvRecord it seems not to be the possible ? This code doesn't pad field…
Nicolas Hauzaree
  • 743
  • 1
  • 5
  • 9
1
vote
1 answer

Camel csv splitter : Parse dyanamic headers

I am writing a CSV splitter in camel. My requirements are these: The first line would be header. The header is not defined. But can contain any no of attributes I need to split the file and each split then contains a map of key value…
1
vote
1 answer

leading field camel bindy

I use Camel Bindy and @FixedLengthRecord strategy . I have a field : @DataField(pos=21, length=6, trim=true,align="R") private BigDecimal refundCount and I want leading this field zeros. What can I do to achieve this ?
przodownikPracy
  • 547
  • 2
  • 5
  • 12
1
vote
4 answers

Can I have multiple bindy annotated classes in a package and still unmarshal CSVs in Camel?

I would like to have a package like my.company.bindy with several classes in it all annotated with Bindy annotations. Then I'd like to have Camel routes that can unmarshal CSV into one of these types. I've got it all working, but unmarshalling fails…
Spina
  • 8,986
  • 7
  • 37
  • 36