cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

river
06-03 10:59:28.489: E/AndroidRuntime(9746): java.lang.ExceptionInInitializerError
06-03 10:59:28.489: E/AndroidRuntime(9746): at org.fourthline.cling.android.AndroidUpnpServiceConfiguration.createStreamServer(AndroidUpnpServiceConfiguration.java:110)
06-03 10:59:28.489: E/AndroidRuntime(9746): at org.fourthline.cling.transport.RouterImpl.startAddressBasedTransports(RouterImpl.java:427)
06-03 10:59:28.489: E/AndroidRuntime(9746): at org.fourthline.cling.transport.RouterImpl.enable(RouterImpl.java:132)
06-03 10:59:28.489: E/AndroidRuntime(9746): at org.fourthline.cling.android.AndroidRouter.enable(AndroidRouter.java:92)
06-03 10:59:28.489: E/AndroidRuntime(9746): at org.fourthline.cling.UpnpServiceImpl.<init>(UpnpServiceImpl.java:87)
06-03 10:59:28.489: E/AndroidRuntime(9746): at org.fourthline.cling.android.AndroidUpnpServiceImpl$1.<init>(AndroidUpnpServiceImpl.java:54)
06-03 10:59:28.489: E/AndroidRuntime(9746): at org.fourthline.cling.android.AndroidUpnpServiceImpl.onCreate(AndroidUpnpServiceImpl.java:54)
06-03 10:59:28.489: E/AndroidRuntime(9746): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2384)
06-03 10:59:28.489: E/AndroidRuntime(9746): at android.app.ActivityThread.access$1600(ActivityThread.java:136)
06-03 10:59:28.489: E/AndroidRuntime(9746): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
06-03 10:59:28.489: E/AndroidRuntime(9746): at android.os.Handler.dispatchMessage(Handler.java:99)
06-03 10:59:28.489: E/AndroidRuntime(9746): at android.os.Looper.loop(Looper.java:137)
06-03 10:59:28.489: E/AndroidRuntime(9746): at android.app.ActivityThread.main(ActivityThread.java:4881)
06-03 10:59:28.489: E/AndroidRuntime(9746): at java.lang.reflect.Method.invokeNative(Native Method)
06-03 10:59:28.489: E/AndroidRuntime(9746): at java.lang.reflect.Method.invoke(Method.java:511)
06-03 10:59:28.489: E/AndroidRuntime(9746): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:808)
06-03 10:59:28.489: E/AndroidRuntime(9746): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:575)
06-03 10:59:28.489: E/AndroidRuntime(9746): at dalvik.system.NativeStart.main(Native Method)
06-03 10:59:28.489: E/AndroidRuntime(9746): Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server
06-03 10:59:28.489: E/AndroidRuntime(9746): at org.fourthline.cling.transport.impl.jetty.JettyServletContainer.resetServer(JettyServletContainer.java:132)
06-03 10:59:28.489: E/AndroidRuntime(9746): at org.fourthline.cling.transport.impl.jetty.JettyServletContainer.<init>(JettyServletContainer.java:56)
06-03 10:59:28.489: E/AndroidRuntime(9746): at org.fourthline.cling.transport.impl.jetty.JettyServletContainer.<clinit>(JettyServletContainer.java:54)


can you help me? error  。
How I  can do ?
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

DREDD112
As it says  Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server, you need to add jetty-server to dependencies.
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

DREDD112
In reply to this post by river
and heralding further stacktraces like above, take a look at this first https://github.com/4thline/cling/blob/master/core/pom.xml
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

river
In reply to this post by DREDD112
Thank you in advance for your reply!
Did little jars!

I have a question,please help me!!!

Play the English name of the song is not a problem, but not always play Chinese name song
http://192.168.20.128:42926/storage/sdcard0/zuijiu.mp3 -->ok
http://192.168.20.128:42926/storage/sdcard0/醉酒.mp3--->error

this is code:
 upnpService.getControlPoint().execute(new SetAVTransportURI(new UnsignedIntegerFourBytes(0), service, url, "NO METADATA");

How can I do?please。。
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

river
In reply to this post by DREDD112
Thank you in advance for your reply! I will look.

I have a question,please help me!!!

Play the English name of the song is not a problem, but not always play Chinese name song
http://192.168.20.128:42926/storage/sdcard0/zuijiu.mp3 -->ok
http://192.168.20.128:42926/storage/sdcard0/醉酒.mp3--->error

this is code:
 upnpService.getControlPoint().execute(new SetAVTransportURI(new UnsignedIntegerFourBytes(0), service, url, "NO METADATA");

How can I do?please。。
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

DREDD112
Can't tell right off, man, I would go with debugger and see where it fails.
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

river
thank you ,I have found the reason.
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

DREDD112
tres bien, glad you made it ;)
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

river
In reply to this post by river
 How do you do
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

river
In reply to this post by DREDD112
i have added jetty-server jar,but is error;
can you tell me need those jar?
Thank you
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

DREDD112
apparently you added it in a wrong way or wrong version of the lib
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0-alpha3 Caused by: java.lang.NoClassDefFoundError: org.eclipse.jetty.server.Server

river
for android ;

libs:

cling-core-2.0-alpha3.jar
cling-support-2.0-alpha3.jar
jetty-server-8.1.14.v20131031.jar
seamless-http-1.0-alpha3.jar
seamless-util-1.0-alpha3.jar
seamless-xml-1.0-alpha3.jar

please tell me ,Can you tell me what less?