Bug 1026736

Summary: Using Camel Bindy leads to NullPointerException
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jochen Cordes <jcordes>
Component: CamelAssignee: Keith Babo <kbabo>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Rohovsky <trohovsk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: atangrin, ldimaggi, oskutka, serviceworks, soa-p-jira, tschan+redhat
Target Milestone: ER7   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
EAP 6.1 configuration
none
Project using Camel Bindy
none
Log file
none
updated app
none
camel bindy module none

Description Jochen Cordes 2013-11-05 10:26:38 UTC
Created attachment 819637 [details]
EAP 6.1 configuration

Description of problem:

When trying to use Camel Bindy inside a SwitchYard component I get a NullPointerException.

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


How reproducible:

Always, both as a unit test and also during deployment in the container

Steps to Reproduce:
1. Execute mvn test
2.
3.

Actual results:

File is not processed

Expected results:


File is processed

Additional info:

Attached you can find:

- EAP 6.1 configuration (including modules)
- The project source code
- Log file with the exeception

For in-container test drop the test.csv into the /tmp folder

Comment 1 Jochen Cordes 2013-11-05 10:27:50 UTC
Created attachment 819638 [details]
Project using Camel Bindy

Comment 2 Jochen Cordes 2013-11-05 10:28:17 UTC
Created attachment 819639 [details]
Log file

Comment 4 Jochen Cordes 2013-11-05 10:37:31 UTC
A special JBoss resolver should be added before Camel is started, i.e. either OOTB or by adding a possibility in SwitchYard to add it before the CamelContext is initialized by SwitchYard.

Comment 5 Keith Babo 2013-11-12 14:08:52 UTC
I have a fix for this and it will be in today.

Comment 6 JBoss JIRA Server 2013-11-12 17:50:07 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1830 to Resolved

Comment 7 JBoss JIRA Server 2013-11-12 17:50:07 UTC
Keith Babo <kbabo> made a comment on jira SWITCHYARD-1830

pushed

Comment 8 Keith Babo 2013-11-12 17:57:54 UTC
Created attachment 823066 [details]
updated app

Comment 9 Keith Babo 2013-11-12 17:58:41 UTC
Created attachment 823067 [details]
camel bindy module

Comment 10 Keith Babo 2013-11-12 17:58:54 UTC
Once this is available in the product build, all you have to do is:

1) add the Camel bindy extension to your AS modules directory (see attached bindy-module.zip)

2) configure standalone.xml to use the org.apache.camel.bindy extension in the switchyard subsystem configuration:
<subsystem xmlns="urn:jboss:domain:switchyard:1.0">
  <!-- snip -->
  <extensions>
    <!-- snip -->     
    <extension identifier="org.apache.camel.bindy"/>
</extensions>

3) Deploy the revised application (updated-app.zip).  Similar to the original example, but I removed some dependency definitions which are not required.

Comment 11 JBoss JIRA Server 2014-06-16 23:48:19 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1830 to Closed