Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-273

Unable to run any tests for .NET client

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • JDG 7.0.0 ER5
    • JDG 7.0.0 ER4
    • HotRod C# client
    • None

    Description

      When running native tests with ER4 client, getting this:

      Errors and Failures:
      1) SetUp Error : Infinispan.HotRod.Tests.ConfigurationBuilderTest.AddServersTest
         SetUp : System.TypeInitializationException : The type initializer for 'Infinispan.HotRod.SWIG64.hotrodcsPINVOKE' threw an exception.
        ----> System.TypeInitializationException : The type initializer for 'SWIGExceptionHelper' threw an exception.
        ----> System.BadImageFormatException : An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
         at Infinispan.HotRod.SWIG64.hotrodcsPINVOKE.new_ConfigurationBuilder()
         at Infinispan.HotRod.SWIG64.ConfigurationBuilder..ctor()
         at Infinispan.HotRod.Config.ConfigurationBuilder..ctor()
         at Infinispan.HotRod.Tests.ConfigurationBuilderTest.Before() in c:\workdir\test_dir\src\test\cs\Infinispan\HotRod\ConfigurationBuilderTest.cs:line 15
      --TypeInitializationException
         at Infinispan.HotRod.SWIG64.hotrodcsPINVOKE.SWIGExceptionHelper..ctor()
         at Infinispan.HotRod.SWIG64.hotrodcsPINVOKE..cctor()
      --BadImageFormatException
         at Infinispan.HotRod.SWIG64.hotrodcsPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_hotrodcs(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)
         at Infinispan.HotRod.SWIG64.hotrodcsPINVOKE.SWIGExceptionHelper..cctor()
      

      When running Java tests with the client, getting this:

       FAILED: testBooleanConstructor
      java.lang.NoClassDefFoundError: Could not initialize class Infinispan.HotRod.SWIG64.hotrodcsPINVOKE
              at cli.Infinispan.HotRod.SWIG64.hotrodcsPINVOKE.new_RemoteCacheManager__SWIG_0(Unknown Source)
              at cli.Infinispan.HotRod.SWIG64.RemoteCacheManager.<init>(Unknown Source)
              at cli.Infinispan.HotRod.RemoteCacheManager.<init>(Unknown Source)
              at cli.Infinispan.HotRod.Wrappers.RemoteCacheManager.<init>(RemoteCacheManager.cs:48)
              at org.infinispan.client.hotrod.RemoteCacheManager.<init>(RemoteCacheManager.java:45)
              at org.infinispan.client.hotrod.RemoteCacheManagerTest.testBooleanConstructor(RemoteCacheManagerTest.java:60)
              at org.infinispan.client.hotrod.JavaClientTests.main(JavaClientTests.java:96)
      ... Removed 18 stack frames
      

      Attachments

        Activity

          People

            vrigamon@redhat.com Vittorio Rigamonti
            mgencur Martin Gencur
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: