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

JD-GUI crash on start up w/ Mac High Sierra? #196

Closed
Beachin opened this Issue Jan 27, 2018 · 21 comments

Comments

Projects
None yet
@Beachin
Copy link

Beachin commented Jan 27, 2018

Hey. I've been using JD-GUI for some time now and I just recently updated my computer to High Sierra and now it crashes whenever I start it. Can anyone help, please?

@alcides

This comment has been minimized.

Copy link

alcides commented Feb 14, 2018

Same happens to me. Both from homebrew and 1.4 downloaded from the website.

Does not matter whether it was opened directly or from file (and does not matter which file).

The only output from Console.app:

java | AEGetDescData of non-desc type 'reco' not a good idea

Running from the console:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff6ee4d3d5, pid=66755, tid=0x0000000000000307
#
# JRE version: Java(TM) SE Runtime Environment (8.0_162-b12) (build 1.8.0_162-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.162-b12 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libsystem_pthread.dylib+0x13d5]  pthread_mutex_lock+0x0
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/alcides/Applications/JD-GUI.app/Contents/Resources/Java/hs_err_pid66755.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Abort trap: 6

Running with Java 8 or 9 spits out the same error.

The hs_err logfile:

---------------  S U M M A R Y ------------

Command Line: -Dapple.laf.useScreenMenuBar=true -Xms512m org.jd.gui.OsxApp

Host: MacBookPro13,2 x86_64 2900 MHz, 4 cores, 16G, Darwin 17.3.0
Time: Wed Feb 14 16:12:02 2018 WET elapsed time: 0 seconds (0d 0h 0m 0s)

---------------  T H R E A D  ---------------

Current thread (0x00007fa16a0d9800):  JavaThread "AppKit Thread" daemon [_thread_in_native, id=775, stack(0x00007ffeec84d000,0x00007ffeed04d000)]

Stack: [0x00007ffeec84d000,0x00007ffeed04d000],  sp=0x00007ffeed04a248,  free space=8180k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libsystem_pthread.dylib+0x13d5]  pthread_mutex_lock+0x0
C  [CoreFoundation+0x2da69]  CFBundleGetIdentifier+0x9
C  [HIToolbox+0x96d6]  _ZL24RegisterAsDockClientPrivv+0x1e
C  [HIToolbox+0x9688]  _RegisterSharedDockClientWithRunLoop+0x26
C  [AppKit+0x6b908d]  _NSCGSDockRegisterIfNeeded+0x24
C  [AppKit+0x6b8e09]  +[NSCGSDockNotifications addGetAppMenuHandler:]+0x1b
C  [AppKit+0x6cb0]  _NSDoOneTimeDockRegistration+0x57
C  [AppKit+0x6c18]  -[NSApplication _registerWithDock]+0x45
C  [AppKit+0x4e74]  -[NSApplication init]+0x5f7
C  [libosxapp.dylib+0x12ff]  -[NSApplicationAWT init]+0xae
C  [AppKit+0x468e]  +[NSApplication sharedApplication]+0x8a
C  [libawt_lwawt.dylib+0x3a2df]  +[AWTStarter starter:headless:]+0xdd
C  [JavaNativeFoundation+0x6f4a]  +[JNFRunLoop _performCopiedBlock:]+0x11
C  [Foundation+0x68125]  __NSThreadPerformPerform+0x14e
C  [CoreFoundation+0xa35a1]  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x11
C  [CoreFoundation+0x15d35c]  __CFRunLoopDoSource0+0x6c
C  [CoreFoundation+0x86040]  __CFRunLoopDoSources0+0xd0
C  [CoreFoundation+0x854bd]  __CFRunLoopRun+0x50d
C  [CoreFoundation+0x84d23]  CFRunLoopRunSpecific+0x1e3
C  [java+0x6b2e]  CreateExecutionEnvironment+0x35c
C  [java+0x2c65]  JLI_Launch+0x5a9
C  [java+0x1b62]  main+0x186
C  [java+0x19d4]  start+0x34
C  0x0000000000000008


siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00000000000000c8

Register to memory mapping:

