Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 53E76200D53 for ; Tue, 5 Dec 2017 08:02:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 50D27160C1B; Tue, 5 Dec 2017 07:02:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6CB54160C0A for ; Tue, 5 Dec 2017 08:02:02 +0100 (CET) Received: (qmail 51891 invoked by uid 500); 5 Dec 2017 07:01:56 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 51879 invoked by uid 99); 5 Dec 2017 07:01:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2017 07:01:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1DC1F1A0EDF for ; Tue, 5 Dec 2017 07:01:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.021 X-Spam-Level: X-Spam-Status: No, score=-0.021 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=rwe.onmicrosoft.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id PMjEEAMSuKzJ for ; Tue, 5 Dec 2017 07:01:53 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0130.outbound.protection.outlook.com [104.47.2.130]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id EFE1C5F22E for ; Tue, 5 Dec 2017 07:01:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwe.onmicrosoft.com; s=selector1-rwe-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=AhhtV5qLZU9iTIsqIZG9Do94V8hyI3NMSjTZm6a1wIs=; b=HqfdUBtcZbVzw1hfUCX1O43icKqfyQqkaGh0HzN3nX4j6ZjKLvNB+ddm7uonle0xZkIgX5pBOuiAWdt85RUH5YczGRD63isGKFQb9j2kT7O03/U1Xy6C5a8HyiB+ooSanMOrTrR3IGBvU+SaOO8HfAz7yKEwQyJcU86HEzfqLV0= Received: from DB6PR0701MB2615.eurprd07.prod.outlook.com (10.169.214.143) by DB6PR0701MB2616.eurprd07.prod.outlook.com (10.169.214.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.2; Tue, 5 Dec 2017 07:01:44 +0000 Received: from DB6PR0701MB2615.eurprd07.prod.outlook.com ([fe80::f08f:7cea:a1c8:e8c2]) by DB6PR0701MB2615.eurprd07.prod.outlook.com ([fe80::f08f:7cea:a1c8:e8c2%18]) with mapi id 15.20.0302.007; Tue, 5 Dec 2017 07:01:44 +0000 From: To: Subject: AW: Camel Jackson unmarshal behavior and object type Thread-Topic: Camel Jackson unmarshal behavior and object type Thread-Index: AdNtVQ67xJyTSAI/RHevIsl73oVGGQAQbfng Date: Tue, 5 Dec 2017 07:01:44 +0000 Message-ID: References: <99fd3041744349ce86609200fecf91c9@ES12AMSNLNT.srn.sandia.gov> In-Reply-To: <99fd3041744349ce86609200fecf91c9@ES12AMSNLNT.srn.sandia.gov> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=christian.jacob@innogy.com; x-originating-ip: [153.100.131.96] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB6PR0701MB2616;20:At1+MFgBEbIsanw2UMyr0C9JPTpLDnxGQS9VHAeJlvl8s6ClAihMaUc4SS+scjUg/cxi35/FwoOjJwlsUmlLiGN3gsJzO/R6AN0l0/lb1KjUyaOmIpkPS87g3emfe6qoSEl/k7tB2vBf6uxk6jdzZn5gvYYSEL4vHcUP0dnKxdcRY7PxcQWZLMukJKfxmxH+fUV01af7pQQ11n0lOLisvkmfTj9bPo0lYVweRIwkzIcp/s2aGLmPkFSolj4bQ9wV8dcel/XK/3M+GglDkJA66laK/dZ5gLm5hDT7n/5lSaJgrK5a6itHPdo5F66RDtH7nDT9lHbCs2LU4zDwQbd9chUT54SZlOthplskjS78FfI84MN3L3+bpdVmwMwUU2xVNkfKFfIRChcfYXdtzq2JiI3DNAm0vNd1DNyKtfzahBsc9GcV29IiBGLNAjdDXJ0Zts28dh6SiEnlH7X1gCqoXcBp86wZJorrEBr0qn0e5iko1TkIUQsi/7elWX/Zuiyg x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 53724fc4-1418-4b0b-dd9a-08d53bae0b5b x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603286);SRVR:DB6PR0701MB2616; x-ms-traffictypediagnostic: DB6PR0701MB2616: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231022)(6041248)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(6072148)(201708071742011);SRVR:DB6PR0701MB2616;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DB6PR0701MB2616; x-forefront-prvs: 0512CC5201 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(376002)(346002)(366004)(39860400002)(189002)(53754006)(199003)(76176011)(54356011)(7696005)(966005)(2351001)(74316002)(106356001)(305945005)(7736002)(25786009)(14454004)(101416001)(53936002)(2906002)(66066001)(105586002)(3660700001)(478600001)(1730700003)(8676002)(81166006)(81156014)(3280700002)(33656002)(86362001)(3846002)(6116002)(102836003)(8936002)(316002)(6916009)(189998001)(2950100002)(97736004)(55016002)(2900100001)(5640700003)(6506006)(6436002)(99286004)(68736007)(9686003)(6306002)(5660300001)(2501003)(15188555004)(5250100002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB6PR0701MB2616;H:DB6PR0701MB2615.eurprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: innogy.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: innogy.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53724fc4-1418-4b0b-dd9a-08d53bae0b5b X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Dec 2017 07:01:44.2930 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f481d56f-c63d-4d74-8406-d64e74f44395 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0701MB2616 archived-at: Tue, 05 Dec 2017 07:02:03 -0000 Hi Allen, That seems to me to be a matter of streaming, look here: http://camel.apach= e.org/stream.html Regards, Christian -----Urspr=FCngliche Nachricht----- Von: Bagwell, Allen F [mailto:afbagwe@sandia.gov] Gesendet: Dienstag, 5. Dezember 2017 00:12 An: users@camel.apache.org Betreff: Camel Jackson unmarshal behavior and object type I am using camel-jackson to marshal/unmarshal in a blueprint route for use = with a CXF rest client. The rest call expects a JSON string and returns one= in its response. I can do an unmarshal like in the examples provided on the Camel Jackson pa= ge and it works fine, but I'm having trouble with the marshal element. ... ... ... When I attempt to marshal, I have a SendMessage object as my (in) message b= ody. After the marshalling occurs, the logging message prints out ${body} = as an equivalent JSON string. At this point, however, the route hangs and the rest call is never reached. It turns out to fix this, I have to put after the marshal element. Is this expected behavior? I didn't see a need for this in the examples. It occurred to me that the logging element could be calling a toString meth= od under the hood, so what I'm seeing in the log is not really the object t= hat is present. However it seems odd to me that after a call to marshal tha= t the ${body} is not a String since the whole point is to serialize the POJ= O. The unmarshal step definitely converts the return JSON string to a POJO, an= d the log statement following it indicates that ${body} is a ReturnMessage = object. ---------------------------------------------------------------- innogy SE Vorsitzender des Aufsichtsrates: Dr. Werner Brandt Vorstand: Peter Terium (Vorsitzender), Dr. Hans Buenting, Dr. Bernhard Guenther, Martin Herrmann, Hildegard Mueller, Uwe Tigges Sitz der Gesellschaft: Essen, Eingetragen beim Amtsgericht Essen, Handelsregister-Nr. HRB 27091, USt-IdNr. DE304171711