Page 1 of 1

Exception when renaming a file

Posted: 25 Feb 2018, 02:57
by darkvinill
Hello i'm getting errors when trying to rename a file.
I'm using the following code:

Code: Select all

filebot --db TheTVDB -rename "/path/to/file.mkv" --format "{n} - {s00e00} - {t}" --output "output/path"
it renames successfully but shows the following error:

Code: Select all

Processed 1 files
Exception in thread "HistorySpoolerShutdownHook" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
	at net.filebot.History.exportHistory(History.java:199)
	at net.filebot.HistorySpooler.commit(HistorySpooler.java:80)
	at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext
	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)
	... 3 more
Details:
  • java version "9.0.4"
    OS: macOS High Sierra 10.13.3

Re: Exception when renaming a file

Posted: 25 Feb 2018, 04:47
by rednoah
The version of FileBot you're using is only compatible with Java 8. If you use Java 9 then you will get this error because the JAXB module is no longer included or accessible by default in Java 9.

Re: Exception when renaming a file

Posted: 25 Feb 2018, 11:25
by darkvinill
rednoah wrote: 25 Feb 2018, 04:47 The version of FileBot you're using is only compatible with Java 8. If you use Java 9 then you will get this error because the JAXB module is no longer included or accessible by default in Java 9.
Is there a new version ?

Re: Exception when renaming a file

Posted: 25 Feb 2018, 13:08
by rednoah
Maybe. What version are you using?

Re: Exception when renaming a file

Posted: 25 Feb 2018, 14:49
by darkvinill
FileBot 4.7.9 (r4984) / Java(TM) SE Runtime Environment 9.0.4 / Mac OS X 10.13.3 (x86_64)

Instaled using : viewtopic.php?t=2049 (" feeling lazy ")

Re: Exception when renaming a file

Posted: 25 Feb 2018, 18:25
by rednoah
Due to a forward-compatibility bug, you will need to uninstall Java 9 and then only install Java 8.

Re: Exception when renaming a file

Posted: 25 Feb 2018, 19:21
by kim
Maybe you can use this ?

viewtopic.php?f=8&p=30888#p30901