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 B944F200C44 for ; Mon, 27 Mar 2017 12:04:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B7F23160B85; Mon, 27 Mar 2017 10:04:45 +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 0BD70160B5D for ; Mon, 27 Mar 2017 12:04:44 +0200 (CEST) Received: (qmail 88614 invoked by uid 500); 27 Mar 2017 10:04:44 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 88603 invoked by uid 99); 27 Mar 2017 10:04:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2017 10:04:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C3BDBC0370 for ; Mon, 27 Mar 2017 10:04:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id YDU5Iz4oxaeb for ; Mon, 27 Mar 2017 10:04:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A2C915FB48 for ; Mon, 27 Mar 2017 10:04:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 05799E0596 for ; Mon, 27 Mar 2017 10:04:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A8EF024066 for ; Mon, 27 Mar 2017 10:04:41 +0000 (UTC) Date: Mon, 27 Mar 2017 10:04:41 +0000 (UTC) From: "Alexandr Kuramshin (JIRA)" To: dev@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-4865) Non-informative error message on using GridClientOptimizedMarshaller with unknown task classes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 27 Mar 2017 10:04:45 -0000 Alexandr Kuramshin created IGNITE-4865: ------------------------------------------ Summary: Non-informative error message on using GridClientOptimizedMarshaller with unknown task classes Key: IGNITE-4865 URL: https://issues.apache.org/jira/browse/IGNITE-4865 Project: Ignite Issue Type: Improvement Components: rest Affects Versions: 2.0 Reporter: Alexandr Kuramshin Assignee: Alexandr Kuramshin Upon {{GridClientCompute.execute()}} I get non-informative error if a task class is not present in {{classnames.properties}}. It occurs when {{GridClient}} was configured to use {{GridClientOptimizedMarshaller}}. {noformat} Closing NIO session because of unhandled exception [cls=class o.a.i.i.util.nio.GridNioException, msg=class o.a.i.IgniteCheckedException: Failed to deserialize object with given class loader: null] {noformat} There is two problems: * Actual problem was hidden {noformat} Caused by: java.lang.UnsupportedOperationException at org.apache.ignite.internal.client.marshaller.optimized.GridClientOptimizedMarshaller$ClientMarshallerContext.className(GridClientOptimizedMarshaller.java:137) at org.apache.ignite.internal.MarshallerContextAdapter.getClass(MarshallerContextAdapter.java:174) at org.apache.ignite.marshaller.optimized.OptimizedMarshallerUtils.classDescriptor(OptimizedMarshallerUtils.java:266) at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:318) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:367) {noformat} * Even reading the cause we don't understand what is wrong What to do: * Log stacktrace every time * Throw UnsupportedOperationException with informative message. -- This message was sent by Atlassian JIRA (v6.3.15#6346)