Bug 1032659

Summary: Milyn type converters incorrect
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jochen Cordes <jcordes>
Component: SwitchYardAssignee: Rob Cernich <rcernich>
Status: MODIFIED --- QA Contact: Matej Melko <mmelko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, jcordes, ldimaggi, rcernich, serviceworks, soa-p-jira, tcunning, tschan+redhat
Target Milestone: ---Flags: kconner: needinfo? (jcordes)
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The Milyn type converters are not correctly registered in Smooks. As a reult of this, the transformer does not work. To work around this issue, in milyn-smooks-all-1.5.1.jar's JBOSS_HOME/modules/system/layers/soa/org/milyn/main change /META-INF/services/org/apache/camel/TypeConverter and replace org.milyn.smooks.camel.converters with org.milyn.smooks.camel.converters.EDITypeConverter, org.milyn.smooks.camel.converters.ResultConverter, and org.milyn.smooks.camel.converters.SourceConverter.
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:

Description Jochen Cordes 2013-11-20 14:37:19 UTC
Description of problem:


The type converters are not correctly registered in Smooks.

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


How reproducible:

Always

Steps to Reproduce:
1. Add a Smooks transformer
2. 
3.

Actual results:

Transformer doesn't work

Expected results:

Transformer does work

Additional info:

Here's how to fix the issue:

In JBOSS_HOME/modules/system/layers/soa/org/milyn/main in milyn-smooks-all-1.5.1.jar change in /META-INF/services/org/apache/camel/TypeConverter replace

org.milyn.smooks.camel.converters

with

org.milyn.smooks.camel.converters.EDITypeConverter
org.milyn.smooks.camel.converters.ResultConverter
org.milyn.smooks.camel.converters.SourceConverter


This issue releated to https://bugzilla.redhat.com/show_bug.cgi?id=920971 which was raised for SOA-P 5.3.1

See also http://jira.codehaus.org/browse/MILYN-655

Comment 2 Keith Babo 2013-11-21 16:47:22 UTC
Can we test this with the latest build before making a change?  Also, an app which reproduces the problem would be useful so that we can verify whether it still exists and if we do make a change to the smooks artifact that the issue is resolved.  The referenced BZ for 5.3.1 probably has a SOA-P (not FSW / SY) app I'm guessing.

Comment 3 Keith Babo 2013-11-21 17:10:56 UTC
One other good reason to get a reproducer is that the module.xml in our transform module might need to be updated to discover these converters.  The current module.xml can be found here:
https://github.com/jboss-switchyard/release/blob/master/jboss-as7/modules/src/main/resources/switchyard/core/transform/module.xml

Note that META-INF/services/org/apache/camel is not included in the list of imports/exports.

Comment 4 JBoss JIRA Server 2015-01-28 13:06:52 UTC
Tomohisa igarashi <tm.igarashi> updated the status of jira SWITCHYARD-2307 to Closed