RAX=0xec44f4bc43c8009c is an unknown value
RBX=0x00007fff44f1c4c6: _NSCGSDockMessageReceive+0 in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit at 0x00007fff44864000
RCX=0x0000110000001201 is an unknown value
RDX=0x0000120000001200 is an unknown value
RSP=0x00007ffeed04a248 is pointing into the stack for thread: 0x00007fa16a0d9800
RBP=0x00007ffeed04a2c0 is pointing into the stack for thread: 0x00007fa16a0d9800
RSI=0x0000000000001100 is an unknown value
RDI=0x00000000000000c8 is an unknown value
R8 =0x00007fffa1646cf0: _mainBundleLock+0x20 in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation at 0x00007fff4723e000
R9 =0xffffffff00000000 is an unknown value
R10=0x00007fffa1646ce8: _mainBundleLock+0x18 in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation at 0x00007fff4723e000
R11=0x00007fffa1646cf0: _mainBundleLock+0x20 in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation at 0x00007fff4723e000
R12=0x000000000002b653 is an unknown value
R13=0x0000000000000000 is an unknown value
R14=0x00000000000000c8 is an unknown value
R15=0x00007fff4554441b: .str.41.llvm.371263A9+0x4a6a5 in /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit at 0x00007fff44864000


Registers:
RAX=0xec44f4bc43c8009c, RBX=0x00007fff44f1c4c6, RCX=0x0000110000001201, RDX=0x0000120000001200
RSP=0x00007ffeed04a248, RBP=0x00007ffeed04a2c0, RSI=0x0000000000001100, RDI=0x00000000000000c8
R8 =0x00007fffa1646cf0, R9 =0xffffffff00000000, R10=0x00007fffa1646ce8, R11=0x00007fffa1646cf0
R12=0x000000000002b653, R13=0x0000000000000000, R14=0x00000000000000c8, R15=0x00007fff4554441b
RIP=0x00007fff6ee4d3d5, EFLAGS=0x0000000000010206, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e
@alcides

This comment has been minimized.

Copy link

alcides commented Feb 14, 2018

Running the jar directly works perfectly! I believe it's a .app wrapper issue.

@necevil

This comment has been minimized.

Copy link

necevil commented Mar 23, 2018

I have the same issue where starting JD-Gui via OSX .app wrapper fails since I updated to High Sierra.

After reading @alcides comment I downloaded the Jar and ran that (both via Jar Launcher GUI from Finder, and from the terminal). I was able to at least get the JD-Gui Logo to pop during application statup (which was not the case when running via the osx .app wrapper) but I still crash after that.

My thinking is that it has something to do with my local Java version vs whatever version Alcides was using.

@alcides what version of Java are you on?

@necevil

This comment has been minimized.

Copy link

necevil commented Mar 23, 2018

OK so I solved this by specifying the version to run inside of the Info.plist file.
To access that right click on the OSx JD-GUI icon and go to "Show Package Contents" then navigate into the "Contents" directory and open "Info.plist" inside of a text editor.

You want to look for the line that looks like:

<key>JVMVersion</key>					<string>1.7+</string>

I believe the issue I was experiencing was caused by having Java 10 installed so the real issue may be that High Sierra is OK but Java 10 causes problems. To fix that I specified the Java 7 runtime in the Info.plist file by changing the above line to the following:

<key>JVMVersion</key>					<string>1.7</string>

This allows me to run the JD-Gui from the osx .app wrapper as I did before my update.

Note the removal of the "+" after 1.7.

@alcides

This comment has been minimized.

Copy link

alcides commented Mar 23, 2018

I was on Java 9.

Changing that configuration to 1.8 worked fine (I do not have a Java7 on my machine).

@Arslan91

This comment has been minimized.

Copy link

Arslan91 commented Apr 11, 2018

Thank You @necevil and @alcides :

Changing to 1.8 works for me because I have Java 8 installed

@zbstof

This comment has been minimized.

Copy link

zbstof commented Apr 24, 2018

Can confirm that changing <string>1.7+</string> to <string>1.8</string> allowed to open jdgui as native Mac App.
Strange thing is that running
/Applications/JD-GUI.app/Contents/MacOS/universalJavaApplicationStub.sh
from command-line without changing the JVMVersion key also works.

@zbstof

This comment has been minimized.

Copy link

zbstof commented Apr 26, 2018

Ok, I think I have something.
I tried to start from the /Applications directory

$ JD-GUI.app/Contents/MacOS/universalJavaApplicationStub.sh
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff785be34c, pid=27613, tid=0x0000000000000307
#
# JRE version: Java(TM) SE Runtime Environment (8.0_151-b12) (build 1.8.0_151-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.151-b12 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libsystem_pthread.dylib+0x134c]  pthread_mutex_lock+0x0
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Applications/JD-GUI.app/Contents/Resources/Java/hs_err_pid27964.log

