[
http://jira.jboss.com/jira/browse/JBESB-1361?page=comments#action_12388905 ]
Tom Fennelly commented on JBESB-1361:
-------------------------------------
Right, coz the aggregated messages are added as attachments. This is how it was before.
You can't get them from Message.Body.get(). You need to get them from
Message.Attachment.get()...
Of course you need to watch how you use that Attachment API... you need to get the
"unnamed" attachment count etc...
T.
IllegalArgumentException in aggregator QS
-----------------------------------------
Key: JBESB-1361
URL:
http://jira.jboss.com/jira/browse/JBESB-1361
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Examples
Affects Versions: 4.2.1 CP1
Reporter: Jaroslaw Kijanowski
Assigned To: Tom Fennelly
Just try to run the aggregator QS, enable DEBUG level for the aggreagtion service, send a
message and watch the aggregator's console:
[java] java.lang.IllegalArgumentException: value must be Serializable
[java] at
org.jboss.internal.soa.esb.message.format.xml.AttachmentImpl.addItem(AttachmentImpl.java:101)
[java] at
org.jboss.soa.esb.actions.Aggregator.createAggregateMessage(Aggregator.java:236)
[java] at org.jboss.soa.esb.actions.Aggregator.process(Aggregator.java:185)
[java] at
org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
[java] at
org.jboss.soa.esb.listeners.message.MessageAwareListener$1.run(MessageAwareListener.java:303)
[java] at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
[java] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
[java] at java.lang.Thread.run(Thread.java:595)
.
.
.
[java] 12:07:17,808 DEBUG [Thread-1][Aggregator] message is alive.
[java] 12:07:17,808 DEBUG [Thread-1][Aggregator] Current time=12:07:17 PM message
expiration=12:07:18 PM
[java] 12:07:17,808 DEBUG [Thread-1][Aggregator] message is alive.
[java] 12:07:18,309 DEBUG [Thread-1][Aggregator] Current time=12:07:18 PM message
expiration=12:07:18 PM
[java] 12:07:18,309 DEBUG [Thread-1][Aggregator] message expired.
[java] Exception in thread "Thread-1" java.lang.NullPointerException
[java] at
org.jboss.soa.esb.actions.Aggregator$TimeoutChecker.run(Aggregator.java:297)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira