Getting java.security.AccessControlException: Access denied when runnind HTTPs eWay (Doc ID 1632578.1)

Last updated on FEBRUARY 21, 2017

Applies to:

Oracle Java CAPS - Version 5.1.3 and later
Information in this document applies to any platform.
Checked for Relevance on 18-Sept-2015

Symptoms

ERROR
-----------------------

RAR5038:Unexpected exception while creating resource
javax.resource.ResourceException: Failed to initialize the EwayConnection instance of type com.stc.connector.httpadapter.eway.HTTPEwayConnection; Exception : ResourceException ( com.stc.connector.framework.jca.ResourceException: Failed to establish an HTTP connectionjava.lang.Exception: Failed to add the JSSE provider com.sun.net.ssl.internal.ssl.Provider; Exception : java.lang.Exception: Failed to add provider com.sun.net.ssl.internal.ssl.Provider; Exception : java.security.AccessControlException: Access denied (java.security.SecurityPermission insertProvider.SunJSSE)), []
at com.stc.connector.framework.jca.system.STCManagedConnection.<init>(STCManagedConnection.java:149)
at com.stc.connector.framework.jca.system.STCManagedConnectionFactory.createManagedConnectionInternal(STCManagedConnectionFactory.java:252)
at com.stc.connector.framework.jca.system.STCManagedConnectionFactory.createManagedConnection(STCManagedConnectionFactory.java:302)
...

Caused by: ResourceException ( com.stc.connector.framework.jca.ResourceException: Failed to establish an HTTP connectionjava.lang.Exception: Failed to add the JSSE provider com.sun.net.ssl.internal.ssl.Provider; Exception : java.lang.Exception: Failed to add provider com.sun.net.ssl.internal.ssl.Provider; Exception : java.security.AccessControlException: Access denied (java.security.SecurityPermission insertProvider.SunJSSE)), []
at com.stc.connector.httpadapter.eway.HTTPEwayConnection.initialize(HTTPEwayConnection.java:581)
at com.stc.connector.framework.jca.system.STCManagedConnection.<init>(STCManagedConnection.java:142)
... 45 more
Caused by: java.lang.Exception: Failed to add the JSSE provider com.sun.net.ssl.internal.ssl.Provider; Exception : java.lang.Exception: Failed to add provider com.sun.net.ssl.internal.ssl.Provider; Exception : java.security.AccessControlException: Access denied (java.security.SecurityPermission insertProvider.SunJSSE)
at com.stc.connector.httpadapter.eway.HTTPEwayConnection.initialize(HTTPEwayConnection.java:425)
... 46 more

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms