YAMJ / yamj-v2

Yet Another Movie Jukebox (YAMJ) v2
GNU General Public License v3.0
28 stars 11 forks source link

some java error with allocine : java.lang.NullPointerException #2758

Closed jluc2808 closed 9 years ago

jluc2808 commented 9 years ago

from several release i get some java error which i don't understand the reason : here the log with 191eccb

[08:20:23 - main ] ThreadExecutor: java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at com.moviejukebox.tools.ThreadExecutor.waitForValues(ThreadExecutor.java:276) at com.moviejukebox.tools.ThreadExecutor.waitFor(ThreadExecutor.java:292) at com.moviejukebox.MovieJukebox.generateLibrary(MovieJukebox.java:1113) at com.moviejukebox.MovieJukebox.main(MovieJukebox.java:469) Caused by: java.lang.NullPointerException at com.moviejukebox.allocine.model.AbstractBaseInfos.getUserRating(AbstractBaseInfos.java:67) at com.moviejukebox.allocine.model.MovieInfos.getUserRating(MovieInfos.java:106) at com.moviejukebox.plugin.AllocinePlugin.updateMovieInfo(AllocinePlugin.java:263) at com.moviejukebox.plugin.AllocinePlugin.scan(AllocinePlugin.java:233) at com.moviejukebox.plugin.DatabasePluginController.scan(DatabasePluginController.java:118) at com.moviejukebox.MovieJukebox.updateMovieData(MovieJukebox.java:2054) at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:1003) at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:984) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) at com.moviejukebox.tools.ThreadExecutor$ScheduledThread.run(ThreadExecutor.java:129)

Omertron commented 9 years ago

fixed in latest yamj build

jluc2808 commented 9 years ago

still an error strange the version number is still the same 191eccb [16:28:23 - main ] ThreadExecutor: java.util.concurrent.ExecutionException: java.lang.ClassCastException: Cannot cast java.lang.Integer to java.lang.Double at java.util.concurrent.FutureTask.report(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at com.moviejukebox.tools.ThreadExecutor.waitForValues(ThreadExecutor.java:276) at com.moviejukebox.tools.ThreadExecutor.waitFor(ThreadExecutor.java:292) at com.moviejukebox.MovieJukebox.generateLibrary(MovieJukebox.java:1113) at com.moviejukebox.MovieJukebox.main(MovieJukebox.java:469) Caused by: java.lang.ClassCastException: Cannot cast java.lang.Integer to java.lang.Double at java.lang.Class.cast(Unknown Source) at com.moviejukebox.allocine.model.Statistics.getStatistic(Statistics.java:67) at com.moviejukebox.allocine.model.Statistics.getDoubleStatistic(Statistics.java:62) at com.moviejukebox.allocine.model.AbstractBaseInfos.getUserRating(AbstractBaseInfos.java:67) at com.moviejukebox.allocine.model.MovieInfos.getUserRating(MovieInfos.java:106) at com.moviejukebox.plugin.AllocinePlugin.updateMovieInfo(AllocinePlugin.java:263) at com.moviejukebox.plugin.AllocinePlugin.scan(AllocinePlugin.java:233) at com.moviejukebox.plugin.DatabasePluginController.scan(DatabasePluginController.java:118) at com.moviejukebox.MovieJukebox.updateMovieData(MovieJukebox.java:2054) at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:1003) at com.moviejukebox.MovieJukebox$3.call(MovieJukebox.java:984) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) at com.moviejukebox.tools.ThreadExecutor$ScheduledThread.run(ThreadExecutor.java:129)

Omertron commented 9 years ago

Ok, try the next build. The build version number will not change because the yamjv2 code has not changed, just the allocine code