#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Abort trap: 6

Referenced log:
hs_err_pid27964.log

@X-Ryl669

This comment has been minimized.

Copy link

X-Ryl669 commented May 8, 2018

I got this (only have Java 10 installed):

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass$3$1 (file:/path/to/jd-gui-osx-1.4.0/JD-GUI.app/Contents/Resources/Java/jd-gui-1.4.0.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass$3$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.reflect.InaccessibleObjectException: Unable to make jdk.internal.loader.ClassLoaders$AppClassLoader(jdk.internal.loader.ClassLoaders$PlatformClassLoader,jdk.internal.loader.URLClassPath) accessible: module java.base does not "opens jdk.internal.loader" to unnamed module @1c3a4799
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281)
	at java.base/java.lang.reflect.Constructor.checkCanSetAccessible(Constructor.java:192)
	at java.base/java.lang.reflect.Constructor.setAccessible(Constructor.java:185)
	at org.codehaus.groovy.reflection.CachedConstructor$1.run(CachedConstructor.java:41)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at org.codehaus.groovy.reflection.CachedConstructor.<init>(CachedConstructor.java:39)
	at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:76)
	at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:66)
	at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
	at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
	at org.codehaus.groovy.reflection.CachedClass.getConstructors(CachedClass.java:265)
	at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:215)
	at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:225)
	at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createNormalMetaClass(MetaClassRegistry.java:168)
	at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createWithCustomLookup(MetaClassRegistry.java:158)
	at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:141)
	at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:250)
	at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:282)
	at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:292)
	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:259)
	at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:868)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.createPojoSite(CallSiteArray.java:122)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:163)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
	at org.jd.gui.view.MainDescription.run(MainDescription.groovy:170)
	at groovy.util.FactoryBuilderSupport.build(FactoryBuilderSupport.java:1169)
	at groovy.util.FactoryBuilderSupport.build(FactoryBuilderSupport.java:1152)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:382)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:161)
	at org.jd.gui.view.MainView$_closure1.doCall(MainView.groovy:69)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1082)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
	at groovy.lang.Closure.call(Closure.java:423)
	at groovy.lang.Closure.call(Closure.java:417)
	at java_util_concurrent_Callable$call.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
	at groovy.swing.SwingBuilder$_edt_closure1.doCall(SwingBuilder.groovy:333)
	at groovy.swing.SwingBuilder$_edt_closure1.doCall(SwingBuilder.groovy)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
	at groovy.lang.Closure.call(Closure.java:423)
	at groovy.lang.Closure.call(Closure.java:417)
	at groovy.lang.Closure.run(Closure.java:504)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
	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.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
	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)
@juicejuice

This comment has been minimized.

Copy link

juicejuice commented Jun 22, 2018

See issue #187 for the fix. This works on Java 9 and 10.
I fixed my Mac launcher by going into the JD-GUI.app/Contents/MacOS folder and updating the Java call in the .sh file as follows (the two --add-opens lines):
exec "$JAVACMD"
-cp "${JVMClassPath}"
-Xdock:icon="${ResourcesFolder}/${CFBundleIconFile}"
-Xdock:name="${CFBundleName}"
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED
--add-opens jdk.zipfs/jdk.nio.zipfs=ALL-UNNAMED
${JVMOptions:+$JVMOptions }
${JVMDefaultOptions:+$JVMDefaultOptions }
${JVMMainClass}
${JVMArguments:+ $JVMArguments}

@goswamisunny88

This comment has been minimized.

Copy link

goswamisunny88 commented Sep 19, 2018

This is Java version issue. Need to downgrade it to 8 (follow this step if anybody facing issues doing so)
After this, in the Info.plist change the JVMVersion to 1.8.

@sirgatez

This comment has been minimized.

Copy link

sirgatez commented Nov 18, 2018

@juicejuice 's fix seems to resolve the issue on JDK8 and JDK11.
Works if JVMVersion is blank or explicitly specified.
Runs from both app in Applications and the contained .sh file.

I still see these warnings, but they don't seem to impact operation:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass$3$1 (file:/Applications/JD-GUI.app/Contents/Resources/Java/jd-gui-1.4.0.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass$3$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.NoClassDefFoundError: com/apple/eawt/OpenFilesHandler
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at org.jd.gui.OsxApp.main(OsxApp.groovy:18)
Caused by: java.lang.ClassNotFoundException: com.apple.eawt.OpenFilesHandler
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 10 more

