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

my swing application doesn't work with beta java 9

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      FULL PRODUCT VERSION :
      java -version = 9, same machine when it is 1.8 (131, 141 or 144) it is working. It only doesn't work with this beta 9.

      ADDITIONAL OS VERSION INFORMATION :
      I have been trying in windows 7/ 10 64 bit

      A DESCRIPTION OF THE PROBLEM :
      it has been working for previous releases also. This is true until the latest release from 7/26/2017 - 1.8.0_144

      So, I have googled and found few other people facing same/ similar issue and they are considering this to be a bug on beta java 9.

      So, as of now I do not know if this is true for all swing app or some specific apps or this is a bug waiting to be fixed on the next java 9 release. That is what I expect to find out by opening this bug report.

      - Thanks

      REGRESSION. Last worked in version 8u144


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      INFO: System.getProperty("java.version")=9
      Exception in thread "AWT-EventQueue-2" java.lang.Error: Unable to make void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional) accessible: module java.desktop does not "opens java.awt" to unnamed module @791a819c
          at us.mn.state.dhs.tss.common.dispatch.swing.EDTBlockerImpl.<clinit>(EDTBlockerImpl.java:34)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
          at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
          at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
          at java.base/java.lang.Class.newInstance(Unknown Source)
          at us.mn.state.dhs.tss.cc.core.swing.WrappedBlockerImpl.createInstance(WrappedBlockerImpl.java:31)
          at us.mn.state.dhs.tss.cc.core.swing.WrappedBlockerImpl.<init>(WrappedBlockerImpl.java:22)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
          at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
          at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
          at java.base/java.lang.Class.newInstance(Unknown Source)
          at us.mn.state.dhs.tss.common.dispatch.swing.BlockerFactory.createBlocker(BlockerFactory.java:39)
          at us.mn.state.dhs.tss.common.dispatch.swing.Dispatcher.dispatch(Dispatcher.java:23)
          at us.mn.state.dhs.tss.cc.core.swing.CommunicationDispatcherImpl.dispatch(CommunicationDispatcherImpl.java:29)
          at us.mn.state.dhs.tss.common.dataaccess.DataAccessProcess.invoke(DataAccessProcess.java:40)
          at com.sun.proxy.$Proxy0.authenticate(Unknown Source)
          at us.mn.state.dhs.tss.common.login.da.validation.LoginDAValidationImpl.authenticate(LoginDAValidationImpl.java:26)
          at us.mn.state.dhs.tss.cc.login.swing.LoginModel.authorizeLogin(LoginModel.java:105)
          at us.mn.state.dhs.tss.cc.login.swing.LoginModel.authorize(LoginModel.java:83)
          at us.mn.state.dhs.tss.cc.login.swing.LoginUI.doLogin(LoginUI.java:208)
          at us.mn.state.dhs.tss.cc.login.swing.LoginUI.access$100(LoginUI.java:23)
          at us.mn.state.dhs.tss.cc.login.swing.LoginUI$1.login(LoginUI.java:71)
          at us.mn.state.dhs.tss.cc.login.swing.LoginPanel.fireLoginAction(LoginPanel.java:152)
          at us.mn.state.dhs.tss.cc.login.swing.LoginPanel$1.actionPerformed(LoginPanel.java:115)
          at java.desktop/javax.swing.JTextField.fireActionPerformed(Unknown Source)
          at java.desktop/javax.swing.JTextField.postActionEvent(Unknown Source)
          at java.desktop/javax.swing.JTextField$NotifyAction.actionPerformed(Unknown Source)
          at java.desktop/javax.swing.SwingUtilities.notifyAction(Unknown Source)
          at java.desktop/javax.swing.JComponent.processKeyBinding(Unknown Source)
          at java.desktop/javax.swing.JComponent.processKeyBindings(Unknown Source)
          at java.desktop/javax.swing.JComponent.processKeyEvent(Unknown Source)
          at java.desktop/java.awt.Component.processEvent(Unknown Source)
          at java.desktop/java.awt.Container.processEvent(Unknown Source)
          at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
          at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
          at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
          at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
          at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
          at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
          at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
          at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
          at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
          at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
          at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
          at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
          at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
          at java.desktop/java.awt.EventQueue.access$500(Unknown Source)
          at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
          at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
          at java.base/java.security.AccessController.doPrivileged(Native Method)
          at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
          at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
          at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
          at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
          at java.base/java.security.AccessController.doPrivileged(Native Method)
          at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
          at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
          at us.mn.state.dhs.tss.cc.core.swing.ChildCareEventQueue.dispatchEvent(ChildCareEventQueue.java:71)
          at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
          at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
          at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
          at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
          at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
          at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Activity

            People

            • Assignee:
              pardesha Pardeep Sharma
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: