PureEngage On-Premises

 View Only

Sign Up

  • 1.  Is it possible to use AIL in java applet

    Posted 10-31-2015 10:28
    I developed my applet to interract with CRM and Genesys. I signed jar of my applet and AIL jars (mail.jar,kvlists.jar,kvlistbinding.jar,commons.jar,connection.jar,protocol.jar,configurationprotocol.jar,contactsprotocol.jar,openmediaprotocol.jar,reportingprotocol.jar,voiceprotocol.jar,webmediaprotocol.jar,messagebrokerappblock.jar,warmstandbyappblock.jar,comappblock.jar,apptemplate.jar,AIL.jar,flexlm.jar,activation.jar,ucsapi.jar,kv65_adapter.jar,netty.jar,system.jar,log4j.jar) 
    Unfortunately when I try to connect to Genesys I get exception:
    28 10 16:07:51:589 [             Outer-1] WARN     Ail.Cfgsdk.Driver  While connecting,

    java.lang.ExceptionInInitializerError

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

    at java.lang.reflect.Constructor.newInstance(Unknown Source)

    at java.lang.Class.newInstance(Unknown Source)

    at sun.security.jca.ProviderConfig$2.run(Unknown Source)

    at sun.security.jca.ProviderConfig$2.run(Unknown Source)

    at java.security.AccessController.doPrivileged(Native Method)

    at sun.security.jca.ProviderConfig.doLoadProvider(Unknown Source)

    at sun.security.jca.ProviderConfig.getProvider(Unknown Source)

    at sun.security.jca.ProviderList.getProvider(Unknown Source)

    at sun.security.jca.ProviderList.getService(Unknown Source)

    at sun.security.jca.GetInstance.getInstance(Unknown Source)

    at javax.net.ssl.SSLContext.getInstance(Unknown Source)

    at com.genesyslab.platform.commons.connection.tls.SSLContextHelper.createSSLContext(SSLContextHelper.java:46)

    at com.genesyslab.platform.commons.connection.tls.SSLContextHelper.createSSLContext(SSLContextHelper.java:63)

    at com.genesyslab.ail.driver.cfgsdk.CfgsdkDriver.reqConnect(CfgsdkDriver.java:320)

    at com.genesyslab.ail.driver.cfgsdk.CfgsdkDriver.execute(CfgsdkDriver.java:130)

    at com.genesyslab.ail.component.framework.Component.forward(Component.java:59)

    at com.genesyslab.ail.component.framework.PooledQueuedComponent$1.run(PooledQueuedComponent.java:35)

    at com.genesyslab.ail.component.util.QPExecutor$4.run(QPExecutor.java:168)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

    at java.lang.Thread.run(Unknown Source)

    Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "loadLibrary.sunec")

    at java.security.AccessControlContext.checkPermission(Unknown Source)

    at java.security.AccessController.checkPermission(Unknown Source)

    at java.lang.SecurityManager.checkPermission(Unknown Source)

    at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(Unknown Source)

    at java.lang.SecurityManager.checkLink(Unknown Source)

    at java.lang.Runtime.loadLibrary0(Unknown Source)

    at java.lang.System.loadLibrary(Unknown Source)

    at sun.security.ec.SunEC$1.run(SunEC.java:60)

    at sun.security.ec.SunEC$1.run(SunEC.java:58)

    at java.security.AccessController.doPrivileged(Native Method)

    at sun.security.ec.SunEC.<clinit>(SunEC.java:58)

    How it is possible thet all-permission applet could catch this type of error???

    Is there recommended and official how-to to develop AIL-applet?


  • 2.  RE: Is it possible to use AIL in java applet

    Posted 11-05-2015 16:10
    Pavel,

    Given the errors and exceptions in the logs you are seeing, I would recommend you open a case with Customer Care.  Please provide the logs with the errors and all the detail you have on the issue.   

    Thanks,
    Roger Farr
    Genesys Customer Care
     


  • 3.  RE: Is it possible to use AIL in java applet

    Posted 12-25-2015 11:28
    Hi Pavel,

    I am not completely sure, but i think similar kind of issue we also faced when we were developing Applet for one of our client. 
    Probably the reason at that time we found that we did not included all required .jar (provided by Genesys). We missed some of dependent .jar file to mention at the time of Applet loading and because of this we were getting similar kind of error.

    Include all possible .jar in your webpage while loading Applet. It might work for you also.

    Thanks,
    Rohit Gupta