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

Structured Exception information is lost when Ignite .NET client calls Ignite Java service

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.6
    • None
    • platforms
    • None
    • Docs Required

    Description

      Suppose an Ignite service in Java throws new ModelVerificationException(“ERROR!”) to signal about a failure.

      An Ignite.NET client of such a Java service would receive this exception:

      Apache.Ignite.Core.Services.ServiceInvocationException

      • Message: Proxy method invocation failed with an exception. Examine InnerException for details.
      • InnerException: Apache.Ignite.Core.Common.IgniteException

      o   Message: ERROR!

      o   InnerException: Apache.Ignite.Core.Common.JavaException

      • JavaClassName: class org.apache.ignite.IgniteCheckedException
      • JavaMessage: ERROR!
      • InnerException: null
      • Message: class org.apache.ignite.IgniteCheckedException: ERROR!
                       at org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7332)
                       at org.apache.ignite.internal.processors.platform.services.PlatformServices$ServiceProxyHolder.invoke(PlatformServices.java:589)
                       at org.apache.ignite.internal.processors.platform.services.PlatformServices.processInObjectStreamOutObjectStream(PlatformServices.java:289)
                       at org.apache.ignite.internal.processors.platform.PlatformTargetProxyImpl.inObjectStreamOutObjectStream(PlatformTargetProxyImpl.java:172)
        Caused by: ModelVerificationException: ERROR!
                       at ... 

      Ignite service wraps the custom ModelVerificationException in a IgniteCheckedException, which we get information for on the client side. There is no structured information about the custom exception in the client.

      We need to have information about the custom exception on the client.

      Attachments

        Activity

          People

            kukushal Alexey Kukushkin
            kukushal Alexey Kukushkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: