دعم الموقع

Hey there,

so I'm trying to use the wrapper 'themoviedbapi'.

For my first steps to understand the wrapper I wrote a main-Method in a new package called 'tmdb_api_to_db' with following code:

package tmdb_api_to_db;

import info.movito.themoviedbapi.TmdbApi;
import info.movito.themoviedbapi.TmdbMovies;
import info.movito.themoviedbapi.model.MovieDb;

public class Test {
    public static void main(String[]args){
        TmdbMovies movies = new TmdbApi("########################").getMovies();
        MovieDb movie = movies.getMovie(5353, "en");    
    }
}

Unfortunately this results in following message:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

I never worked with slf4j nor I have any idea what I'm doing wrong. Any ideas what I'm doing wrong? Even if I need to bind the slf4j-bundle to the wrapper - I have no idea how to do this? The documentation is all greek to me..

Edit: Forgot to tell you: I'm using Eclipse Neon on Windows 7.

2 ردود (على هذه الصفحة 1 من 1)

Jump to last post

Guess I figured it out. Seems like there is a dependency missing in the pom.xml of the project of 'themoviedbapi' causing this error. Adding

        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>${version.slf4j}</version>
        </dependency>
resolved the error. Hope this helps anybody searching for a solution for the same problem...

Thanks for the note! Hopefully it helps someone else out in the future.

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول