Kodi Community Forum

Full Version: After update to TMM 2.9.14: Writing NFO failed...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, after I upgraded to 2.9.14 I can't write NFO's anymore? Message: Writing NFO failed: name: com.sun.xml.bind.xml. Any help? Thx, ClenMaster
can you please upload the full log to some pastbin site?
Here is the error log:

18:04:32.748 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_moviemeter.conf' - using defaults
18:04:32.763 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_fanarttv.conf' - using defaults
18:04:33.330 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_imdb.conf' - using defaults
18:04:33.348 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_tmdb.conf' - using defaults
18:04:33.362 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_omdbapi.conf' - using defaults
18:04:33.666 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_metadata.tvdb.com.conf' - using defaults
18:04:33.681 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_metadata.album.universal.conf' - using defaults
18:04:33.693 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_metadata.artists.universal.conf' - using defaults
18:04:33.702 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_metadata.tvdb.com.conf' - using defaults
18:04:33.715 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_metadata.album.universal.conf' - using defaults
18:04:33.731 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_metadata.artists.universal.conf' - using defaults
18:04:33.737 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_metadata.themoviedb.org.conf' - using defaults
18:04:33.909 WARN  org.tinymediamanager.scraper.config.MediaProviderConfig - Cannot load settings 'data/scraper_tvdb.conf' - using defaults
18:04:57.780 ERROR o.t.core.movie.connector.MovieToKodiNfoConnector - setData /media/Kids/Fantastic Beasts and Where to Find Them/Fantastic Beasts The Crimes of Grindelwald (2018).nfo
javax.xml.bind.PropertyException: name: com.sun.xml.bind.xmlHeaders value: <!-- created on 2018-12-18 18:04:57 - tinyMediaManager 2.9.14 -->

    at javax.xml.bind.helpers.AbstractMarshallerImpl.setProperty(AbstractMarshallerImpl.java:358)
    at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:536)
    at org.tinymediamanager.core.movie.connector.MovieToKodiNfoConnector.writeNfoFiles(MovieToKodiNfoConnector.java:511)
    at org.tinymediamanager.core.movie.connector.MovieToKodiNfoConnector.setData(MovieToKodiNfoConnector.java:219)
    at org.tinymediamanager.core.movie.entities.Movie.writeNFO(Movie.java:1463)
    at org.tinymediamanager.ui.movies.actions.MovieRewriteNfoAction$1.doInBackground(MovieRewriteNfoAction.java:61)
    at org.tinymediamanager.core.threading.TmmTask.run(TmmTask.java:125)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Since it's only some log, but not the full logfile, you have to fill in the answers:

which OS
32/64 bit?
which java vendor?
which java version?
32/64 bit?
Hi,

which OS: Ubuntu 18.10 Cosmic Cuttlefish
32/64 bit?: 64 bit
which java vendor? 
which java version?
32/64 bit?

JAVA:
openjdk 11.0.1 2018-10-16
OpenJDK Runtime Environment (build 11.0.1+13-Ubuntu-2ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.1+13-Ubuntu-2ubuntu1, mixed mode, sharing)
Hi, anybody? Wrong additional info? Thx, Zach?
sorry, we do not have much time for tmm these days..

cannot look at the problem at the moment, but since I see you are using java 11, please try to install java8 since oracle broke many things with java9+

openjdk-8-jre should work.. if not, please try openjdk-8-jdk
Hi, thanks for your reply.

Next to Java 11 I have 8 running too. How can I force TMM to use Java 8 instead of 11?
I've already set JAVA_HOME to /usr/lib/jvm/java-8-openjdk-amd64/ instead of 11.
Not sure if this helps/works.

[email protected]:~$ apt-cache search openjdk

openjdk-8-jdk-headless - OpenJDK Development Kit (JDK) (headless)
openjdk-8-jdk - OpenJDK Development Kit (JDK)
default-jre - Standard Java or Java compatible Runtime
openjdk-11-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-8-jre - OpenJDK Java runtime, using Hotspot JIT
default-jre-headless - Standard Java or Java compatible Runtime (headless)
openjdk-8-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-11-jre - OpenJDK Java runtime, using Hotspot JIT

Thx again!
either set java8 as systems default or try to put the absolute path to the java executable from java 8 into tinyMediaManager.sh (attention, this will be overwritten on updates)
Hi, set Java 8 as default, still no luck...

There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      manual mode
* 2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Any other ideas or should I revert back 2.9.13?
Reverted back to 2.9.13. Everything works fine again. 2.9.14 somehow has issues with writing NFO's.
could you do a test for me on 2.9.14?

download the file http://central.maven.org/maven2/com/sun/...2.2.11.jar - rename it to  jaxb-impl.jar and put it to the tmm/lib folder (overwrite the existing one).
After that delete the files jaxb-api.jar and jaxb-core.jar and try to write a NFO file again
Hi, tried this, no luck. Same error message if I try to write a NFO. Thanks for keeping at it!
Regards, CM.
could you try the latest nightly build? it works here (manjaro with java 11.0.1)
http://nightly.tinymediamanager.org/
Hi, tried and it works indeed! Great, thanks for your help. Much appreciated.
Regards, CM.