Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 12246 invoked from network); 1 Dec 2009 13:04:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Dec 2009 13:04:16 -0000 Received: (qmail 21840 invoked by uid 500); 1 Dec 2009 13:04:16 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 21792 invoked by uid 500); 1 Dec 2009 13:04:16 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 21782 invoked by uid 500); 1 Dec 2009 13:04:16 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 21779 invoked by uid 99); 1 Dec 2009 13:04:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 13:04:16 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,WEIRD_PORT 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; Tue, 01 Dec 2009 13:04:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3B0B6234C052 for ; Tue, 1 Dec 2009 05:03:53 -0800 (PST) Message-ID: <396011909.1259672633238.JavaMail.jira@brutus> Date: Tue, 1 Dec 2009 05:03:53 -0800 (PST) From: "Charles Moulliard (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-2239) Cannot determine specific JmsMessage type to use from body class In-Reply-To: <1755429752.1259582512696.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56194#action_56194 ] Charles Moulliard commented on CAMEL-2239: ------------------------------------------ @Willem, Can you explain this "Just back to your case, you have to put the outMessage which is sent to cxf:rsServer with the Response object, otherwise cxf:rsServer will complain about the returned message is not a Response object." as I don't understand ? > Cannot determine specific JmsMessage type to use from body class > ---------------------------------------------------------------- > > Key: CAMEL-2239 > URL: https://issues.apache.org/activemq/browse/CAMEL-2239 > Project: Apache Camel > Issue Type: Bug > Components: camel-cxf > Affects Versions: 2.1.0 > Reporter: Charles Moulliard > Assignee: Willem Jiang > Fix For: 2.2.0 > > > Error : Cannot determine specific JmsMessage type to use from body class. Will use generic JmsMessage. Body class: org.apache.cxf.jaxrs.impl.ResponseImpl. If you want to send a POJO then your class might need to implement java.io.Serializable, or you can force a specific type by setting the jmsMessageType option on the JMS endpoint > is reported with the following camel routing > {code} > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" > xmlns:camel="http://camel.apache.org/schema/spring" xmlns:cxf="http://camel.apache.org/schema/cxf" > xmlns:cxf-core="http://cxf.apache.org/core" xmlns:jaxrs="http://cxf.apache.org/jaxrs" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://www.springframework.org/schema/context > http://www.springframework.org/schema/context/spring-context.xsd > http://camel.apache.org/schema/osgi > http://camel.apache.org/schema/osgi/camel-osgi.xsd > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd > http://camel.apache.org/schema/cxf > http://camel.apache.org/schema/cxf/camel-cxf.xsd > http://cxf.apache.org/jaxrs > http://cxf.apache.org/schemas/jaxrs.xsd > http://cxf.apache.org/core > http://cxf.apache.org/schemas/core.xsd"> > > > > > > > > > > > > > > > staticSubresourceResolution="true"> > > > > > > > > serviceClass="org.apache.camel.example.reportincident.restful.ReportIncidentService" /> > > xmlns="http://camel.apache.org/schema/osgi"> > > > > > > > > > > > > > > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.