Bug 1132969 - Camel bindy not generating header in CSV
Summary: Camel bindy not generating header in CSV
Keywords:
Status: ON_QA
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: Camel
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER2
: 6.2.0
Assignee: tcunning
QA Contact: Matej Melko
URL: https://c.na7.visual.force.com/apex/C...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-22 12:54 UTC by gbonocor
Modified: 2018-12-09 18:25 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1128756
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
reproducer sources (22.31 KB, application/zip)
2014-08-22 12:54 UTC, gbonocor
no flags Details
reproducer (12.85 KB, application/octet-stream)
2014-08-22 12:55 UTC, gbonocor
no flags Details
test Data (324 bytes, text/plain)
2014-08-22 12:56 UTC, gbonocor
no flags Details

Description gbonocor 2014-08-22 12:54:54 UTC
Created attachment 929581 [details]
reproducer sources

Description of problem:

In a simple camel route, that use bindy for marshalling pojo to CSV, the header generation fails, if the application is packaged as jar inside ear. 
The CSV is generated correctly (but with no headers), and no errors or warning are logged.

If everything got packaged in the same jar, the same code works.

Another workaround seems to be to place every @CsvRecord annotated class in a different package.

Version-Release number of selected component (if applicable):

camel-bindy-2.10.0.redhat-60024


How reproducible:

Deploy attached EAR inside an FSW 6.0 with bindy module.

Steps to Reproduce:
1. Add the bindy module (version 2.10.0.redhat-60024) to FSW
2. Start FSW
3. Deploy the attached EAR 
4. Put the attached csv "infile" in /tmp folder
5. Check the log for errors

Actual results:

The CSV is marshalled with no headers

Expected results:

Headers generated

Additional info:

Comment 1 gbonocor 2014-08-22 12:55:51 UTC
Created attachment 929582 [details]
reproducer

Comment 2 gbonocor 2014-08-22 12:56:13 UTC
Created attachment 929583 [details]
test Data

Comment 3 Aileen 2015-03-02 16:16:59 UTC
May be fixed in later version of Camel.

Comment 4 tcunning 2015-03-05 20:43:54 UTC
I can't reproduce this with the app and current SwitchYard on top of EAP 6.4.   Can we retest this?


Note You need to log in before you can comment on or make changes to this bug.