tobexyz / yaacc-code

YAACC - UPNP Client and Server
Other
108 stars 14 forks source link

Logger class missing: Failed resolution of: Lorg/slf4j/Logger #29

Closed cweiske closed 5 years ago

cweiske commented 5 years ago

When building YAACC myself with gradlew build, I always get an exception about a missing logger class when running YAACC:

Rejecting re-init on previously-failed class java.lang.Class<org.eclipse.jetty.util.log.JettyAwareLogger>: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/slf4j/Logger;
  at java.lang.Object java.lang.Class.newInstance!() (Class.java:-2)
  at boolean org.eclipse.jetty.util.log.Log.initialized() (Log.java:161)
  at org.eclipse.jetty.util.log.Logger org.eclipse.jetty.util.log.Log.getLogger(java.lang.String) (Log.java:435)
  at org.eclipse.jetty.util.log.Logger org.eclipse.jetty.util.log.Log.getLogger(java.lang.Class) (Log.java:425)
  at void org.eclipse.jetty.util.component.AbstractLifeCycle.<clinit>() (AbstractLifeCycle.java:33)
  at void org.fourthline.cling.transport.impl.jetty.JettyServletContainer.resetServer() (JettyServletContainer.java:165)
  at void org.fourthline.cling.transport.impl.jetty.JettyServletContainer.<init>() (JettyServletContainer.java:57)
  at void org.fourthline.cling.transport.impl.jetty.JettyServletContainer.<clinit>() (JettyServletContainer.java:55)
  at org.fourthline.cling.transport.spi.StreamServer org.fourthline.cling.android.AndroidUpnpServiceConfiguration.createStreamServer(org.fourthline.cling.transport.spi.NetworkAddressFactory) (AndroidUpnpServiceConfiguration.java:110)
  at void org.fourthline.cling.transport.RouterImpl.startAddressBasedTransports(java.util.Iterator) (RouterImpl.java:427)
  at boolean org.fourthline.cling.transport.RouterImpl.enable() (RouterImpl.java:132)
  at boolean org.fourthline.cling.android.AndroidRouter.enable() (AndroidRouter.java:91)
  at void org.fourthline.cling.UpnpServiceImpl.<init>(org.fourthline.cling.UpnpServiceConfiguration, org.fourthline.cling.registry.RegistryListener[]) (UpnpServiceImpl.java:87)
  at void org.fourthline.cling.android.AndroidUpnpServiceImpl$1.<init>(org.fourthline.cling.android.AndroidUpnpServiceImpl, org.fourthline.cling.UpnpServiceConfiguration, org.fourthline.cling.registry.RegistryListener[]) (AndroidUpnpServiceImpl.java:54)
  at void org.fourthline.cling.android.AndroidUpnpServiceImpl.onCreate() (AndroidUpnpServiceImpl.java:54)
  at void android.app.ActivityThread.handleCreateService(android.app.ActivityThread$CreateServiceData) (ActivityThread.java:3216)
  at void android.app.ActivityThread.-wrap5(android.app.ActivityThread, android.app.ActivityThread$CreateServiceData) (ActivityThread.java:-1)
  at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1586)
  at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
  at void android.os.Looper.loop() (Looper.java:154)
  at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6186)
  at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
  at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:889)
  at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:779)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.slf4j.Logger" on path: DexPathList[[zip file "/data/app/de.yaacc-1/base.apk"],nativeLibraryDirectories=[/data/app/de.yaacc-1/lib/arm, /system/lib, /vendor/lib]]
  at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
  at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
  at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
  at java.lang.Object java.lang.Class.newInstance!() (Class.java:-2)
  at boolean org.eclipse.jetty.util.log.Log.initialized() (Log.java:161)
  at org.eclipse.jetty.util.log.Logger org.eclipse.jetty.util.log.Log.getLogger(java.lang.String) (Log.java:435)
  at org.eclipse.jetty.util.log.Logger org.eclipse.jetty.util.log.Log.getLogger(java.lang.Class) (Log.java:425)
  at void org.eclipse.jetty.util.component.AbstractLifeCycle.<clinit>() (AbstractLifeCycle.java:33)
  at void org.fourthline.cling.transport.impl.jetty.JettyServletContainer.resetServer() (JettyServletContainer.java:165)
  at void org.fourthline.cling.transport.impl.jetty.JettyServletContainer.<init>() (JettyServletContainer.java:57)
  at void org.fourthline.cling.transport.impl.jetty.JettyServletContainer.<clinit>() (JettyServletContainer.java:55)
  at org.fourthline.cling.transport.spi.StreamServer org.fourthline.cling.android.AndroidUpnpServiceConfiguration.createStreamServer(org.fourthline.cling.transport.spi.NetworkAddressFactory) (AndroidUpnpServiceConfiguration.java:110)
  at void org.fourthline.cling.transport.RouterImpl.startAddressBasedTransports(java.util.Iterator) (RouterImpl.java:427)
  at boolean org.fourthline.cling.transport.RouterImpl.enable() (RouterImpl.java:132)
  at boolean org.fourthline.cling.android.AndroidRouter.enable() (AndroidRouter.java:91)
  at void org.fourthline.cling.UpnpServiceImpl.<init>(org.fourthline.cling.UpnpServiceConfiguration, org.fourthline.cling.registry.RegistryListener[]) (UpnpServiceImpl.java:87)
  at void org.fourthline.cling.android.AndroidUpnpServiceImpl$1.<init>(org.fourthline.cling.android.AndroidUpnpServiceImpl, org.fourthline.cling.UpnpServiceConfiguration, org.fourthline.cling.registry.RegistryListener[]) (AndroidUpnpServiceImpl.java:54)
  at void org.fourthline.cling.android.AndroidUpnpServiceImpl.onCreate() (AndroidUpnpServiceImpl.java:54)
  at void android.app.ActivityThread.handleCreateService(android.app.ActivityThread$CreateServiceData) (ActivityThread.java:3216)
  at void android.app.ActivityThread.-wrap5(android.app.ActivityThread, android.app.ActivityThread$CreateServiceData) (ActivityThread.java:-1)
  at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1586)
  at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
  at void android.os.Looper.loop() (Looper.java:154)
  at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6186)
  at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
  at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:889)
  at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:779)

This is with a Nexus 7 tablet, Android 7.1.2 (LineageOS 14.1) and YAACC 2.2.0

tobexyz commented 5 years ago

fixed with version 2.3.0