Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Illegal reflective access operation' #377

Closed
kmkrebs opened this issue Nov 18, 2017 · 4 comments
Closed

'Illegal reflective access operation' #377

kmkrebs opened this issue Nov 18, 2017 · 4 comments

Comments

@kmkrebs
Copy link

kmkrebs commented Nov 18, 2017

I recently started a fresh Fedora 27 system and got around the re-installing Blue today. I installed and configured the latest Oracle Java JDK as OpenJDK has not worked well in the past.
Blue will run and function mostly correctly, however nothing happens when I try to open tools->options. Attached is the error generated when I attempt to do so...
Any ideas?

java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
Caused: java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory starting from ModuleCL@323c32b0[org.openide.awt] with possible defining loaders null and declared parents [org.netbeans.MainImpl$BootClassLoader@3d99d22e, ModuleCL@50c09380[org.netbeans.api.annotations.common]]
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
Caused: java.lang.NoClassDefFoundError: javax/activation/DataContentHandlerFactory
	at org.openide.awt.QuickSearch.setUpSearch(QuickSearch.java:369)
	at org.openide.awt.QuickSearch.<init>(QuickSearch.java:107)
	at org.openide.awt.QuickSearch.attach(QuickSearch.java:197)
	at org.openide.awt.QuickSearch.attach(QuickSearch.java:125)
	at org.netbeans.modules.options.OptionsPanel.initUI(OptionsPanel.java:387)
	at org.netbeans.modules.options.OptionsPanel.<init>(OptionsPanel.java:177)
	at org.netbeans.modules.options.OptionsDisplayerImpl.showOptionsDialog(OptionsDisplayerImpl.java:186)
	at org.netbeans.api.options.OptionsDisplayer$3.run(OptionsDisplayer.java:248)
	at org.netbeans.api.options.OptionsDisplayer$3.run(OptionsDisplayer.java:234)
	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:138)
	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:98)
	at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:94)
	at org.openide.util.Mutex.readAccess(Mutex.java:218)
	at org.netbeans.api.options.OptionsDisplayer.openImpl(OptionsDisplayer.java:234)
	at org.netbeans.api.options.OptionsDisplayer.open(OptionsDisplayer.java:181)
	at org.netbeans.api.options.OptionsDisplayer.open(OptionsDisplayer.java:131)
	at org.netbeans.api.options.OptionsDisplayer.open(OptionsDisplayer.java:197)
	at org.netbeans.modules.options.OptionsWindowAction.actionPerformed(OptionsWindowAction.java:64)
	at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:199)
	at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
	at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
	at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
	at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:202)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
	at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:980)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1024)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6578)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3343)
	at java.desktop/java.awt.Component.processEvent(Component.java:6343)
	at java.desktop/java.awt.Container.processEvent(Container.java:2259)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4961)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2317)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4793)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4539)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4480)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2303)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2758)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4793)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:766)
	at java.desktop/java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:717)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:711)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:89)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:99)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:739)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:737)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:89)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:736)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:199)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
@DaveSeidel
Copy link

DaveSeidel commented Nov 18, 2017 via email

@kmkrebs
Copy link
Author

kmkrebs commented Nov 18, 2017

You are correct in that that I had JDK 9 installed and that is indeed the cause of the error. I attempted to add that '--add-modules java.activation', but that didn't work (gave me the error 'Unrecognized option --add-modules')

However, to make everyone's life easier, I installed JDK 1.8, set it as my default, and all is well once again.

Thanks for the help!

@kmkrebs kmkrebs closed this as completed Nov 18, 2017
@kunstmusik
Copy link
Owner

@kmkrebs @DaveSeidel Thanks for mentioning that link and bringing this up. I'll be sure to do a test to get Blue working with Java 9 before 2.8.3 goes out.

@DaveSeidel
Copy link

DaveSeidel commented Nov 18, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants