java.lang.InternalError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by 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) at UrlAccessApplet.doTest(UrlAccessApplet.java:44) at UrlAccessApplet.init(UrlAccessApplet.java:35)
    No Bugmate found.