Bug 779186 (SOA-1580) - smooks config not backward compatible
Summary: smooks config not backward compatible
Keywords:
Status: CLOSED DUPLICATE of bug 779254
Alias: SOA-1580
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: 3rd Party, Compatibility
Version: 5.0.0 ER1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Kevin Conner
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-04 13:31 UTC by Jaroslaw Kijanowski
Modified: 2010-01-06 10:13 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-09 13:54:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-1580 0 None None None Never

Description Jaroslaw Kijanowski 2009-11-04 13:31:31 UTC
Date of First Response: 2009-11-04 08:34:20
project_key: SOA

PRD: "SOA-P 5 will be backward compatible with SOA-P 4.x in the following areas:  "    	 	 	 	 	 	   smooks-res.xml

This doesn't seem to be the case, try to use an old smooks config from
http://anonsvn.jboss.org/repos/labs/labs/jbossesb/tags/JBESB_4_4_GA/product/samples/quickstarts/transform_XML2POJO/
in the new transform_XML2POJO QS

Comment 1 Kevin Conner 2009-11-04 13:34:20 UTC
Sorry, did you try the old QS or just change the config?

Can you attach what you have done along with some log files??

Comment 2 Jaroslaw Kijanowski 2009-11-04 13:58:39 UTC
I used the smooks-res.xml from JBESB_4_4_GA in ER1.

I would expect to see what I have seen with the original smooks-res.xml:

08:17:22,809 INFO  [STDOUT] 
&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&&&
08:17:22,811 INFO  [STDOUT] <Order orderId="1" orderDate="Wed Nov 15 13:45:28 EST 2006" statusCode="0" netAmount="59.97" totalAmount="64.92" tax="4.95">
	<Customer userName="user1" firstName="Harry" lastName="Fletcher" state="SD"/>
	<OrderLines>
		<OrderLine position="1" quantity="1">
			<Product productId="364" title="The 40-Year-Old Virgin " price="29.98"/>
		</OrderLine>
		<OrderLine position="2" quantity="1">
			<Product productId="299" title="Pulp Fiction" price="29.99"/>
		</OrderLine>
	</OrderLines>
</Order>
08:17:22,812 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&
08:17:23,248 INFO  [STDOUT] 
&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&&&
08:17:23,249 INFO  [STDOUT] Demonstrates Smooks ability to rip the XML into Objects
********* DVDStoreAction - Order Value Objects Populated *********
Header: 1, 15-Nov-2006, 0, 59.97, 64.92, 4.95, 
Customer: user1,Harry,Fletcher,SD
Order Items (2):
	0: 1,1,364,The 40-Year-Old Virgin ,29.98
	1: 2,1,299,Pulp Fiction,29.99

****************************************************************** 
08:17:23,249 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&
08:17:23,250 INFO  [STDOUT] 
&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&&&
08:17:23,250 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&
08:17:23,268 INFO  [STDOUT] >>>> Message after Smooks intermediate xml -> target pojos : : 
08:17:23,269 INFO  [STDOUT] [Demonstrates Smooks ability to rip the XML into Objects
********* DVDStoreAction - Order Value Objects Populated *********
Header: 1, 15-Nov-2006, 0, 59.97, 64.92, 4.95, 
Customer: user1,Harry,Fletcher,SD
Order Items (2):
	0: 1,1,364,The 40-Year-Old Virgin ,29.98
	1: 2,1,299,Pulp Fiction,29.99

****************************************************************** ].

==============================================================================================
==============================================================================================
==============================================================================================
==============================================================================================

However when I use the old config I don't see the order items list:
08:21:29,100 INFO  [STDOUT] 
&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&&&
08:21:29,101 INFO  [STDOUT] <Order orderId="1" orderDate="Wed Nov 15 13:45:28 EST 2006" statusCode="0" netAmount="59.97" totalAmount="64.92" tax="4.95">
	<Customer userName="user1" firstName="Harry" lastName="Fletcher" state="SD"/>
	<OrderLines>
		<OrderLine position="1" quantity="1">
			<Product productId="364" title="The 40-Year-Old Virgin " price="29.98"/>
		</OrderLine>
		<OrderLine position="2" quantity="1">
			<Product productId="299" title="Pulp Fiction" price="29.99"/>
		</OrderLine>
	</OrderLines>
</Order>
08:21:29,102 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&
08:21:29,181 INFO  [STDOUT] 
&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&&&
08:21:29,182 INFO  [STDOUT] Demonstrates Smooks ability to rip the XML into Objects
********* DVDStoreAction - Order Value Objects Populated *********
Header: 1, 15-Nov-2006, 0, 59.97, 64.92, 4.95, 
Customer: user1,Harry,Fletcher,SD

****************************************************************** 
08:21:29,182 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&
08:21:29,183 INFO  [STDOUT] 
&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&&&
08:21:29,183 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&& MyJMSListenerAction &&&&&&&&&&&&&&&&&&&&&&&&&&
08:21:29,201 INFO  [STDOUT] >>>> Message after Smooks intermediate xml -> target pojos : : 
08:21:29,201 INFO  [STDOUT] [Demonstrates Smooks ability to rip the XML into Objects
********* DVDStoreAction - Order Value Objects Populated *********
Header: 1, 15-Nov-2006, 0, 59.97, 64.92, 4.95, 
Customer: user1,Harry,Fletcher,SD

****************************************************************** ].


Comment 3 Burr Sutter 2009-11-25 21:48:09 UTC
This item needs to be documented so that end-users understand the migration process for SOA-P 4.3 to SOA-P 5.0 as it relates to Smooks.

Comment 4 Burr Sutter 2009-11-25 21:48:44 UTC
Assigning to Tom to see if he has some notes on the migration strategy.

Comment 5 Kevin Conner 2009-11-25 22:01:13 UTC
I'll chase this up with Tom.

Comment 6 Kevin Conner 2009-12-07 11:08:15 UTC
Link: Added: This issue depends JBESB-3037


Comment 7 Kevin Conner 2009-12-09 13:53:51 UTC
Link: Added: This issue duplicates SOA-1645


Comment 8 Aleksandar Kostadinov 2010-01-06 10:13:49 UTC
Link: Added: This issue is related to JBQA-2762



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