Bug 1026736 - Using Camel Bindy leads to NullPointerException
Summary: Using Camel Bindy leads to NullPointerException
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: Camel
Version: 6.0.0 GA
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER7
: 6.0.0
Assignee: Keith Babo
QA Contact: Tomas Rohovsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-05 10:26 UTC by Jochen Cordes
Modified: 2016-01-04 05:58 UTC (History)
6 users (show)

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


Attachments (Terms of Use)
EAP 6.1 configuration (160.64 KB, application/x-gzip)
2013-11-05 10:26 UTC, Jochen Cordes
no flags Details
Project using Camel Bindy (3.69 KB, application/x-gzip)
2013-11-05 10:27 UTC, Jochen Cordes
no flags Details
Log file (41.18 KB, text/plain)
2013-11-05 10:28 UTC, Jochen Cordes
no flags Details
updated app (9.86 KB, application/zip)
2013-11-12 17:57 UTC, Keith Babo
no flags Details
camel bindy module (66.11 KB, application/zip)
2013-11-12 17:58 UTC, Keith Babo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SWITCHYARD-1830 0 Major Closed Camel Bindy requires JBoss-specific implementation of PackageClassScanResolver 2014-08-19 09:35:51 UTC

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


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