#196 (comment)

@bhavesh-gangani-ylm

This comment has been minimized.

Copy link

bhavesh-gangani-ylm commented Nov 26, 2018

Changes as stated by @necevil works for me. Thanks

@davidawad

This comment has been minimized.

Copy link

davidawad commented Nov 26, 2018

Has anyone been able to get this fixed? I've tried the other fixes mentioned here and they don't work for me on Mojave :(

@bhavesh-gangani-ylm

This comment has been minimized.

Copy link

bhavesh-gangani-ylm commented Nov 26, 2018

@davidawad, I have just fixed on Mojave. Check necevil's solution #196 (comment)

@juicejuice

This comment has been minimized.

Copy link

juicejuice commented Nov 26, 2018

I'm running JRE 10.0.1 on Mojave 10.14.1 and the fix I reported still works. I like necevil's solution but haven't tested it.

@duchengyao

This comment has been minimized.

Copy link

duchengyao commented Dec 3, 2018

Maybe the same issue

$ java -jar jd-gui-1.4.0.jar 
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass$3$1 (file:/Applications/JD-GUI.app/Contents/Resources/Java/jd-gui-1.4.0.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass$3$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.reflect.InaccessibleObjectException: Unable to make jdk.internal.loader.ClassLoaders$AppClassLoader(jdk.internal.loader.ClassLoaders$PlatformClassLoader,jdk.internal.loader.URLClassPath) accessible: module java.base does not "opens jdk.internal.loader" to unnamed module @3e9b1010
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
	at java.base/java.lang.reflect.Constructor.checkCanSetAccessible(Constructor.java:189)
	at java.base/java.lang.reflect.Constructor.setAccessible(Constructor.java:182)
	at org.codehaus.groovy.reflection.CachedConstructor$1.run(CachedConstructor.java:41)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at org.codehaus.groovy.reflection.CachedConstructor.<init>(CachedConstructor.java:39)
	at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:76)
	at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:66)
	at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
	at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
	at org.codehaus.groovy.reflection.CachedClass.getConstructors(CachedClass.java:265)
	at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:215)
	at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:225)
	at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createNormalMetaClass(MetaClassRegistry.java:168)
	at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createWithCustomLookup(MetaClassRegistry.java:158)
	at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:141)
	at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:250)
	at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:282)
	at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:292)
	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:259)
	at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:868)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.createPojoSite(CallSiteArray.java:122)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:163)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
	at org.jd.gui.view.MainDescription.run(MainDescription.groovy:170)
	at groovy.util.FactoryBuilderSupport.build(FactoryBuilderSupport.java:1169)
	at groovy.util.FactoryBuilderSupport.build(FactoryBuilderSupport.java:1152)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:382)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:161)
	at org.jd.gui.view.MainView$_closure1.doCall(MainView.groovy:69)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1082)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
	at groovy.lang.Closure.call(Closure.java:423)
	at groovy.lang.Closure.call(Closure.java:417)
	at java_util_concurrent_Callable$call.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
	at groovy.swing.SwingBuilder$_edt_closure1.doCall(SwingBuilder.groovy:333)
	at groovy.swing.SwingBuilder$_edt_closure1.doCall(SwingBuilder.groovy)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
	at groovy.lang.Closure.call(Closure.java:423)
	at groovy.lang.Closure.call(Closure.java:417)
	at groovy.lang.Closure.run(Closure.java:504)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	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)
@kuzeko

This comment has been minimized.

Copy link

kuzeko commented Dec 7, 2018

@juicejuice 's solution is the one!

Running great on macOS Mojave (10.14.1)

$ java --version
openjdk 11 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
@dili91

This comment has been minimized.

Copy link

dili91 commented Jan 21, 2019

I had the above issues with the .dmg download. Downloading the .tar extensions solved in my case !

@pfaucon

This comment has been minimized.

Copy link

pfaucon commented Feb 27, 2019

Fixed for me on Mojave and Java 11 with @juicejuice 's solution and removing the jvmjdk line in info.plist

@emmanue1

This comment has been minimized.

Copy link
Collaborator

emmanue1 commented Mar 10, 2019

Fixed : Groovy libraries updated.

@emmanue1 emmanue1 closed this Mar 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.