java.lang.InternalError: could not create DeployURLConnection at com.sun.deploy.net.protocol.jar.Handler.openConnection(jdk.deploy@9-ea/Handler.java:26) at java.net.URL.openConnection(java.base@9-ea/URL.java:1049) at com.sun.deploy.util.URLUtil.getConnectPermission(jdk.deploy@9-ea/URLUtil.java:946) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.getPermission(jdk.plugin@9-ea/AWTAppletAdapter.java:1039) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.checkURL(jdk.plugin@9-ea/AWTAppletAdapter.java:1026) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.getImage(jdk.plugin@9-ea/AWTAppletAdapter.java:1098)

JDK Bug System | Crystal Yang | 9 months 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

    SQE has a test to cover https://jbs.oracle.com/bugs/browse/JDK-8017186. The test used to return "SecurityException". But with jre9-b129, it returns different error "java.lang.InternalError: could not create DeployURLConnection ". env: win7/x86/IE11/jre9-b129 Steps to reproduce: 1. Add "http://sqeweb.us.oracle.com" to ESL and enable java console and trace in JCP 2. Load app that tries to access resource in local with getImage() method and jar://url from browser: http://sqeweb.us.oracle.com/net/scanas415/export/deployment/crystal/DO_NOT_REMOVE_ME/jrebug/pluginsecurity/html/testJarUrl.html 3. An unsigned security warning will show up. Accept it 4. If "do test results is false" shows up in browser and the following error shows up in java console, the bug is reproduced: java.lang.InternalError: could not create DeployURLConnection at com.sun.deploy.net.protocol.jar.Handler.openConnection(jdk.deploy@9-ea/Handler.java:26) at java.net.URL.openConnection(java.base@9-ea/URL.java:1049) at com.sun.deploy.util.URLUtil.getConnectPermission(jdk.deploy@9-ea/URLUtil.java:946) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.getPermission(jdk.plugin@9-ea/AWTAppletAdapter.java:1039) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.checkURL(jdk.plugin@9-ea/AWTAppletAdapter.java:1026) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.getImage(jdk.plugin@9-ea/AWTAppletAdapter.java:1098) at UrlAccessApplet.doTest(UrlAccessApplet.java:44) at UrlAccessApplet.init(UrlAccessApplet.java:35) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter.init(jdk.plugin@9-ea/AWTAppletAdapter.java:293) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(jdk.plugin@9-ea/Plugin2Manager.java:1923) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "\\tmp\test.jar" "read") at java.security.AccessControlContext.checkPermission(java.base@9-ea/AccessControlContext.java:468) at java.security.AccessController.checkPermission(java.base@9-ea/AccessController.java:894) at java.lang.SecurityManager.checkPermission(java.base@9-ea/SecurityManager.java:541) at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(jdk.plugin@9-ea/AWTAppletSecurityManager.java:78) at java.lang.SecurityManager.checkRead(java.base@9-ea/SecurityManager.java:880) at java.io.File.exists(java.base@9-ea/File.java:815) at sun.net.www.protocol.file.Handler.openConnection(java.base@9-ea/Handler.java:97) at sun.net.www.protocol.file.Handler.openConnection(java.base@9-ea/Handler.java:72) at java.net.URL.openConnection(java.base@9-ea/URL.java:1049) at sun.net.www.protocol.jar.JarURLConnection.<init>(java.base@9-ea/JarURLConnection.java:84) at com.sun.deploy.net.protocol.jar.DeployURLConnection.<init>(jdk.deploy@9-ea/DeployURLConnection.java:80) at com.sun.deploy.net.protocol.jar.Handler.openConnection(jdk.deploy@9-ea/Handler.java:23) ... 10 more Expected behavior: "do test results is true" should show up in browser. src: http://sqeweb.us.oracle.com/net/scanas415/export/deployment/crystal/DO_NOT_REMOVE_ME/jrebug/pluginsecurity/src/UrlAccessApplet.java

    JDK Bug System | 9 months ago | Crystal Yang
    java.lang.InternalError: could not create DeployURLConnection at com.sun.deploy.net.protocol.jar.Handler.openConnection(jdk.deploy@9-ea/Handler.java:26) at java.net.URL.openConnection(java.base@9-ea/URL.java:1049) at com.sun.deploy.util.URLUtil.getConnectPermission(jdk.deploy@9-ea/URLUtil.java:946) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.getPermission(jdk.plugin@9-ea/AWTAppletAdapter.java:1039) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.checkURL(jdk.plugin@9-ea/AWTAppletAdapter.java:1026) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.getImage(jdk.plugin@9-ea/AWTAppletAdapter.java:1098)

    Root Cause Analysis

    1. java.lang.InternalError

      could not create DeployURLConnection at com.sun.deploy.net.protocol.jar.Handler.openConnection(jdk.deploy@9-ea/Handler.java:26) at java.net.URL.openConnection(java.base@9-ea/URL.java:1049) at com.sun.deploy.util.URLUtil.getConnectPermission(jdk.deploy@9-ea/URLUtil.java:946) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.getPermission(jdk.plugin@9-ea/AWTAppletAdapter.java:1039) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.checkURL(jdk.plugin@9-ea/AWTAppletAdapter.java:1026) at sun.plugin2.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.getImage(jdk.plugin@9-ea/AWTAppletAdapter.java:1098)

      at UrlAccessApplet.doTest()
    2. Unknown
      UrlAccessApplet.init
      1. UrlAccessApplet.doTest(UrlAccessApplet.java:44)
      2. UrlAccessApplet.init(UrlAccessApplet.java:35)
      2 frames