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 C1F45200D0E for ; Tue, 12 Sep 2017 08:16:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C081C1609C5; Tue, 12 Sep 2017 06:16:31 +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 126101609C4 for ; Tue, 12 Sep 2017 08:16:30 +0200 (CEST) Received: (qmail 851 invoked by uid 500); 12 Sep 2017 06:16:29 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 840 invoked by uid 99); 12 Sep 2017 06:16:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2017 06:16:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0F5FB18B620 for ; Tue, 12 Sep 2017 06:16:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id LIQTGCCS1pJ0 for ; Tue, 12 Sep 2017 06:16:28 +0000 (UTC) Received: from n4.nabble.com (n4.nabble.com [162.253.133.72]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E60BE5F1B3 for ; Tue, 12 Sep 2017 06:16:27 +0000 (UTC) Received: from mben.nabble.com (localhost [127.0.0.1]) by n4.nabble.com (Postfix) with ESMTP id A9A05143690FE for ; Mon, 11 Sep 2017 23:16:25 -0700 (MST) Date: Mon, 11 Sep 2017 23:16:25 -0700 (MST) From: khandelwalanuj To: users@activemq.apache.org Message-ID: <1505196985634-0.post@n4.nabble.com> Subject: ActiveMQv5.14 ObjectMessage Issues MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Tue, 12 Sep 2017 06:16:31 -0000 Hi, Currently ActiveMQ broker is using ActiveMQ v5.14 while clients are still running on v5.11. In the client migration process, we are facing below problem with ObjectMessages: The cases when producer is migrated to 5.14 but consumer is still using the older version(5.11) are failing and throwing the security exception provided below. Details about the failure : [Upgraded ]Broker is running with v5.14 with -Dorg.apache.activemq.SERIALIZABLE_PACKAGES=* [Upgraded ]producer running with v5.14 [Not Upgraded]consumer running with v5.11 and does not specified any trusted package property. Can someone check why this case is not working as ActiveMQ is supposed to decouple producer and consumers but here migration is stuck unless both producer and consumers are migrated to the same version at the same time. Caused by: java.lang.ClassNotFoundException: Forbidden class producer.test.SampleObjectMessage! This class is not trusted to be serialized as ObjectMessage payload. Please take a look at http://activemq.apache.org/objectmessage.html for more information on how to configure trusted classes. at org.apache.activemq.util.ClassLoadingAwareObjectInputStream.checkSecurity(ClassLoadingAwareObjectInputStream.java:112) at org.apache.activemq.util.ClassLoadingAwareObjectInputStream.resolveClass(ClassLoadingAwareObjectInputStream.java:57) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) at org.apache.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:206) -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html