Re: Bindy to ignore empty lines?

2022-04-27 Thread Mikael Andersson Wigander
nevermind /M --- Original Message --- On Wednesday, April 27th, 2022 at 13:08, Mikael Andersson Wigander wrote: > Hi > > How can one make Bindy understand to ignore a file with empty lines? > I can't find any options for it. > > In empty I mean a csv file with

Bindy to ignore empty lines?

2022-04-27 Thread Mikael Andersson Wigander
Hi How can one make Bindy understand to ignore a file with empty lines? I can't find any options for it. In empty I mean a csv file with two or more CR/LF at the end of the file… A,B,C,D E,F,G,H /M

Bindy problem

2021-02-24 Thread Brenneis, Steve
I am using camel-bindy version 3.8.0 and I'm hitting a null pointer exception because bindy selects the key-value pair format and ignores the annotated format type and XML-defined format when the model class is annotated with the Spring @Value annotation or if the XML bean definition contains

Bindy question about quoting

2020-07-03 Thread Mikael Andersson Wigander
Hi In Bindy when marshalling from object to CSV you can state that it should use “quoting” by two options: quote and quoting. But there’s a third in the factory: quotingEscaped How should this be interpreted in the context of the other two options? Also in the documentation there’s

Re: Bindy dataformat and ZonedDateTime

2020-05-06 Thread Alberto
h for Camel 3.x. > > > On Tue, May 5, 2020 at 10:11 AM Alberto wrote: > > Hello, > > > > I need to handle a ZonedDateTime attribute in a pojo with bindy dataformat. > > I > > found that ZonedDateTime is not handled wheras LocalDateTime is. > > Is there any part

Re: Bindy dataformat and ZonedDateTime

2020-05-05 Thread Claus Ibsen
Hi I am not sure if there is a reason not. You are welcome to create a JIRA and work on a PR to add this to Camel. Mind it has to be on master branch for Camel 3.x. On Tue, May 5, 2020 at 10:11 AM Alberto wrote: > > Hello, > > I need to handle a ZonedDateTime attribute in a poj

Bindy dataformat and ZonedDateTime

2020-05-05 Thread Alberto
Hello, I need to handle a ZonedDateTime attribute in a pojo with bindy dataformat. I found that ZonedDateTime is not handled wheras LocalDateTime is. Is there any particular reason for that? I solved writing a specific Format and using a @BindyConverter annotation but in that way I'm unable

Re: Re: Re: Bindy plus Unicode

2020-01-27 Thread Alex Dettinger
at need features, > the old logic in the JDK > doesn't support. The lib is very common (e.g. LibreOffice uses it) and > AFAIK the de-facto standard > for working with elaborate Unicode. > > -- Mik > > > Gesendet: Freitag, 24. Januar 2020 um 19:15 Uhr > Von: "Alex De

RE: Re: Re: Bindy plus Unicode

2020-01-25 Thread dev
. Januar 2020 um 19:15 Uhr Von: "Alex Dettinger" An: users@camel.apache.org Betreff: Re: Re: Bindy plus Unicode Hi Michael, Good to know that you sorted it out :) The compatibility between the ICU4L and Apache License is not straightforward, we would need to look closer. Still creati

Re: Re: Bindy plus Unicode

2020-01-24 Thread Alex Dettinger
ded? Only Camel 3.x or will it be backported to 2.2? > > -- Mik > > -- > Gesendet: Freitag, 24. Januar 2020 um 11:43 Uhr > Von: "Alex Dettinger" > An: users@camel.apache.org > Betreff: Re: Bindy plus Unicode > Hi Michael, > > I was just looking at this

RE: Re: Bindy plus Unicode

2020-01-24 Thread Michael Greulich
   -- Gesendet: Freitag, 24. Januar 2020 um 11:43 Uhr Von: "Alex Dettinger" An: users@camel.apache.org Betreff: Re: Bindy plus Unicode Hi Michael, I was just looking at this component for another purpose and it looks to me that fixed length tokenzat

Re: Bindy plus Unicode

