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

.NET: Invalid cast to CacheEvent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.3
    • 2.5
    • platforms

    Description

      Subscribed to all events

      config.IncludedEventTypes = EventType.All;
      ignite = Ignition.Start(config);
      var events = ignite.GetEvents();
      var listener = new CacheEventListener();
      events.LocalListen(listener, EventType.All);

      and got exceptions:

      [23:56:22 ERR] Failure in Java callback
      System.InvalidCastException: Unable to cast object of type 'Apache.Ignite.Core.Events.CacheQueryExecutedEvent' to type 'Apache.Ignite.Core.Events.CacheEvent'.
      at Apache.Ignite.Core.Events.EventReader.Read[T](BinaryReader reader)
      at Apache.Ignite.Core.Impl.Events.Events.InvokeLocalListener[T](IBinaryStream stream, IEventListener`1 listener)
      at Apache.Ignite.Core.Impl.Events.Events.LocalHandledEventFilter.Invoke(IBinaryStream stream)
      at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.EventFilterApply(Int64 ptr, Int64 memPtr, Int64 unused, Void* arg)
      at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.InLongLongLongObjectOutLong(Void* target, Int32 type, Int64 val1, Int64 val2, Int64 val3, Void* arg)
      [23:56:22 ERR] Failure in Java callback
      System.InvalidCastException: Unable to cast object of type 'Apache.Ignite.Core.Events.CacheQueryExecutedEvent' to type 'Apache.Ignite.Core.Events.CacheEvent'.
      at Apache.Ignite.Core.Events.EventReader.Read[T](BinaryReader reader)
      at Apache.Ignite.Core.Impl.Events.Events.InvokeLocalListener[T](IBinaryStream stream, IEventListener`1 listener)
      at Apache.Ignite.Core.Impl.Events.Events.LocalHandledEventFilter.Invoke(IBinaryStream stream)
      at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.EventFilterApply(Int64 ptr, Int64 memPtr, Int64 unused, Void* arg)
      at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.InLongLongLongObjectOutLong(Void* target, Int32 type, Int64 val1, Int64 val2, Int64 val3, Void* arg)
      [23:56:22 ERR] Failure in Java callback
      System.InvalidCastException: Unable to cast object of type 'Apache.Ignite.Core.Events.DiscoveryEvent' to type 'Apache.Ignite.Core.Events.CacheEvent'.
      at Apache.Ignite.Core.Events.EventReader.Read[T](BinaryReader reader)
      at Apache.Ignite.Core.Impl.Events.Events.InvokeLocalListener[T](IBinaryStream stream, IEventListener`1 listener)
      at Apache.Ignite.Core.Impl.Events.Events.LocalHandledEventFilter.Invoke(IBinaryStream stream)
      at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.EventFilterApply(Int64 ptr, Int64 memPtr, Int64 unused, Void* arg)
      at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.InLongLongLongObjectOutLong(Void* target, Int32 type, Int64 val1, Int64 val2, Int64 val3, Void* arg)
      [23:56:22 ERR] Unexpected exception in listener notification for event: CacheQueryExecutedEvent [qryType=SCAN, cacheName=ignite-sys-cache, clsName=null, clause=null, scanQryFilter=ServiceAssignmentsPredicate [], contQryFilter=null, args=null, subjId=782e4d31-f4c5-4bea-a9fb-0f2e4d6b602f, taskName=null, nodeId8=782e4d31, msg=Scan query executed., type=CACHE_QUERY_EXECUTED, tstamp=1523393782062]
      [23:56:23 ERR] Unexpected exception in listener notification for event: CacheQueryExecutedEvent [qryType=CONTINUOUS, cacheName=Authorization, clsName=null, clause=null, scanQryFilter=null, contQryFilter=o.a.i.i.processors.platform.cache.query.PlatformContinuousQueryImpl@1b84f475, args=null, subjId=782e4d31-f4c5-4bea-a9fb-0f2e4d6b602f, taskName=null, nodeId8=782e4d31, msg=Continuous query executed., type=CACHE_QUERY_EXECUTED, tstamp=1523393782095]
      [23:56:23 ERR] Unexpected exception in listener notification for event: DiscoveryEvent [evtNode=TcpDiscoveryNode [id=0ee0988a-8364-4560-8215-e1dbe673bcd5, addrs=[0:0:0:0:0:0:0:1, 10.77.6.203, 127.0.0.1, 192.168.2.21], sockAddrs=[WA/192.168.2.21:47500, /10.77.6.203:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1523393780217, loc=false, ver=2.3.0#20171028-sha1:8add7fd5, isClient=false], topVer=3, nodeId8=782e4d31, msg=Metrics were updated: TcpDiscoveryNode [id=0ee0988a-8364-4560-8215-e1dbe673bcd5, addrs=[0:0:0:0:0:0:0:1, 10.77.6.203, 127.0.0.1, 192.168.2.21], sockAddrs=[WA/192.168.2.21:47500, /10.77.6.203:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1523393780217, loc=false, ver=2.3.0#20171028-sha1:8add7fd5, isClient=false], type=NODE_METRICS_UPDATED, tstamp=1523393782728]

      Attachments

        Activity

          People

            ptupitsyn Pavel Tupitsyn
            Alew Aleksandr Tceluiko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: