7 Replies Latest reply on Sep 6, 2016 4:48 AM by rigazilla

    Problems with 8.0.0.Final for .net

    David Ortega Newbie

      Hi everyone,

       

      I've been the last days struggling with the new release. I installed it with the msi but when I try to execute it this error occurs. I've also tested version 7 and it works fine. This error is related with https://issues.jboss.org/browse/JDG-273

       

       

       

      System.TypeInitializationException was unhandled
        HResult=-2146233036
        Message=Se produjo una excepción en el inicializador de tipo de 'Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE'.
        Source=hotrodcs
        TypeName=Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE
        StackTrace:
             en Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE.new_ConfigurationBuilder()
             en Infinispan.HotRod.SWIGGen.ConfigurationBuilder..ctor()
             en Infinispan.HotRod.Config.ConfigurationBuilder..ctor()
             en ConsoleApplication1.Program.Main(String[] args) en c:\Users\developer\Documents\Visual Studio 2013\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:línea 17
             en System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
             en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
             en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
             en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
             en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
             en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
             en System.Threading.ThreadHelper.ThreadStart()
        InnerException: System.TypeInitializationException
             HResult=-2146233036
             Message=Se produjo una excepción en el inicializador de tipo de 'SWIGExceptionHelper'.
             Source=hotrodcs
             TypeName=SWIGExceptionHelper
             StackTrace:
                  en Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE.SWIGExceptionHelper..ctor()
                  en Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE..cctor()
             InnerException: System.DllNotFoundException
                  HResult=-2146233052
                  Message=No se puede cargar el archivo DLL 'hotrod_wrap': El sistema operativo no puede ejecutar . (Excepción de HRESULT: 0x800700B6)
                  Source=hotrodcs
                  TypeName=""
                  StackTrace:
                       en Infinispan.HotRod.SWIGGen.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)
                       en Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE.SWIGExceptionHelper..cctor()
                  InnerException: 
      

       

       

       

      Regards David

        • 1. Re: Problems with 8.0.0.Final for .net
          rigazilla Newbie

          Hi David,

           

          the application can't load the dll C++ libraries.

           

          I noticed that you're using VS2013 but the 8.0.0 is built with VS2015:

          have you installed the vc redistributable package for vs2015?

           

          Other checks you can do:

          - is the application built for x64 (not anycpu)?

          - the dll must be on the PATH or in the application run directory. (While I'm using the IDE I usually add the hotrod and hotrod_wrap.dll as item with properties: Action(None) Copy to out...(Copy if newer)

           

          Hope this can help.

           

          Vittorio

          • 2. Re: Problems with 8.0.0.Final for .net
            David Ortega Newbie

            Hi Vittorio,

             

            I've just installed VS2015 community and followed all your steps:

            • VC Redistributable 2015 installed
            • Application for x64
            • Add as reference hotrodcs.dll and GoogleProtobuf
            • Set the PATH adding : C:\Program Files\infinispan-hotrod-dotnet 8.0.0.Final\lib;C:\Program Files\infinispan-hotrod-dotnet 8.0.0.Final\bin
            • Adding manually hotrod.dll and hotrod_wrap.dll -> { "Action": "None", "Copy to out...": "Copy if newer"}

             

            But unfortunately I still having same error.

             

            What else could i do?

             

            David

            • 3. Re: Problems with 8.0.0.Final for .net
              rigazilla Newbie

              David,

               

              I'm trying to guess what's missing...

               

              you probably need the OpenSSL libraries (8.0.0 supports TLS via OpenSSL).

              The OpenSSL guys doesn't release binaries but you can run a test with an unofficial release like the following:

               

              Precompiled OpenSSL - sigmoid

              • 4. Re: Problems with 8.0.0.Final for .net
                David Ortega Newbie

                HI Vittorio,

                 

                I installed openssl with your link and I checked that is properly added to the path. But I still having the same error:

                 

                 

                System.TypeInitializationException was unhandled

                  HResult=-2146233036

                  Message=Se produjo una excepción en el inicializador de tipo de 'Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE'.

                  Source=hotrodcs

                  TypeName=Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE

                  StackTrace:

                       en Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE.new_ConfigurationBuilder()

                       en Infinispan.HotRod.SWIGGen.ConfigurationBuilder..ctor()

                       en Infinispan.HotRod.Config.ConfigurationBuilder..ctor()

                       en ConsoleApplication1.Program.Main(String[] args) en C:\Users\developer\Documents\Visual Studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:línea 17

                       en System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)

                       en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

                       en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

                       en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

                       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

                       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

                       en System.Threading.ThreadHelper.ThreadStart()

                  InnerException:

                       HResult=-2146233036

                       Message=Se produjo una excepción en el inicializador de tipo de 'SWIGExceptionHelper'.

                       Source=hotrodcs

                       TypeName=SWIGExceptionHelper

                       StackTrace:

                            en Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE.SWIGExceptionHelper..ctor()

                            en Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE..cctor()

                       InnerException:

                            HResult=-2146233052

                            Message=No se puede cargar el archivo DLL 'hotrod_wrap': El sistema operativo no puede ejecutar . (Excepción de HRESULT: 0x800700B6)

                            Source=hotrodcs

                            TypeName=""

                            StackTrace:

                                 en Infinispan.HotRod.SWIGGen.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)

                                 en Infinispan.HotRod.SWIGGen.hotrodcsPINVOKE.SWIGExceptionHelper..cctor()

                            InnerException:

                 

                 

                David

                 

                David Ortega

                R&D Manager

                Diners Club Spain S.A.

                Av. de Europa, 19

                28224 Pozuelo de Alarcón

                Madrid - Spain

                Tel.: +34 91 211 43 00 Ext 374

                Fax: +34 91 351 75 83

                dortega@dinersclub.es<mailto:dortega@dinersclub.es>

                www.dinersclub.es<http://www.dinersclub.es/>

                https://pcisfs.dinersclub.es/dropbox/~sV2Ju7

                 

                        DCI_updated_logos_color,http://picsndquotes.com/wp-content/uploads/2015/01/2000px-Twitter_Logo_Mini.svg.png,http://www.studizz.fr/bundles/studizzfront/images/linkedin-logo.png,http://www.youtube.com/yt/brand/media/image/YouTube-logo-full_color.png

                 

                 

                 

                 

                 

                 

                 

                De: rigazilla do-not-reply@jboss.com

                Enviado el: lunes, 05 de septiembre de 2016 11:31

                Para: Ortega Vázquez, David <dortega@DINERSCLUB.ES>

                Asunto: Re: - Problems with 8.0.0.Final for .net

                 

                JBoss Developer <https://developer.jboss.org/?et=watches.email.thread>

                 

                 

                Problems with 8.0.0.Final for .net

                 

                reply from rigazilla<https://developer.jboss.org/people/rigazilla?et=watches.email.thread> in Infinispan - View the full discussion<https://developer.jboss.org/message/962490?et=watches.email.thread#962490>

                • 5. Re: Problems with 8.0.0.Final for .net
                  rigazilla Newbie

                  David,

                   

                  have you uninstalled the 7.0.0 release? Maybe there's a conflict.

                   

                  also try to get more info on what's going on with tools like Dependency Walker or Process Monitor.

                   

                  I'm more confident with Process Monitor, you can run your app, log all the runtime events and search

                  for any NAME/PATH NOT FOUND for the _wrap dll

                  • 6. Re: Problems with 8.0.0.Final for .net
                    David Ortega Newbie

                    HI Vittorio,

                     

                    It is trying to find hotrodcs.dll from GAC. I tried to install it using gacutil but maybe there is something I am missing…

                     

                    14:58:44,4009850        ConsoleApplication1.exe 8424    CreateFile        C:\Windows\Microsoft.NET\Framework64\v4.0\clr.dll      PATH NOT FOUND  Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                    14:58:44,4010385        ConsoleApplication1.exe 8424    CreateFile        C:\Windows\Microsoft.NET\Framework64\v4.0\clr.dll.DLL  PATH NOT FOUND  Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                    14:58:44,4181363        ConsoleApplication1.exe 8424    CreateFile        C:\Windows\Microsoft.Net\assembly\GAC_64\hotrodcs\v4.0_8.0.0.30__2770f93cef4a27c7\hotrodcs.dll        PATH NOT FOUND   Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                    14:58:44,4275826        ConsoleApplication1.exe 8424    CreateFile        C:\Windows\Microsoft.Net\assembly\GAC_64\NLog\v4.0_2.1.0.0__5120e14c03d0593c\NLog.dll PATH NOT FOUND  Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                    14:58:44,4314391        ConsoleApplication1.exe 8424    CreateFile        C:\Windows\Microsoft.Net\assembly\GAC_64\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll     PATH NOT FOUND        Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                    14:58:44,4400287        ConsoleApplication1.exe 8424    CreateFile        C:\Windows\Microsoft.Net\assembly\GAC_64\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll   PATH NOT FOUND   Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                    14:58:44,4659329        ConsoleApplication1.exe 8424    CreateFile        C:\Users\developer\AppData\Roaming\ConsoleApplication1\ConsoleApplication1.exe_Url_r1j54tw5l2kzbwmfq4zf3fxsiohtwuix\1.0.0.0\user.config        PATH NOT FOUND  Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                    14:58:44,4659964        ConsoleApplication1.exe 8424    CreateFile        C:\Users\developer\AppData\Roaming\ConsoleApplication1\ConsoleApplication1.exe_Url_r1j54tw5l2kzbwmfq4zf3fxsiohtwuix\1.0.0.0\user.config        PATH NOT FOUND  Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                    14:58:44,4660718        ConsoleApplication1.exe 8424    CreateFile        C:\Users\developer\AppData\Local\ConsoleApplication1\ConsoleApplication1.exe_Url_r1j54tw5l2kzbwmfq4zf3fxsiohtwuix\1.0.0.0\user.config        PATH NOT FOUND  Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                    14:58:44,4661363        ConsoleApplication1.exe 8424    CreateFile        C:\Users\developer\AppData\Local\ConsoleApplication1\ConsoleApplication1.exe_Url_r1j54tw5l2kzbwmfq4zf3fxsiohtwuix\1.0.0.0\user.config        PATH NOT FOUND  Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                    14:58:44,4937011        ConsoleApplication1.exe 8424    CreateFile        C:\Windows\Microsoft.Net\assembly\GAC_64\mscorlib.resources\v4.0_4.0.0.0_es_b77a5c561934e089\mscorlib.resources.dll        PATH NOT FOUND  Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

                    14:58:44,4988370        ConsoleApplication1.exe 8424    CreateFile      C:\Windows\dll\hotrodcs.pdb    PATH NOT FOUND        Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Random Access, Attributes: N, ShareMode: Read, Delete, AllocationSize: n/a

                    14:58:44,4988880        ConsoleApplication1.exe 8424    CreateFile      C:\Windows\dll\hotrodcs.pdb    PATH NOT FOUND        Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Random Access, Attributes: N, ShareMode: Read, Delete, AllocationSize: n/a

                     

                    David

                     

                    David Ortega

                    Diners Club Spain S.A.

                    Av. de Europa, 19

                    28224 Pozuelo de Alarcón

                    Madrid - Spain

                    Tel.: +34 91 211 43 00 Ext 374

                    Fax: +34 91 351 75 83

                    dortega@dinersclub.es<mailto:dortega@dinersclub.es>

                    www.dinersclub.es<http://www.dinersclub.es/>

                    https://pcisfs.dinersclub.es/dropbox/~sV2Ju7

                     

                            DCI_updated_logos_color,http://picsndquotes.com/wp-content/uploads/2015/01/2000px-Twitter_Logo_Mini.svg.png,http://www.studizz.fr/bundles/studizzfront/images/linkedin-logo.png,http://www.youtube.com/yt/brand/media/image/YouTube-logo-full_color.png

                     

                     

                     

                     

                     

                    De: rigazilla do-not-reply@jboss.com

                    Enviado el: lunes, 05 de septiembre de 2016 13:27

                    Para: Ortega Vázquez, David <dortega@DINERSCLUB.ES>

                    Asunto: Re: - Problems with 8.0.0.Final for .net

                     

                    JBoss Developer <https://developer.jboss.org/?et=watches.email.thread>

                     

                     

                    Problems with 8.0.0.Final for .net

                     

                    reply from rigazilla<https://developer.jboss.org/people/rigazilla?et=watches.email.thread> in Infinispan - View the full discussion<https://developer.jboss.org/message/962494?et=watches.email.thread#962494>

                    • 7. Re: Problems with 8.0.0.Final for .net
                      rigazilla Newbie

                      I also have a NOT FOUND

                       

                      "09:19:43.4453305","ConsoleApplication1.exe","4448","CreateFile","C:\Windows\Microsoft.Net\assembly\GAC_64\hotrodcs\v4.0_8.0.0.30__2770f93cef4a27c7\hotrodcs.dll","PATH NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"

                       

                       

                      but then I have a SUCCESS

                      "09:19:43.4454591","ConsoleApplication1.exe","4448","CreateFile","C:\Windows\Microsoft.NET\assembly\GAC_MSIL\hotrodcs\v4.0_8.0.0.30__2770f93cef4a27c7\hotrodcs.dll","SUCCESS","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened

                       

                      if the hotrodcs assembly is listed in the GAC, the application should find it.

                       

                      Also have a look into the log for events related to the natives libraries: hotrod.dll and hotrod_wrap.dll, they are not handled by the GAC and windows looks for them around in the file system.