2020-01-24 Thread Alex Dettinger
Hi Michael, I was just looking at this component for another purpose and it looks to me that fixed length tokenzation occurs here: https://github.com/apache/camel/blob/master/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyFixedLengthFactory.java#L212..L216 So

Bindy plus Unicode

2020-01-24 Thread Michael Greulich
Hi, I’m having problems with the bindy component and wonder if there is something I missed. Maybe one can help me addressing it. I cannot believe, that I’m the first to hit this problem. I need to port an EAI application built using bindy, that reads a fixed type file(*) converts

Re: Bindy column name annotation?

2019-08-31 Thread Claus Ibsen
wrote: > >>> > >>> Hi > >>> > >>> Can you maybe provide a small example or sample code what you are > looking for? > >>> > >>> On Wed, Aug 28, 2019 at 7:50 AM Mikael Andersson Wigander > >>> wrote: > >>>

Re: Bindy column name annotation?

2019-08-31 Thread Mikael Grevsten
rovide a small example or sample code what you are looking >>> for? >>> >>> On Wed, Aug 28, 2019 at 7:50 AM Mikael Andersson Wigander >>> wrote: >>>> >>>> Used for creating CSV files with a hierarchy of objects using @Link >>>

Re: Bindy column name annotation?

2019-08-31 Thread Claus Ibsen
ndersson Wigander > > wrote: > >> > >> Used for creating CSV files with a hierarchy of objects using @Link > >> annotation > >> > >> I find it odd NOT having the option to name the column using annotation > >> since you have control

Re: Bindy column name annotation?

2019-08-30 Thread Mikael Andersson Wigander
annotation >> >> I find it odd NOT having the option to name the column using annotation >> since you have control over other attributes… >> >> M >> >>> On 27 Aug 2019, at 18:52, George Daswani wrote: >>> >>> Are you

Re: Bindy column name annotation?

2019-08-30 Thread Claus Ibsen
column using annotation since > you have control over other attributes… > > M > > > On 27 Aug 2019, at 18:52, George Daswani wrote: > > > > Are you using it to parse CSV files? or produce CSV files? > > > > I suggest you use Camel-CSV instead. BIndy

Re: Bindy column name annotation?

2019-08-27 Thread Mikael Andersson Wigander
CSV files? or produce CSV files? > > I suggest you use Camel-CSV instead. BIndy CSV has a couple of problems > with the first being it doesn't properly support RFC-4180 CSV files, and the > second being it uses reflection to set properties.. > > On Tue, Aug 27, 2019 at 12:17 A

Re: Bindy column name annotation?

2019-08-27 Thread George Daswani
Are you using it to parse CSV files? or produce CSV files? I suggest you use Camel-CSV instead. BIndy CSV has a couple of problems with the first being it doesn't properly support RFC-4180 CSV files, and the second being it uses reflection to set properties.. On Tue, Aug 27, 2019 at 12:17

Bindy column name annotation?

2019-08-27 Thread Mikael Andersson Wigander
Good morning. Using Bindy dataformat, in the documentation nothing states how to set column name but some example has the name attribute given as if possible to set the name of the column header to anything other than the field name. This appartently doesn’t work so question

Re: Strange results w/ Bindy (header, list, footer)

2018-08-01 Thread Christian Scharmach
but split them up into 2 methods, as maybe mutating the test for the 2nd test cause a side-effect or something. On Tue, Jul 24, 2018 at 9:56 AM, Christian Scharmach wrote: > Hello! > > > > I am using Camel-Bindy 2.22.0 and was trying to mar

Re: Strange results w/ Bindy (header, list, footer)

2018-07-30 Thread Claus Ibsen
-effect or something. On Tue, Jul 24, 2018 at 9:56 AM, Christian Scharmach wrote: > Hello! > > > > I am using Camel-Bindy 2.22.0 and was trying to marshal a CSV file with > following format: > > > > > > HeaderColumn:headerColumn:headerColumn > > BodyColumn;B

Strange results w/ Bindy (header, list, footer)

