ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-4865) Non-informative error message on using GridClientOptimizedMarshaller with unknown task classes
Date Mon, 27 Mar 2017 10:18:42 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15943007#comment-15943007

ASF GitHub Bot commented on IGNITE-4865:

GitHub user akuramshingg opened a pull request:


    IGNITE-4865 Verbose logging, informative messages


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gridgain/apache-ignite ignite-4865

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1675
commit c66889a45ae2b38d03fd06e3f437b551bd7906ab
Author: Alexandr Kuramshin <akuramshin@gridgain.com>
Date:   2017-03-27T10:16:22Z

    IGNITE-4865 Verbose logging, informative messages


> Non-informative error message on using GridClientOptimizedMarshaller with unknown task
> ----------------------------------------------------------------------------------------------
>                 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
> {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:
> {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

View raw message