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

java.lang.NoClassDefFoundError problem with YAMJ on Fedora Linux #1156

Closed
Omertron opened this issue Mar 15, 2015 · 7 comments
Closed

java.lang.NoClassDefFoundError problem with YAMJ on Fedora Linux #1156

Omertron opened this issue Mar 15, 2015 · 7 comments

Comments

@Omertron
Copy link
Member

Original issue 1157 created by Omertron on 2009-12-25T20:25:02.000Z:

What steps will reproduce the problem?

  1. Fedora 12
  2. Myihome 5.2.0
  3. All YAMJ >v1.6

What is the expected output? What do you see instead?
I expect the local poster/fanart to be picked up. YAMJ does not and instead
its use dummy poster/fanart

What version of the product are you using? On what operating system?
Fedora 12 & YAMJ >v1.6 until r1244

Please provide any additional information below.

i have the following errors when i try to run moviejukebox on myihome v5.2
with the latest Mediainfo & all the version of moviejukebox (until r1244)

Updating data for: 01 Final Destination 1
java.lang.NoClassDefFoundError: com/moviejukebox/themoviedb/TheMovieDb
at
com.moviejukebox.scanner.PosterScanner.getPosterURLFromMovieDbAPI(PosterScanner.java:517)
at
com.moviejukebox.scanner.PosterScanner.getPosterURL(PosterScanner.java:260)
at com.moviejukebox.plugin.ImdbPlugin.locatePosterURL(ImdbPlugin.java:498)
at
com.moviejukebox.plugin.ImdbPlugin.updateImdbMediaInfo(ImdbPlugin.java:447)
at com.moviejukebox.plugin.ImdbPlugin.scan(ImdbPlugin.java:70)
at
com.moviejukebox.plugin.DatabasePluginController.scan(DatabasePluginController.java:70)
at com.moviejukebox.MovieJukebox.updateMovieData(MovieJukebox.java:1091)
at com.moviejukebox.MovieJukebox.access$100(MovieJukebox.java:90)
at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:623)
at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:615)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
com.moviejukebox.themoviedb.TheMovieDb
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 15 more

Updating data for: 02 Final Destination 2
java.lang.NoClassDefFoundError: com/moviejukebox/themoviedb/TheMovieDb
at
com.moviejukebox.scanner.PosterScanner.getPosterURLFromMovieDbAPI(PosterScanner.java:517)
at
com.moviejukebox.scanner.PosterScanner.getPosterURL(PosterScanner.java:260)
at com.moviejukebox.plugin.ImdbPlugin.locatePosterURL(ImdbPlugin.java:498)
at
com.moviejukebox.plugin.ImdbPlugin.updateImdbMediaInfo(ImdbPlugin.java:447)
at com.moviejukebox.plugin.ImdbPlugin.scan(ImdbPlugin.java:70)
at
com.moviejukebox.plugin.DatabasePluginController.scan(DatabasePluginController.java:70)
at com.moviejukebox.MovieJukebox.updateMovieData(MovieJukebox.java:1091)
at com.moviejukebox.MovieJukebox.access$100(MovieJukebox.java:90)
at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:623)
at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:615)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Failed creating thumbnail for Cloudy with a Chance of Meatballs
java.io.FileNotFoundException:
../../webapps/ROOT/feature/myiHome-moviejukebox/Jukebox/Cloudy.With.A.Chance.Of.Meatballs.2009.720p.BluRay.x264.DTS-WiKi.jpg
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.moviejukebox.MovieJukebox.createThumbnail(MovieJukebox.java:1337)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:815)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:801)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

the result is no pictures for any movie that i have ..( except very few and
most of them has the dummy picture !)

I have no problem when i run with Myihome 5.14 & moviejukebox 1.0 beta 16
on my system (Fedora 12)

@Omertron
Copy link
Member Author

Comment #1 originally posted by Omertron on 2009-12-26T08:30:50.000Z:

Can you check that you have deleted the lib and properties folders in the plugin
directory before you update/install YAMJ and try again?

What version and type of java are you using?

@Omertron
Copy link
Member Author

Comment #2 originally posted by Omertron on 2009-12-26T09:24:38.000Z:

I try every version of YAMJ deleting all the old files/folders except
"myiHome-moviejukebox.xml"

First i have the OpenJDK (the default that Fedora has) but i install the latest SUN
JAVA but the result is the same...

