Page 1 of 1

Problem getting folder content on version 1.10.1, OK on 1.10

PostPosted: Sun Apr 07, 2019 8:20 pm
by Daphazard
I use serviio to stream music to an app on my mobile phone (usually Hi-Fi Cast, but I've tried VLC too; same problems on both). With 1.10, this works fine.

Since upgrading to 1.10.1, the app can no longer list the shared files. Instead, it shows this error:
Could not retrieve data from media server: Current state of service prevents invoking that action. Connection error or no response received. (501)


Curiously, the app can still play the music files it remembers from the last time I used it. It seems it can still get files from serviio, just not the list of what's available.
I attempted to play the file with serviio turned off in case the app was caching them; it did not work, confirming that it gets the file from serviio.

Downgrading to 1.10 makes file listing work again. I've tried different settings (firewall on/off etc) and the only thing that makes a difference to whether it works or not is serviio's version.

I guess this is more of a bug report than a request for help. Please let me know if I can get you some information that would help diagnose the issue.

EDIT: Sorry, I forgot the basics.
Serviio is running on KDE Neon 5.15 (based on Ubuntu 18.04)
openjdk 10.0.2
x64

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Mon Apr 08, 2019 6:44 pm
by zip
is there a way to clean the cache on the player? It might be using URLs from the older version, which don't work on the new version

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Tue Apr 09, 2019 6:33 am
by Daphazard
To test that, I cleared all the app's data using the Android OS. When I opened it, it was like I had never used it.

I guided it back to DLNA servers on the local network and found mine. It tried to load but failed with the same message as above. Switching back to 1.10, it got the listing on the first try.

I repeated the same test with VLC and got results that I think are equivalent (the server doesn't appear at all there if I use 1.10.1, it does with 1.10).

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Tue Apr 09, 2019 3:55 pm
by zip
can you post serviio.log from 1.10.1 ?

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Tue Apr 09, 2019 5:40 pm
by Daphazard
I've attached a log file. During that run, I just started 1.10.1, tried to access it from the phone, then stopped it.

In addition, the following appeared in the terminal, at more or less the exact moment the error appeared on the phone:
Exception in thread "Thread-43" java.lang.NullPointerException user@kde-neon
at org.serviio.upnp.protocol.soap.SOAPMessageParser.parseSOAPMessage(SOAPMessageParser.java:48)
at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeService(ServiceInvoker.java:70)
at org.serviio.upnp.webserver.ServiceControlRequestHandler.handleRequest(ServiceControlRequestHandler.java:65)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:66)
at org.apache.http.protocol.HttpService.doService(HttpService.java:423)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:78)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:341)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:204)

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Tue Apr 09, 2019 9:05 pm
by jk50
Serviio 1.10.1 does not work with java version 10 .
https://forum.serviio.org/viewtopic.php?f=5&t=24926
Try java 8 or maybe java 11

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Tue Apr 09, 2019 9:39 pm
by zip
^ yes. Java 8 is recommended, 11 should work too. I think I have a fix for Java 10 in 2.0

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Wed Apr 10, 2019 5:33 pm
by Daphazard
I see, thanks. I'll look into upgrading to 11.

EDIT: I'm afraid that didn't work. Java is indeed 11 ("java -version" outputs "openjdk version "11.0.1" 2018-10-16") but the problem is still there.
EDIT 2: It does work with 8.

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Fri Apr 26, 2019 12:00 pm
by skiaccianos
It was used to work with 8, get this whit 11:

  Code:
matteo@TMP258-MG:~$ Exception in thread "Thread-116" java.lang.NullPointerException
        at org.serviio.upnp.protocol.soap.SOAPMessageParser.parseSOAPMessage(SOAPMessageParser.java:48)
        at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeService(ServiceInvoker.java:70)
        at org.serviio.upnp.webserver.ServiceControlRequestHandler.handleRequest(ServiceControlRequestHandler.java:65)
        at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:66)
        at org.apache.http.protocol.HttpService.doService(HttpService.java:423)
        at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:78)
        at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:341)
        at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:204)
matteo@TMP258-MG:~$
matteo@TMP258-MG:~$ java --version
openjdk 11.0.3 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu1, mixed mode, sharing)
matteo@TMP258-MG:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.04
DISTRIB_CODENAME=disco
DISTRIB_DESCRIPTION="Ubuntu 19.04"


