Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8134475

It looks like user cannot enable Java from JCP UI

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description


      Steps to reproduce:
      1) Launch JCP
      2) Disable Java content under Security table by unselecting the check box and then clicking "Apply"
      3) Select Enable Java Content and then click "Apply"
      4) Wait a while, if the checkbox become unselected again without any information. bug is reproducible.

      Note: Actually, java content is already enabled. We can confirm it by reopening JCP.

      See exception:
      java.io.FileNotFoundException: C:\ProgramData\Oracle\Java\java.settings.cfg (The system cannot find the file specified)
      at java.io.FileInputStream.open0(Native Method)
      at java.io.FileInputStream.open(FileInputStream.java:195)
      at java.io.FileInputStream.<init>(FileInputStream.java:138)
      at java.io.FileReader.<init>(FileReader.java:72)
      at com.sun.deploy.config.WinPlatform.readSystemConfig(Unknown Source)
      at com.sun.deploy.config.WinPlatform.getSponsorOffersDisabledSettings(Unknown Source)
      at com.sun.deploy.config.ClientConfig.getSponsorOffersDisabledSettings(Unknown Source)
      at com.sun.deploy.panel.AdvancedProperties.saveSponsorOfferingSettings(Unknown Source)
      at com.sun.deploy.panel.ControlPanel.apply(Unknown Source)
      at com.sun.deploy.panel.ControlPanel.applyBtnActionPerformed(Unknown Source)
      at com.sun.deploy.panel.ControlPanel.access$300(Unknown Source)
      at com.sun.deploy.panel.ControlPanel$5.actionPerformed(Unknown Source)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2026)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2366)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:261)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:266)
      at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
      at java.awt.Component.processMouseEvent(Component.java:6607)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3349)
      at java.awt.Component.processEvent(Component.java:6372)
      at java.awt.Container.processEvent(Container.java:2259)
      at java.awt.Component.dispatchEventImpl(Component.java:4991)
      at java.awt.Container.dispatchEventImpl(Container.java:2317)
      at java.awt.Component.dispatchEvent(Component.java:4823)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4906)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4543)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4484)
      at java.awt.Container.dispatchEventImpl(Container.java:2303)
      at java.awt.Window.dispatchEventImpl(Window.java:2756)
      at java.awt.Component.dispatchEvent(Component.java:4823)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:761)
      at java.awt.EventQueue.access$500(EventQueue.java:97)
      at java.awt.EventQueue$3.run(EventQueue.java:712)
      at java.awt.EventQueue$3.run(EventQueue.java:706)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.awt.EventQueue$4.run(EventQueue.java:734)
      at java.awt.EventQueue$4.run(EventQueue.java:732)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:731)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:192)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:106)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:102)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:94)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
      java.net.ConnectException: Connection timed out: connect
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:425)
      at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1885)
      at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1880)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1879)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1452)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:235)
      at com.sun.deploy.util.SecurityBaseline.checkForUpdate(Unknown Source)
      at com.sun.deploy.util.SecurityBaseline.access$100(Unknown Source)
      at com.sun.deploy.util.SecurityBaseline$1.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:746)
      Caused by: java.net.ConnectException: Connection timed out: connect
      at java.net.DualStackPlainSocketImpl.connect0(Native Method)
      at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
      at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
      at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:402)
      at java.net.Socket.connect(Socket.java:591)
      at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:648)
      at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
      at sun.net.www.protocol.https.HttpsClient.&lt;init&gt;(HttpsClient.java:264)
      at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
      at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2933)
      at java.net.HttpURLConnection.getHeaderFieldDate(HttpURLConnection.java:552)
      at java.net.URLConnection.getLastModified(URLConnection.java:563)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getLastModified(HttpsURLConnectionImpl.java:403)
      ... 4 more

        Attachments

          Activity

            People

            • Assignee:
              vrao Vivek Rao (Inactive)
              Reporter:
              yanqchen Sheldon Chen (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: