NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext

Support for macOS users
Post Reply
danshaw
Posts: 2
Joined: 31 Dec 2019, 14:40

NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext

Post by danshaw »

I purchased Filebot from the website and have installed it on my OSX 10.13.6 machine. Then trying to find a match I am getting the "NoClassDefFoundError" that many others have posted about. Looking at all of the posts and doing some google searching I am stuck and could use a little push in the right direction.

Java: I first installed version 13 of the java jdk. After getting the error I downgraded to version 8 & 11 with no change.

When running filebot from the CLI, I get the following errors:

Code: Select all

Failed to check for updates
java.lang.ExceptionInInitializerError
	at net.filebot.web.WebRequest.fetch(WebRequest.java:119)
	at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:215)
	at net.filebot.CachedResource.lambda$get$0(CachedResource.java:87)
	at net.filebot.CachedResource.retry(CachedResource.java:121)
	at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
	at net.filebot.Cache.computeIf(Cache.java:90)
	at net.filebot.CachedResource.get(CachedResource.java:82)
	at net.filebot.Main.checkUpdate(Main.java:292)
	at net.filebot.Main.onStart(Main.java:213)
	at net.filebot.Main.lambda$main$0(Main.java:162)
	at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:474)
	at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:464)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
	... 12 more
Caused by: java.lang.SecurityException: Missing mandatory jurisdiction policy files: unlimited
	... 12 more

NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.done(RenamePanel.java:940)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext
	at net.filebot.web.WebRequest.fetch(WebRequest.java:119)
	at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:215)
	at net.filebot.CachedResource.lambda$get$0(CachedResource.java:87)
	at net.filebot.CachedResource.retry(CachedResource.java:121)
	at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
	at net.filebot.Cache.computeIf(Cache.java:90)
	at net.filebot.CachedResource.get(CachedResource.java:82)
	at net.filebot.media.ReleaseInfo.lambda$resource$19(ReleaseInfo.java:500)
	at net.filebot.MemoizedResource.get(Resource.java:36)
	at net.filebot.media.ReleaseInfo.getTheTVDBIndex(ReleaseInfo.java:373)
	at net.filebot.media.MediaDetection.lambda$getSeriesIndex$2(MediaDetection.java:488)
	at net.filebot.media.MediaDetection.getIndex(MediaDetection.java:859)
	at net.filebot.media.MediaDetection.getSeriesIndex(MediaDetection.java:486)
	at net.filebot.media.MediaDetection.detectSeriesNames(MediaDetection.java:323)
	at net.filebot.media.MediaDetection.mapSeriesNamesByFiles(MediaDetection.java:193)
	at net.filebot.ui.rename.EpisodeListMatcher.match(EpisodeListMatcher.java:97)
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:922)
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:918)

User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: NoClassDefFoundError

Post by rednoah »

These are unique errors that I have never seen before. They're very unusual. I'm fairly sure that nobody has ever reported issues like this here before.

Code: Select all

java.lang.SecurityException: Can not initialize cryptographic mechanism

Code: Select all

java.lang.SecurityException: Missing mandatory jurisdiction policy files: unlimited

Code: Select all

NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext
:?: How did you install FileBot?

:?: What do filebot -version and filebot -script fn:sysinfo say?

:!: Note that FileBot bundles its own private Java runtime. The Java runtime you have installed on your system is not used and thus does not matter.
:idea: Please read the FAQ and How to Request Help.
danshaw
Posts: 2
Joined: 31 Dec 2019, 14:40

Re: NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext

Post by danshaw »

I installed it using the MacOS Installer PKG on your website.

filebot -version = FileBot 4.8.5 (r6224) / OpenJDK Runtime Environment 11.0.2 / Mac OS X 10.13.6 (x86_64)

filebot -script fn:sysinfo:

Code: Select all

null
java.lang.ExceptionInInitializerError
	at net.filebot.web.WebRequest.fetch(WebRequest.java:119)
	at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:215)
	at net.filebot.CachedResource.lambda$get$0(CachedResource.java:87)
	at net.filebot.CachedResource.retry(CachedResource.java:121)
	at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
	at net.filebot.Cache.computeIf(Cache.java:90)
	at net.filebot.CachedResource.get(CachedResource.java:82)
	at net.filebot.MemoizedResource.get(Resource.java:36)
	at net.filebot.cli.ScriptBundle.getScript(ScriptBundle.java:32)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:163)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:37)
	at net.filebot.Main.main(Main.java:132)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
	... 13 more
Caused by: java.lang.SecurityException: Missing mandatory jurisdiction policy files: unlimited
	... 13 more

Error (o_O)

User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext

Post by rednoah »

Try the latest beta for good measure:
https://get.filebot.net/filebot/BETA/


:?: My best guess is that this might be related to Mac OS X 10.13.6 being old and outdated. Shouldn't be an issue though. But I can't think of anything else either.


:?: Also try to completely uninstall and purge all existing Java installations. Just for good measure. I have no particular reason to assume that that might resolve the issue though.


:?: What is your system locale? en_US?



EDIT:

Since this strange error message seems to indicate that some files are missing:

Code: Select all

java.lang.SecurityException: Missing mandatory jurisdiction policy files: unlimited
Let's check if these files are indeed missing or not:

Code: Select all

ls -l /Applications/FileBot.app/Contents/PlugIns/*/Contents/Home/conf/security/policy
total 8
-rw-r--r--  1 root  wheel  2390 Dec 30 22:30 README.txt
drwxr-xr-x  5 root  wheel   160 Dec 30 22:30 limited
drwxr-xr-x  4 root  wheel   128 Dec 30 22:30 unlimited
:idea: Please read the FAQ and How to Request Help.
Post Reply