This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

MessagingException: failed to transform message headers

Feb 7th, 2013, 11:41 AM

The first message I send to my project occasionally errors with "MessagingException: failed to transform message headers", subsequent messages do not have this error. I am using JMeter to send in the messages to a SI deploy on Weblogic 10.3.6 with SI 2.2.1.

If I clone the method into a second method with the second parameter using java.net.UUID, SI will (correctly) complain that both methods (UUID and String) are both candidates for SI to call and they need to be different.

The error "Method call: Method parse(org.springframework.integration.message.Gene ricMessage,java.util.UUID) cannot be found on com.....parser.JAXB2012RequestParser " is not correct, because it works after the first message.

After JMeter sends in the messages, and I rerun the same messages again, they all work.

This is related to a recent issue we fixed in 2.2.1 https://jira.springsource.org/browse/INT-2889); I believe we need to synchronize the initial creation of the TypeConverter (that is used to convert the UUID to a String). The recent fix synchronizes the use of the editor, but I can see that the creation of the TypeConverter suffers from a similar problem. However, I believe it's the second message that's failing because the list of available property editors is only partially built when it gets a reference to the shared SimpleTypeConverter.

Comment

Thank you for the information so quickly. I changed the code to use option #2, and tested again. Each of the test passed the JMeter assertion. Please post the Jira link when you create it so I can "watch" it.