Ref : http://www.networkedmediatank.com/showthread.php?tid=32983
http://www.networkedmediatank.com/showthread.php?tid=31231&pid=302972#pid302972

At the same time when i try to run my second instance with Myihome 5.1.4 & YAMJ v1.6
it runs without problem...

@Omertron
Copy link
Member Author

Comment #3 originally posted by Omertron on 2009-12-27T07:56:49.000Z:

For some reason it looks like your class path is not being correctly used between
your two versions.

The second version (non working) is NOT picking up the library directory (lib) from
your second installation and is instead using the first installation's library
directory (classpath).

Between r1205 (v1.6) and r1244 there have been changes to TheMovieDB API
(com/moviejukebox/themoviedb/TheMovieDb class) and it isn't being picked up by the
second installation.

Please try backing up your working installation and installing the new YAMJ into that
folder. I suspect your paths don't change between installations of YAMJ

@Omertron
Copy link
Member Author

Comment #4 originally posted by Omertron on 2009-12-27T09:06:25.000Z:

I copy all the moviejukebox (r1244) folder from Imyhome v5.2.0 to the working v5.1.4
and i try to run it...

i 've got the same errors for all the new movies:

Updating data for: Serpico
java.lang.NoClassDefFoundError: com/moviejukebox/themoviedb/TheMovieDb
at
com.moviejukebox.scanner.PosterScanner.getPosterURLFromMovieDbAPI(PosterScanner.java:517)
at com.moviejukebox.scanner.PosterScanner.getPosterURL(PosterScanner.java:260)
at com.moviejukebox.plugin.ImdbPlugin.locatePosterURL(ImdbPlugin.java:498)
at com.moviejukebox.plugin.ImdbPlugin.updateImdbMediaInfo(ImdbPlugin.java:447)
at com.moviejukebox.plugin.ImdbPlugin.scan(ImdbPlugin.java:70)
at
com.moviejukebox.plugin.DatabasePluginController.scan(DatabasePluginController.java:70)
at com.moviejukebox.MovieJukebox.updateMovieData(MovieJukebox.java:1091)
at com.moviejukebox.MovieJukebox.access$100(MovieJukebox.java:90)
at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:623)
at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:615)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

java.lang.NoClassDefFoundError: com/moviejukebox/themoviedb/TheMovieDb
at
com.moviejukebox.scanner.PosterScanner.getPosterURLFromMovieDbAPI(PosterScanner.java:517)
at com.moviejukebox.scanner.PosterScanner.getPosterURL(PosterScanner.java:260)
at com.moviejukebox.plugin.ImdbPlugin.locatePosterURL(ImdbPlugin.java:498)
at com.moviejukebox.plugin.ImdbPlugin.updateImdbMediaInfo(ImdbPlugin.java:447)
at com.moviejukebox.plugin.ImdbPlugin.scan(ImdbPlugin.java:70)
at
com.moviejukebox.plugin.DatabasePluginController.scan(DatabasePluginController.java:70)
at com.moviejukebox.MovieJukebox.updateMovieData(MovieJukebox.java:1091)
at com.moviejukebox.MovieJukebox.access$100(MovieJukebox.java:90)
at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:623)
at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:615)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Failed creating thumbnail for Hostage
java.io.FileNotFoundException:
../../webapps/ROOT/feature/myiHome-moviejukebox/data/Hostage 2005 DVDRip XviD
AC3-Remalia.jpg (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at com.moviejukebox.MovieJukebox.createThumbnail(MovieJukebox.java:1337)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:815)
at com.moviejukebox.MovieJukebox$5.call(MovieJukebox.java:801)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

@Omertron
Copy link
Member Author

Comment #5 originally posted by Omertron on 2009-12-29T08:38:45.000Z:

<empty>

@Omertron
Copy link
Member Author

Comment #6 originally posted by Omertron on 2009-12-30T07:47:04.000Z:

Fixed by adding the correct java command from the moviejukebox.sh file to the user's
script.

@Omertron
Copy link
Member Author

Comment #7 originally posted by Omertron on 2009-12-30T09:11:56.000Z:

That's it !!

Everything is working again

( i had to resolve first an issue with errors like "too many files open" causing by
Fedora default value of open files = 1024)

Thank you Omertron ....

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

No branches or pull requests

1 participant