My BRAVIA can see the server but not the serviio icon nor any content. Unfortunately on the latest Ubuntu java 8 is no more available...

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Fri Apr 26, 2019 2:40 pm
by jk50
You can install java 8 from ubuntu 18.10, or use a ppa ,here's how
https://askubuntu.com/questions/1135045/how-to-install-the-openjdk-8-ubuntu-19-04

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Fri Apr 26, 2019 5:40 pm
by zip
skiaccianos wrote:It was used to work with 8, get this whit 11:.

Can you try with the latest beta?

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Fri Apr 26, 2019 6:43 pm
by skiaccianos
I get the err below but v 2.0-SNAPSHOT works perfectly with jdk-11.

  Code:
matteo@TMP258-MG:~$ Exception in thread "Notifier: Thread-44" java.lang.StackOverflowError
        at java.base/sun.security.ssl.TransportContext.isOutboundDone(TransportContext.java:434)
        at java.base/sun.security.ssl.SSLEngineImpl.isOutboundDone(SSLEngineImpl.java:751)
        at java.base/sun.security.ssl.SSLEngineImpl.writeRecord(SSLEngineImpl.java:157)
        at java.base/sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:136)
        at java.base/sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:116)
        at java.base/javax.net.ssl.SSLEngine.wrap(SSLEngine.java:479)
        at org.simpleframework.transport.Handshake.write(Handshake.java:368)
        at org.simpleframework.transport.Handshake.write(Handshake.java:377)
        at org.simpleframework.transport.Handshake.write(Handshake.java:377)
        at org.simpleframework.transport.Handshake.write(Handshake.java:377)
        at org.simpleframework.transport.Handshake.write(Handshake.java:377)
        at org.simpleframework.transport.Handshake.write(Handshake.java:352)
        at org.simpleframework.transport.Handshake.exchange(Handshake.java:290)
        at org.simpleframework.transport.Handshake.process(Handshake.java:263)
        at org.simpleframework.transport.Handshake.resume(Handshake.java:244)
        at org.simpleframework.transport.Task.execute(Task.java:138)
        at org.simpleframework.transport.Task.run(Task.java:103)
        at org.simpleframework.transport.Handshake.resume(Handshake.java:247)
        at org.simpleframework.transport.Task.execute(Task.java:138)
        at org.simpleframework.transport.Task.run(Task.java:103)
        at org.simpleframework.transport.Handshake.resume(Handshake.java:247)
        at org.simpleframework.transport.Task.execute(Task.java:138)
        at org.simpleframework.transport.Task.run(Task.java:103)
        at org.simpleframework.transport.Handshake.resume(Handshake.java:247)
        at org.simpleframework.transport.Task.execute(Task.java:138)
        at org.simpleframework.transport.Task.run(Task.java:103)


Thank you zip, serviio keep being great software!

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Tue Apr 30, 2019 8:56 pm
by carpler
I got the same problem.
Serviio 1.10.1 on Ubuntu Server 18.04: I can see Serviio running on my Samsung TV and LG blu-ray, but no folder contents are displayed.
I think that Java 11 is installed on my machine (not sure how to know the exact version number, but the Server is updated with all recents updates).
It seems that this problem affects other users (I see also this thread on this forum).
Can be released a fix version for this problem before Serviio 2.0?

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Tue Apr 30, 2019 11:30 pm
by atc98092
carpler wrote:I got the same problem.
Serviio 1.10.1 on Ubuntu Server 18.04: I can see Serviio running on my Samsung TV and LG blu-ray, but no folder contents are displayed.
I think that Java 11 is installed on my machine (not sure how to know the exact version number, but the Server is updated with all recents updates).
It seems that this problem affects other users (I see also this thread on this forum).
Can be released a fix version for this problem before Serviio 2.0?


I believe the problem with Java 11 is resolved with Serviio 2.0, but Zip will need to confirm that.

Re: Problem getting folder content on version 1.10.1, OK on

PostPosted: Thu May 09, 2019 10:46 am
by carpler
Installed the Serviio 2.0 beta 2: now I can browse my directory from my TV Samsung as before.
Not tested for long time, but all seems to works again.