Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 9824 invoked from network); 1 Dec 2009 12:58:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Dec 2009 12:58:23 -0000 Received: (qmail 10631 invoked by uid 500); 1 Dec 2009 12:58:23 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 10594 invoked by uid 500); 1 Dec 2009 12:58:23 -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 10584 invoked by uid 500); 1 Dec 2009 12:58:23 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 10581 invoked by uid 99); 1 Dec 2009 12:58:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 12:58:23 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,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 12:58:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C5E4F234C052 for ; Tue, 1 Dec 2009 04:57:52 -0800 (PST) Message-ID: <521790088.1259672272807.JavaMail.jira@brutus> Date: Tue, 1 Dec 2009 04:57:52 -0800 (PST) From: "Sergey Beryozkin (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56193#action_56193 ] Sergey Beryozkin commented on CAMEL-2239: ----------------------------------------- Can it be defaulted somehow ? Ideally a user would not need to do the additional config... Given the above camel context, would Charles need to update it somehow for it just to work ? The example would help... As far as I understand this issue only occurs when a JAXRS service method returns a Response object. But all works fine if it is a usual object like Customer or Incident which is returned... thanks, Sergey > 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.