Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-4865

Non-informative error message on using GridClientOptimizedMarshaller with unknown task classes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0
    • None
    • clients
    • None

    Description

      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.

      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]
      

      There is two problems:

      • Actual problem was hidden
        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)
        
      • Even reading the cause we don't understand what is wrong

      What to do:

      • Log stacktrace every time
      • Throw UnsupportedOperationException with informative message.

      Attachments

        Issue Links

          Activity

            People

              ein Alexandr Kuramshin
              ein Alexandr Kuramshin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: