Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 97318 invoked from network); 28 Sep 2008 04:04:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2008 04:04:13 -0000 Received: (qmail 90262 invoked by uid 500); 28 Sep 2008 04:04:11 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 90248 invoked by uid 500); 28 Sep 2008 04:04:11 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 90237 invoked by uid 99); 28 Sep 2008 04:04:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Sep 2008 21:04:11 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Sep 2008 04:03:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9A746234C1E2 for ; Sat, 27 Sep 2008 21:03:52 -0700 (PDT) Message-ID: <1345800673.1222574632618.JavaMail.jira@brutus> Date: Sat, 27 Sep 2008 21:03:52 -0700 (PDT) From: "Willem Jiang (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-942) Can't set the jms message header which has the Data object in JMS Component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Can't set the jms message header which has the Data object in JMS Component --------------------------------------------------------------------------- Key: CAMEL-942 URL: https://issues.apache.org/activemq/browse/CAMEL-942 Project: Apache Camel Issue Type: Bug Components: camel-jms Affects Versions: 1.4.0 Reporter: Willem Jiang Assignee: Willem Jiang Fix For: 1.5.0 When I came across to fix the FileRouteToJMSTest failure, I found the JMSComponent can't handle the message header with the Data object rightly. org.springframework.jms.MessageFormatException: Only objectified primitive objects, String, Map and List types are allowed but was: Sun Sep 28 09:52:36 CST 2008 type: class java.util.Date; nested exception is javax.jms.MessageFormatException: Only objectified primitive objects, String, Map and List types are allowed but was: Sun Sep 28 09:52:36 CST 2008 type: class java.util.Date at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:273) at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:548) at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:227) at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43) at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75) at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57) at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:174) at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:96) at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57) at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39) at org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:153) at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:89) at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:99) at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:65) at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: javax.jms.MessageFormatException: Only objectified primitive objects, String, Map and List types are allowed but was: Sun Sep 28 09:52:36 CST 2008 type: class java.util.Date at org.apache.activemq.command.ActiveMQMessage.checkValidObject(ActiveMQMessage.java:432) at org.apache.activemq.command.ActiveMQMessage.setObjectProperty(ActiveMQMessage.java:397) at org.apache.activemq.command.ActiveMQMessage.setObjectProperty(ActiveMQMessage.java:385) at org.apache.activemq.command.ActiveMQBytesMessage.setObjectProperty(ActiveMQBytesMessage.java:844) at org.apache.camel.component.jms.JmsBinding.appendJmsProperty(JmsBinding.java:254) at org.apache.camel.component.jms.JmsBinding.appendJmsProperties(JmsBinding.java:220) at org.apache.camel.component.jms.JmsBinding.makeJmsMessage(JmsBinding.java:198) at org.apache.camel.component.jms.JmsProducer$2.createMessage(JmsProducer.java:229) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:570) at org.springframework.jms.core.JmsTemplate$4.doInJms(JmsTemplate.java:551) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:471) ... 23 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.