2018-07-24 Thread Christian Scharmach
Hello! I am using Camel-Bindy 2.22.0 and was trying to marshal a CSV file with following format: HeaderColumn:headerColumn:headerColumn BodyColumn;BodyColumn;BodyColumn;BodyColumn;BodyColumn BodyColumn;BodyColumn;BodyColumn;BodyColumn;BodyColumn FooterColumn;FooterColumn [etc

RE: How to add camel-bindy to osgi project - very urgent help required

2018-05-14 Thread Joerg Jansen
Hi, I think the problem is an invalid instruction within you Import-package of the your Felix-plugin. ... org.apache.camel.camel-bindy, ... As far as I know now special import instruction is needed (please correct me if I'm wrong ;) ). In our experience with using camel-bindy

How to add camel-bindy to osgi project - very urgent help required

2018-05-11 Thread Anton Hughes
Im trying to use camel-bindy in an OSGi project. However I get the following error: Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.8:assembly (karaf-assembly) on project karaf2-cxf-rest: Unable to build assembly: Unable to resolve root: missing requirement [root

Re: Bindy for fixed length format with optimizations

2017-10-19 Thread Marcin Domański
s than 2001 chars. > > Is it cuttently possible to parse such data with Bindy? > > Adie >

Re: Bindy for fixed length format with optimizations

2017-10-19 Thread Marcin Domański
d field has less than 2000 characters it is > not padded. Therefore total length can be less than 2001 chars. > > Is it cuttently possible to parse such data with Bindy? > > Adie >

Bindy for fixed length format with optimizations

2017-10-18 Thread Marcin Domański
2 length 2000, but for performance reasons, if second field has less than 2000 characters it is not padded. Therefore total length can be less than 2001 chars. Is it cuttently possible to parse such data with Bindy? Adie

RE: Bindy Data Format Unmarshalling question

2017-08-26 Thread Goodwin, Matthew
Never mind. Problem solved. Thanks, Matt -Original Message- From: Goodwin, Matthew Sent: Sunday, August 27, 2017 12:01 AM To: users@camel.apache.org Subject: Bindy Data Format Unmarshalling question Hi Camel Community, I am using Bindy to format a file that has a header, footer

Bindy Data Format Unmarshalling question

2017-08-26 Thread Goodwin, Matthew
Hi Camel Community, I am using Bindy to format a file that has a header, footer, and one to many detail records. Things are working fine but it looks like within the BindyAbstractDataFormat class in the extractUnmarshalResult method it checks to see if there is one or multiple records

Re: Bindy DefaultValue is not working. Need help

2017-05-24 Thread Onder SEZGIN
//camel.apache.org/contributing > > > > > > > -- > > View this message in context: http://camel.465427.n5.nabble. > com/Bindy-DefaultValue-is-not-working-Need-help-tp5795402p5800037.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >

Re: Bindy DefaultValue is not working. Need help

2017-05-22 Thread Claus Ibsen
n the different factories. > You can create a JIRA and submit a fix via github PR http://camel.apache.org/contributing > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Bindy-DefaultValue-is-not-working-Need-help-tp5795402p5800037.html > Sent from th

Re: Bindy DefaultValue is not working. Need help

2017-05-22 Thread kschroeder
I noticed this issue was only resolved for the CSV Factory. How would I go about submitting a similar bug for the FixedLength factory? It's probably a bad idea to have inconsistencies between the different factories. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy

Re: Bindy DefaultValue is not working. Need help

2017-03-14 Thread Amruta Jawlekar
Thank you very much! -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-DefaultValue-is-not-working-Need-help-tp5795402p5795437.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy DefaultValue is not working. Need help

2017-03-14 Thread Tomohisa Igarashi
CSV to object. For marshalling from object to CSV, unbind method is used in which defaultvalue is not set. Let me know if my understanding is correct. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-DefaultValue-is-not-working-Need-help-tp5795402p5795409.html Sent from

Re: Bindy DefaultValue is not working. Need help

2017-03-14 Thread Amruta Jawlekar
ttp://camel.465427.n5.nabble.com/Bindy-DefaultValue-is-not-working-Need-help-tp5795402p5795409.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy DefaultValue is not working. Need help

2017-03-14 Thread Amruta Jawlekar
2.17.3 org.springframework spring-context 4.2.5.RELEASE org.apache.camel camel-bindy

Bindy DefaultValue is not working. Need help

2017-03-14 Thread Amruta Jawlekar
Hi, I am using camel-bindy to put default value for some fields. But it is not populating the default values in the final csv document. camel-context: In this class: @DataField(pos = 2, defaultValue

Re: Camel Bindy - Mixed fixed and variable length processing?

2017-02-11 Thread Walzer, Thomas
oday. But for some new feature the producer will > introduce new fields at the end of the record therefore increase the length. > So I need my application to be able to handle both lengths as it comes so > that I don't have to release my code together with the producer. Is this > someth

Re: Camel Bindy - Mixed fixed and variable length processing?

2017-02-10 Thread ruili1
that I don't have to release my code together with the producer. Is this something easily achievable in Bindy? Or I need to write my own formatter as well? Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Bindy-Mixed-fixed-and-variable-length-processing

bindy trim fixedlength

2017-01-25 Thread erik_romson
im on both sides also the documentation on this is not updated. thanks for all good work /erik -- View this message in context: http://camel.465427.n5.nabble.com/bindy-trim-fixedlength-tp5793047.html Sent from the Camel - Users mailing list archive at Nabble.com.

Marshaling with multiple BindyFixedLengthDataFormat models (camel-bindy-2.17)

2016-12-21 Thread Raghavan83
I am currently trying to upgrade from camel-bindy-2.11.0 to camel-bindy-2.17.0 and am running into a problem when trying to apply a model consisting of multiple classes to a data set resulting in a single text file. I had a number of classes in a package (com.sample.package) that I could use

Re: camel-bindy issue with header and missing locale

2016-12-21 Thread Claus Ibsen
Hi Yeah sounds like an issue, you are welcome to log a JIRA and provide a patch or better github PR http://camel.apache.org/contributing On Tue, Dec 20, 2016 at 5:01 PM, dabby11 <marco.dabb...@gmail.com> wrote: > Hi, > > I'm developing a route with Camel 2.16.1 that uses B

camel-bindy issue with header and missing locale

2016-12-20 Thread dabby11
Hi, I'm developing a route with Camel 2.16.1 that uses Bindy to process a file with fixed length records. The file consists of a header and many rows. I'm unmarshalling the stream with the following data format: BindyFixedLengthDataFormat bindy = new BindyFixedLengthDataFormat

camel-bindy issue with header and missing locale

2016-12-20 Thread dabby11
Hi, I'm developing a route with Camel 2.16.1 that uses Bindy to process a file with fixed length records. The file consists of a header and many rows. I'm unmarshalling the stream with the following data format: BindyFixedLengthDataFormat bindy = new BindyFixedLengthDataFormat

Bindy KeyValuePairField where key is a String

2016-10-11 Thread Karts
Hi I have the following message I'd like to unmarshal into a POJO with Bindy : KeyABC=value1:KeyDEF=value2: It looks like the key (i.e. tag) needs to be an int. Is there any way with Bindy to handle this kind of format? Thanks -- View this message in context: http://camel.465427.n5

Re: Error in bindy documentation

2016-09-28 Thread Claus Ibsen
Or even better contribute yourself and provide a fix in the bindy.adoc as a github PR https://github.com/apache/camel/blob/master/components/camel-bindy/src/main/docs/bindy-dataformat.adoc How to contribute http://camel.apache.org/contributing The old wiki docs are going away. However how

Re: Error in bindy documentation

2016-09-28 Thread Charles Moulliard
Hi, Can you open a ticket please to report such enhancement ? Regards, On Wed, Sep 28, 2016 at 7:29 PM, Knut-Håvard Aksnes <khaks...@gmail.com> wrote: > Between 2.15 and 2.16 there were made a couple of backwards incompatible > changes in Bindy. > The first: The change in

Error in bindy documentation

2016-09-28 Thread Knut-Håvard Aksnes
Between 2.15 and 2.16 there were made a couple of backwards incompatible changes in Bindy. The first: The change in the constructor of CsvDataformat is well documented. The second: The change in return type of unmarshal from List> to List is not documented in http://camel.apache.org/bindy.h

Re: Unmarshal fixed lenght Binary data format using Bindy

2016-07-20 Thread Antoine DESSAIGNE
ustubhkane <kaustubh.k...@tcs.com>: > Hi, > > I have a fixed length Binary data in Bit pack format. > > Can I use the Bindy DataFormat to unmarshal the binary data? > > I looked at the details of the Bindy DataFormat. It provides the ability > where using the Annotations

Unmarshal fixed lenght Binary data format using Bindy

2016-07-19 Thread kaustubhkane
Hi, I have a fixed length Binary data in Bit pack format. Can I use the Bindy DataFormat to unmarshal the binary data? I looked at the details of the Bindy DataFormat. It provides the ability where using the Annotations the user can map the data model to POJO. This way user has to only

Camel Bindy - marshal fixed file with heade,footer and section

2016-06-15 Thread Scisci
\n as the number of object in the list. How to create with bindy a file like I've desribed above? Thanks Mirko -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Bindy-marshal-fixed-file-with-heade-footer-and-section-tp5784073.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-bindy not binding well when first column value is null

2016-05-18 Thread DianaAZ
inged to the column 2 binded attribute (sku), and the the actual attribute binded to column 3 stays null:VENDOR->SKU->STOCKnull->123->5Vendor1->166->10Produces this mapping:[{ vendor: "123",sku: "5",stock: null},{vendor: "Vendor1",sku: &

Re: Camel bindy not working in Spring boot

2016-04-13 Thread Charles Moulliard
.ROUTE_CONVERT_TO_CSV) > .log("Received request for S3 upload") > .marshal().bindy(BindyType.Csv, "com.domain") > .setHeader(S3Constants.KEY, > > simple("${date:now:-MM-dd}"+&q

Re: Camel bindy not working in Spring boot

2016-04-13 Thread cgsk
I dont have a test case, but below is the route where I pass a List of Map of my model class. from(Constants.ROUTE_CONVERT_TO_CSV) .log("Received request for S3 upload") .marshal().bindy(BindyType.Csv, &

Re: Camel bindy not working in Spring boot

2016-04-13 Thread Charles Moulliard
; // try super first, just in vase > Enumeration enumeration = super.getResources(loader, > "com/domain/"); > if (!enumeration.hasMoreElements()) { > > enumeration = loader.getResources("com/domain/"); > } > > return enumeration; >

Re: Camel bindy not working in Spring boot

2016-04-13 Thread cgsk
return enumeration; } } -- View this message in context: http://camel.465427.n5.nabble.com/Camel-bindy-not-working-in-Spring-boot-tp5780995p5781012.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel bindy not working in Spring boot

2016-04-13 Thread cgsk
Hi There, I am using Bindy csv format to marshal to csv file. Everything works fine if i run from ecplise, but fails with the below exception if ran as a spring boot jar from command line. I tried creating custom PackageScanClassResolver extending DefaultPackageScanClassResolver, but no luck. I

Handling of parsing errors in camel bindy

2016-02-02 Thread Alberto Brosich
Hi, is there a way to intercept parsing exception in camel bindy? I have to continue the processing of the remaining fields/records and, for example, put an empty value in the field where the value is not correctly parsed. Regards Alberto

Camel-Bindy - unusual default Date format

2016-01-26 Thread kgscorp
Hi all! I have a situation where I use Camel-Bindy to create fixed-length records, which are to be written to/read from a legacy (and of course, unmodifiable) system. The specification of the records asks all dates to be formatted with a ddMM pattern, except for "empty" date fie

Bindy mixing fixedlength and csvRecord

2016-01-25 Thread souciance
Hello, Is it possible to combine fixedlength record with csvrecord in bindy using two different models i.e. two different classes? For example say you have the following input data: 09N2010093009384820100930093848AP|AOMAIN|AB11|AC| The first part "09N20100930093848201

Bindy dataformat usage in Spring v/s Java DSL

2015-10-21 Thread calyan.bandi
= exchange.getIn().getBody(List.class); for(Order order : orders) { // simply reading the order object and doing processing } Recently, we moved to Java DSL and the code looks as below and below is how we have our route written. DataFormat bindy = new BindyCsvDataFormat("org.examples.camel.model&quo

Inspect marshalled Pojo with a Processor with Camel and Bindy

2015-07-27 Thread Mechkov
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 completed. Any suggestions? I am trying

Camel Bindy bean as Parameter in Spring Jms Component using @Consume

2015-07-14 Thread vivekrao001
: com.myapp.component.Order with value 1122. Could somebody help me, if I'm missing any configuration? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Bindy-bean-as-Parameter-in-Spring-Jms-Component-using-Consume-tp5769301.html Sent from the Camel - Users mailing list archive

Re: Camel Bindy bean as Parameter in Spring Jms Component using @Consume

2015-07-14 Thread Claus Ibsen
Hi Ah yeah there is no type converter that supports bindy as a fallback. So you would need to use the dataformat as David says. Though it begs the question for pojo consuming if we should add some annotation to add a conversion step so you can point to a data format / type converter (the latter

Re: Camel Bindy bean as Parameter in Spring Jms Component using @Consume

2015-07-14 Thread David Karlsen
You need to define a dataformat step in your route: https://camel.apache.org/data-format.html for bindy: http://camel.apache.org/binding.html alternatively you can bind the dataformat to the endpoint: http://camel.apache.org/binding.html 2015-07-14 17:53 GMT+02:00 vivekrao001 vivekrao

Re: Intercepting Bindy setter actions

2015-06-17 Thread Giorgio Vespucci
giorgio.vespu...@gmail.com wrote: Hi everybody :) I'm wondering how Bindy is setting values from a CSV file to Java fields. It looks that it's not using setter methods the POJO exposes. Is there a way to intercept Bindy setter actions, so that an additional behavior could be executed

Re: Intercepting Bindy setter actions

2015-06-17 Thread Claus Ibsen
wrote: Hi everybody :) I'm wondering how Bindy is setting values from a CSV file to Java fields. It looks that it's not using setter methods the POJO exposes. Is there a way to intercept Bindy setter actions, so that an additional behavior could be executed? I'm using Camel 2.14.3

Intercepting Bindy setter actions

2015-06-17 Thread Giorgio Vespucci
Hi everybody :) I'm wondering how Bindy is setting values from a CSV file to Java fields. It looks that it's not using setter methods the POJO exposes. Is there a way to intercept Bindy setter actions, so that an additional behavior could be executed? I'm using Camel 2.14.3. Best regards

Re: Intercepting Bindy setter actions

2015-06-17 Thread Claus Ibsen
how Bindy is setting values from a CSV file to Java fields. It looks that it's not using setter methods the POJO exposes. Is there a way to intercept Bindy setter actions, so that an additional behavior could be executed? I'm using Camel 2.14.3. Best regards and thank you. -- Claus Ibsen

Re: Bindy running within a WAR

2015-04-22 Thread RaviP
I've moved on by changing it to beanio. thanks Ravi. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-running-within-a-WAR-tp5765035p5766174.html Sent from the Camel - Users mailing list archive at Nabble.com.

Bindy marshalling large CSV

2015-04-21 Thread iambutcha
Hi. I am using Bindy in order to marshal a large set of data (in batches) to a CSV file. The problem that I am seeing is that Bindy does not seem to offer any streaming solution. This means it is expecting a single message (with the CSV content) to be loaded in memory in order to start writing

Re: Bindy running within a WAR, widlfly 8.2.0 and Camel

2015-04-17 Thread sanjay.gautam
(BindyCsvDataFormat.java:137) [camel-bindy-2.15.0.jar:2.15.0] at org.apache.camel.processor.UnmarshalProcessor.process(UnmarshalProcessor.java:67) [camel-core-2.15.0.jar:2.15.0] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.15.0.jar

Re: Bindy running within a WAR

2015-04-15 Thread RaviP
/artifactId version4.1.5.RELEASE/version /dependency wildfly-camel-patch also contains 4.1.5.RELEASE. thanks Ravi. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-running-within-a-WAR-tp5765035p5765831.html Sent from the Camel - Users

Re: Bindy running within a WAR

2015-04-14 Thread Charles Moulliard
Hi Ravi, Have you tried to use the camel bindy module instead of packaging all the deps within the war file ( http://wildflyext.gitbooks.io/wildfly-camel/content/components/camel-bindy.html, http://wildflyext.gitbooks.io/wildfly-camel/content/start/index.html) ? Regards, On Mon, Apr 13, 2015

Re: Bindy running within a WAR

2015-04-13 Thread RaviP
I'm facing the similar issue with my war. I'm using wildfly 8.2.0 Camel 2.14.1. My route uses bindy to unmarshal csv to domain object. Junits are working war deployed on tomcat also works. I'm getting the following exception when i deploy the war on wildfly 8.2.0

Re: Bindy running within a WAR

2015-03-31 Thread Ted
BeltPackageScanClassResolver(); return resolver; } Am I missing something? -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-running-within-a-WAR-tp5765035p5765077.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy running within a WAR

2015-03-31 Thread Claus Ibsen
BeltPackageScanClassResolver beltResolver() { BeltPackageScanClassResolver resolver = new BeltPackageScanClassResolver(); return resolver; } Am I missing something? -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-running

Re: Bindy running within a WAR

2015-03-31 Thread Ted
Okay, thanks Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-running-within-a-WAR-tp5765035p5765084.html Sent from the Camel - Users mailing list archive at Nabble.com.

Bindy running within a WAR

2015-03-30 Thread Ted
Hi, I have a self executable Spring Boot (1.2.2) and Camel Boot (2.15.0) application built as a WAR. My route makes use of Bindy to unmarshal CSV to my object class. Everything work well when I run the code directly using Maven (mvn spring-boot:run) or if I run using Eclipse. However if I

Re: Bindy running within a WAR

2015-03-30 Thread Claus Ibsen
Hi What web server do you use for the War? Is it jetty or tomcat or something else? Yeah bindy unfortunately uses that annotation scanning on classpath. There is a ticket to improve this for the future. You can impement a custom yourself that can load in the WAR. http://camel.apache.org

camel bindy 2.14.1 and jboss-eap 6.3.3

2015-03-11 Thread Scisci
Hi, I'm trying to use bindy on camel 2.14.1 with a WAR deploy on jboss-eap 6.3.3 this is my camel context: camelContext xmlns=http://camel.apache.org/schema/spring; propertyPlaceholder id=placeholder location=classpath:file.properties/ route id=file-to-jpa from uri=file

Re: camel bindy 2.14.1 and jboss-eap 6.3.3

2015-03-11 Thread Claus Ibsen
Hi You may need to use a 3rd party jboss classloader module. See more details at http://camel.apache.org/camel-jboss.html On Wed, Mar 11, 2015 at 11:14 AM, Scisci ferioli.mi...@gmail.com wrote: Hi, I'm trying to use bindy on camel 2.14.1 with a WAR deploy on jboss-eap 6.3.3 this is my camel

Re: camel bindy 2.14.1 and jboss-eap 6.3.3

2015-03-11 Thread Scisci
=org.apacheextras.camel.jboss.JBossPackageScanClassResolver/ Thanks -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-2-14-1-and-jboss-eap-6-3-3-tp5763997p5764003.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy - Date Unmarshall Issue

2015-03-04 Thread Claus Ibsen
Hi It seems because bindy uses strict parsing by setting lenient = false df.setLenient(false); date = df.parse(string); It should maybe not do that, and just use SimpleDataFormat parsing as default out of the box. On Fri, Feb 20, 2015 at 2:00 AM, kc525

Re: Bindy - Date Unmarshall Issue

2015-02-24 Thread Charles Moulliard
Hi, Can you provide an example that we could test as the date pattern used seems good. So, we should have a look to the code to see why it failed for you. Regards, On Fri, Feb 20, 2015 at 2:00 AM, kc525 kirankumar.chitt...@gmail.com wrote: I ran into an issue with Apache Camel Bindy data

Bindy - Date Unmarshall Issue

2015-02-19 Thread kc525
I ran into an issue with Apache Camel Bindy data format for the Date field parsing from a CSV file. *Date in the CSV : 02/11/2015 03:34:49 PM.* Format in the Bindy Class annotated as *@DataField(pos = 8,pattern=MM/dd/ hh:mm:ss a) private Date time;* Getting below exception

Camel bindy, empty file cause Exception

2015-02-12 Thread kalber
.nabble.com/Camel-bindy-empty-file-cause-Exception-tp5762637.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel bindy, empty file cause Exception

2015-02-12 Thread Claus Ibsen
Hi Yes you need to filter this outside bindy as it expects that there is data On Thu, Feb 12, 2015 at 11:15 AM, kalber karlheinz.al...@swslt.com wrote: Hi, is there a way to avoid 'java.lang.IllegalArgumentException: No records have been defined in the CSV' when the input file is completly

Re: bindy: different behavior between marshal and unmarshal with pipe separator '|'

2014-11-20 Thread ozzy81
The escape characters are still added into the Header Columns when marshalling back the object. e.g. Separator = \\| Output: Header 1\|Header2\|... Version:2.13.2 -- View this message in context: http://camel.465427.n5.nabble.com/bindy-different-behavior-between-marshal-and-unmarshal

Bindy: using a multi-character separator for marshalling

2014-11-20 Thread ozzy81
a multi-character separator in Bindy? Thanks a lot in advance. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-using-a-multi-character-separator-for-marshalling-tp5759364.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy: using a multi-character separator for marshalling

2014-11-20 Thread Claus Ibsen
String to char. char separator = ConverterUtils.getCharDelimiter(this.getSeparator()); Is it possible to use a multi-character separator in Bindy? Thanks a lot in advance. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-using-a-multi-character-separator

Re: Re: Why does Bindy prohibit empty files?

2014-09-25 Thread a_blithe
if possible. @Claus, Thank you for your suggestions. I will test them. -Ursprüngliche Nachricht- Gesendet: Wednesday, 24 September 2014 um 19:18:06 Uhr Von: Charles Moulliard ch0...@gmail.com An: users@camel.apache.org Betreff: Re: Why does Bindy prohibit empty files? Hi, We could certainly

Why does Bindy prohibit empty files?

2014-09-24 Thread a_blithe
Prolog: Camel Bindy will throw an IllegalArgumentException if the current InputStream doesn't contain any data (see https://fisheye6.atlassian.com/browse/camel-git/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/BindyCsvDataFormat.java?hb=true at line 174 and 200). I

Re: Why does Bindy prohibit empty files?

2014-09-24 Thread Charles Moulliard
Hi, We could certainly improve Bindy and implements what you suggest. Could you please raise a ticket concerning your request ? Until now, I suggest that you add a onException() to handle the exception throws by Bindy when the data stream is empty Regards, On Wed, Sep 24, 2014 at 5:36 PM

Re: Why does Bindy prohibit empty files?

2014-09-24 Thread Claus Ibsen
, Charles Moulliard ch0...@gmail.com wrote: Hi, We could certainly improve Bindy and implements what you suggest. Could you please raise a ticket concerning your request ? Until now, I suggest that you add a onException() to handle the exception throws by Bindy when the data stream is empty

Re: Re: Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-09-11 Thread Charles Moulliard
Hi Tom, As camel-2.14 is ready for the vote, you could perhaps make a test with the Bindy modification to confirm ? https://repository.apache.org/content/repositories/orgapachecamel-1012/org/apache/camel/apache-camel/2.14.0/ Regards, On Wed, Aug 27, 2014 at 7:56 AM, Charles Moulliard ch0

camel-bindy 2.13.1 DateFormat Unparseable date

2014-08-29 Thread sandp
camel-bindy is throwing an *java.text.ParseException * on failing to parse date with format *dd-MMM- hh* *The date field in the CsvRecord is:* @DataField(pos = 1, required = true, pattern = dd-MMM- hh) *Row from CSV file:* 10-Nov-2013 00,ARTHUR,2,CON ED NY CITY,332.8,90,90,,35

Re: camel-bindy 2.13.1 DateFormat Unparseable date

2014-08-29 Thread Charles Moulliard
df.setLenient(false); date = df.parse(string); return date; } else { throw new FormatException(Date provided does not fit the pattern defined); } } On Fri, Aug 29, 2014 at 4:30 PM, sandp sandeepred...@gmail.com wrote: camel-bindy

  1   2   3   4   5   >