ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-4865) Non-informative error message on using GridClientOptimizedMarshaller with unknown task classes
Date Tue, 23 May 2017 13:10:04 GMT

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

Vladimir Ozerov commented on IGNITE-4865:
-----------------------------------------

[~ein], could you please merge PR with master and make sure that the fix is still relevant?
I see that methods where you changed error message have gone in current master.

> 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: clients
>    Affects Versions: 2.0
>            Reporter: Alexandr Kuramshin
>            Assignee: Vladimir Ozerov
>             Fix For: 2.1
>
>
> 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)

Mime
View raw message