java.lang.Throwable: java.security.AccessControlException: Direct Sql connection not allowed for the specified URL.

Oracle Community | 680bca77-9a05-4197-9701-25aeb0331397 | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Unable to connect to cloud database from cloud java app

    Oracle Community | 3 years ago | 680bca77-9a05-4197-9701-25aeb0331397
    java.lang.Throwable: java.security.AccessControlException: Direct Sql connection not allowed for the specified URL.

    Root Cause Analysis

    1. java.lang.Throwable

      java.security.AccessControlException: Direct Sql connection not allowed for the specified URL.

      at oracle.cloud.jcs.scanning.impl.extension.db.DriverConnectValidator.invoke()
    2. oracle.cloud.jcs
      SecurityManager_EVALZ91813vteok.__fwd__agkqNtHXdhR9avJCTEmp___uQreuk__M8f_POLICY_ID_129
      1. oracle.cloud.jcs.scanning.impl.extension.db.DriverConnectValidator.invoke(DriverConnectValidator.java:37)
      2. oracle.cloud.jcs.security.SecurityManager_EVALZ91813vteok.__fwd__agkqNtHXdhR9avJCTEmp___uQreuk__M8f_POLICY_ID_129(SecurityManager_EVALZ91813vteok.java:1012)
      2 frames
    3. cloudsdk
      dao.getDBConnection
      1. cloudsdk.dao.getDBConnection(dao.java:21)
      1 frame
    4. jsp_servlet
      __index._jspService
      1. jsp_servlet.__index._jspService(__index.java:80)
      1 frame
    5. weblogic.servlet.jsp
      JspBase.service
      1. weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
      1 frame
    6. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      2. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      3. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
      4. weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
      5. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:327)
      6. weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      7. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      7 frames
    7. weblogic.servlet.security
      WebGateRedirectFilter.doFilter
      1. weblogic.servlet.security.internal.WebGateRedirectFilter.doFilter(WebGateRedirectFilter.java:177)
      1 frame
    8. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      1 frame
    9. oracle.security.jps
      JpsAbsFilter$1.run
      1. oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      1 frame
    10. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    11. oracle.security.jps
      JpsFilter.doFilter
      1. oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      2. oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      3. oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      4. oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      5. oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      5 frames
    12. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      1 frame
    13. oracle.security.wls
      SSOSessionSynchronizationFilter.doFilter
      1. oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:292)
      1 frame
    14. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      1 frame
    15. oracle.dms.servlet
      DMSServletFilter.doFilter
      1. oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
      1 frame
    16. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      2. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3731)
      3. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3697)
      3 frames
    17. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    18. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      1 frame
    19. Atmosphere weblogic
      ServletRequestImpl.run
      1. weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2274)
      2. weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2180)
      3. weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
      3 frames
    20. weblogic.work
      ExecuteThread.run
      1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      2. weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
      2 frames