" /> Integration Server? - Genesys CTI User Forum

Author Topic: Integration Server?  (Read 4733 times)

dias7777

  • Guest
Integration Server?
« on: January 18, 2007, 04:01:40 PM »
Advertisement
Hi all
we use Genesys Express 7.2 with gplus adpater 7.2 for microsoft crm.
Everything worked but today tha agents cannot log from microsoft crm into genesys (we can through the genesys desktop)
Some of the erros in the event viewer are the following

Thanks in advance

2007-01-18 13:04:16,725 4964 ERROR [Platform.DataAccess.AilConnector] (null) Exception in createServiceFactory(); during Connect();
com.genesyslab.ail.propprotocol.InitException: Error occured while initializing ServiceFactory ---> System.Runtime.InteropServices.COMException (0x80004005): Unspecified error
  at com.genesyslab.ail.propprotocol.ICorThreadPool.SetMaxThreads(UInt32 MaxWorkerThreads, UInt32 MaxIOCompletionThreads)
  at com.genesyslab.ail.propprotocol.impl.ServiceFactory.overrideMaxThreads()
  at com.genesyslab.ail.propprotocol.impl.ServiceFactory.GetInstance()
  --- End of inner exception stack trace ---
  at com.genesyslab.ail.propprotocol.impl.ServiceFactory.GetInstance()
  at com.genesyslab.ail.propprotocol.PropFactory.InitFactory(ServiceFactory factory, Hashtable context, IServiceFactoryListener listener, Boolean asyncMode)
  at com.genesyslab.ail.ServiceFactory.internalCreateServiceFactory(Type serviceFactoryType, Hashtable context, IServiceFactoryListener listener, Boolean asyncMode)
  at com.genesyslab.ail.ServiceFactory.createServiceFactory(Type serviceFactoryType, Hashtable context)
  at Genesyslab.Components.Connectors.Ail.DefaultAilConnector.ConnectToServer(String host, String port)


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


2007-01-18 13:04:16,740 4964 ERROR [Platform.DataAccess.AilConnector] (null) Exception in createServiceFactory(); during Connect();
com.genesyslab.ail.propprotocol.InitException: Error occured while initializing ServiceFactory ---> System.Runtime.InteropServices.COMException (0x80004005): Unspecified error
  at com.genesyslab.ail.propprotocol.ICorThreadPool.SetMaxThreads(UInt32 MaxWorkerThreads, UInt32 MaxIOCompletionThreads)
  at com.genesyslab.ail.propprotocol.impl.ServiceFactory.overrideMaxThreads()
  at com.genesyslab.ail.propprotocol.impl.ServiceFactory.GetInstance()
  --- End of inner exception stack trace ---
  at com.genesyslab.ail.propprotocol.impl.ServiceFactory.GetInstance()
  at com.genesyslab.ail.propprotocol.PropFactory.InitFactory(ServiceFactory factory, Hashtable context, IServiceFactoryListener listener, Boolean asyncMode)
  at com.genesyslab.ail.ServiceFactory.internalCreateServiceFactory(Type serviceFactoryType, Hashtable context, IServiceFactoryListener listener, Boolean asyncMode)
  at com.genesyslab.ail.ServiceFactory.createServiceFactory(Type serviceFactoryType, Hashtable context)
  at Genesyslab.Components.Connectors.Ail.DefaultAilConnector.ConnectToServer(String host, String port)


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

2007-01-18 13:04:16,740 4964 ERROR [Platform.DataAccess.AilConnector] (null) DefaultAilConnector.Connect();
System.Exception: Unable to create DesktopServer factory ---> com.genesyslab.ail.propprotocol.InitException: Error occured while initializing ServiceFactory ---> System.Runtime.InteropServices.COMException (0x80004005): Unspecified error
  at com.genesyslab.ail.propprotocol.ICorThreadPool.SetMaxThreads(UInt32 MaxWorkerThreads, UInt32 MaxIOCompletionThreads)
  at com.genesyslab.ail.propprotocol.impl.ServiceFactory.overrideMaxThreads()
  at com.genesyslab.ail.propprotocol.impl.ServiceFactory.GetInstance()
  --- End of inner exception stack trace ---
  at com.genesyslab.ail.propprotocol.impl.ServiceFactory.GetInstance()
  at com.genesyslab.ail.propprotocol.PropFactory.InitFactory(ServiceFactory factory, Hashtable context, IServiceFactoryListener listener, Boolean asyncMode)
  at com.genesyslab.ail.ServiceFactory.internalCreateServiceFactory(Type serviceFactoryType, Hashtable context, IServiceFactoryListener listener, Boolean asyncMode)
  at com.genesyslab.ail.ServiceFactory.createServiceFactory(Type serviceFactoryType, Hashtable context)
  at Genesyslab.Components.Connectors.Ail.DefaultAilConnector.ConnectToServer(String host, String port)
  --- End of inner exception stack trace ---
  at Genesyslab.Components.Connectors.Ail.DefaultAilConnector.ConnectToServer(String host, String port)
  at Genesyslab.Components.Connectors.Ail.DefaultAilConnector.Connect()


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
  • Karma: 18
Re: Integration Server?
« Reply #1 on: January 22, 2007, 09:03:58 AM »
  • Best Answer
  • Dias,

    I am only starting with Integration Server right now, so please take my comments with a bit of salt ...

    I was looking through your log and noticed this:
    [size=8pt]
    2007-01-18 13:04:16,725 4964 ERROR [Platform.DataAccess.AilConnector] (null) Exception in createServiceFactory(); during Connect();
    com.genesyslab.ail.propprotocol.InitException: Error occured while initializing ServiceFactory --->
    [color=red]
    System.Runtime.InteropServices.COMException (0x80004005): Unspecified error
      at com.genesyslab.ail.propprotocol.ICorThreadPool.SetMaxThreads(UInt32 MaxWorkerThreads, UInt32 MaxIOCompletionThreads)
      at com.genesyslab.ail.propprotocol.impl.ServiceFactory.overrideMaxThreads()
      at com.genesyslab.ail.propprotocol.impl.ServiceFactory.GetInstance()
    [/color]
    [/size]


    According to Microsoft, SetMaxThreads (http://msdn2.microsoft.com/en-us/library/system.threading.threadpool.setmaxthreads.aspx )is used to set number of threads that can be used at the same time.

    My guess is that you have reached the maximum number of simulatneous processes your Windows can execute at the same time.
    Yes, I know it is hard to believe, but the number is usually around 80 or so, if I am mistaken.
    To check, reboot your machine and see if it works. If it did, then chances are I am write. But, do not despair, there is a way to raise the maximum number of threads that your PC can handle - this is done through registry. In fact about four months ago, there was a similar problem posted on this forum and a really nice explanation on how to fix it.

    I will try to dig it up for you.

    But please take it with a bit of skepticism, because, like I said, I am newbie with this particular product.

    Vic

    http://msdn2.microsoft.com/en-us/library/system.threading.threadpool.getmaxthreads.aspx

    Offline victor

    • Administrator
    • Hero Member
    • *****
    • Posts: 1419
    • Karma: 18
    Re: Integration Server?
    « Reply #2 on: January 22, 2007, 09:19:14 AM »
  • Best Answer
  • To follow up:

    here is the link -

    http://www.sggu.com/smf/index.php/topic,1761.0.html

    which discusses it.

    I hope it will fix the problem.

    But just in case, have you checked release notes and support web at Genesys? Maybe they have something there!

    Also, send them a ticket, just to be on a safe side! This way, even if I am wrong, you will still have Genesys reply. And if the reply is the same, heck, all of us will benefit from it  ;D

    Please tell me if it fixed your problem!

    Vic


    dias7777

    • Guest
    Re: Integration Server?
    « Reply #3 on: January 22, 2007, 09:57:43 AM »
  • Best Answer
  • Victor thanks a lot for your replies.

    The company that does the customization of ms crm decided to optimise the performance of the crm following the instructions of this white paper:Optimizing the Performance of Microsoft Dynamics CRM 3.0 White Paper(http://go.microsoft.com/fwlink/?LinkId=80916). What i did on Friday to reproduce the problem was to start adding things in machine.config as explained in the white paper. When i added the line minWorkerThreads="50"(no other achanges in the machine.config) in the machine.config the errors that i posted in the event viewer appears. So it has to do with the threads and thread pooling but i think it is not because it reached an upper limit. If i do all the changes in the machine.config file that microsoft suggests but deleting minWorkerThreads the whole crm application can not even start.

    I am going to have a closer look at the links that you have sent me.

    In addition. what i aslo want to say is that if i deploy the ms crm adapter in the same application pooling with ms crm (in IIS)which is the default and i change the number of "maximum number of worker processes" strange things happen in genesys. Mainly the application sometimes work and sometimes does not. Sometimes in the form that appears an answer button when i a new calls arrives sometimes that answer button is not there!What i did is create a new application pooling for the adapter and always have the maximum number of worker proecesses to 1. Maybe these problems are related.

    Thanks again and i will keep you posted if i have any replies from genesys.