Page 1 of 1

Unable to open Online content directory after sometime

PostPosted: Tue Aug 21, 2012 5:42 pm
by xs2inattar
For an online web-resource, the online content directory si working fine but after a couple of minutes I am unable to open that particular online content direcotry.

Following exception is in the logs.

  Code:
2012-08-21 13:34:36,805 WARN  [ContentDirectory] Browse for object id V_OF^FOL_FD132 failed with exception: null
java.lang.NullPointerException
   at org.serviio.upnp.service.contentdirectory.ContentDirectory.setupSuccessfulResult(ContentDirectory.java:335)
   at org.serviio.upnp.service.contentdirectory.ContentDirectory.Browse(ContentDirectory.java:153)
   at sun.reflect.GeneratedMethodAccessor647.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeOperation(ServiceInvoker.java:253)
   at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeService(ServiceInvoker.java:93)
   at org.serviio.upnp.webserver.ServiceControlRequestHandler.handleRequest(ServiceControlRequestHandler.java:66)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:191)
2012-08-21 13:34:42,438 ERROR [ContainerNode] Cannot retrieve results of action command: Cannot execute library command for list: null
org.serviio.upnp.service.contentdirectory.command.CommandExecutionException: Cannot execute library command for list: null
   at org.serviio.upnp.service.contentdirectory.command.AbstractCommand.retrieveItemList(AbstractCommand.java:135)
   at org.serviio.upnp.service.contentdirectory.definition.ContainerNode.executeListAction(ContainerNode.java:242)
   at org.serviio.upnp.service.contentdirectory.definition.ActionNode.retrieveContainerItems(ActionNode.java:131)
   at org.serviio.upnp.service.contentdirectory.ContentDirectoryEngine.browse(ContentDirectoryEngine.java:102)
   at org.serviio.upnp.service.contentdirectory.ContentDirectory.Browse(ContentDirectory.java:152)
   at sun.reflect.GeneratedMethodAccessor647.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeOperation(ServiceInvoker.java:253)
   at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeService(ServiceInvoker.java:93)
   at org.serviio.upnp.webserver.ServiceControlRequestHandler.handleRequest(ServiceControlRequestHandler.java:66)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:191)
Caused by: java.lang.NullPointerException
   at org.serviio.external.FFMPEGWrapper.getTargetVideoDimensions(FFMPEGWrapper.java:584)
   at org.serviio.delivery.resource.VideoDeliveryEngine.retrieveTranscodedMediaInfo(VideoDeliveryEngine.java:106)
   at org.serviio.delivery.resource.VideoDeliveryEngine.retrieveTranscodedMediaInfo(VideoDeliveryEngine.java:45)
   at org.serviio.delivery.resource.AbstractDeliveryEngine.getMediaInfoForProfile(AbstractDeliveryEngine.java:81)
   at org.serviio.delivery.MediaResourceRetrievalStrategy.getMediaInfoForAvailableProfiles(MediaResourceRetrievalStrategy.java:74)
   at org.serviio.upnp.service.contentdirectory.command.ResourceValuesBuilder.buildResources(ResourceValuesBuilder.java:58)
   at org.serviio.upnp.service.contentdirectory.command.AbstractListOnlineObjectsByHierarchyCommand.retrieveList(AbstractListOnlineObjectsByHierarchyCommand.java:126)
   at org.serviio.upnp.service.contentdirectory.command.AbstractCommand.retrieveItemList(AbstractCommand.java:129)
   ... 15 more




Detailed log file is also attached.

Re: Unable to open Online content directory after sometime

PostPosted: Thu Aug 23, 2012 2:25 am
by xs2inattar
Petr, can you please take a look at the logs when you some time.

Re: Unable to open Online content directory after sometime

PostPosted: Mon Aug 27, 2012 10:21 pm
by zip
will do, looks like a bug

Re: Unable to open Online content directory after sometime

PostPosted: Sun Nov 04, 2012 1:53 pm
by mbat11
hi,
I think I've just experienced a similar problem.
I've added an RTP source, when I do the check it says it is ok,
but when I try to see it on the TV (Samsung D) I cannot see it and the following error is logged:

  Code:
2012-11-04 14:44:40,203 ERROR [ContainerNode] Cannot retrieve results of action command: Cannot execute library command for list: null
org.serviio.upnp.service.contentdirectory.command.CommandExecutionException: Cannot execute library command for list: null
   at org.serviio.upnp.service.contentdirectory.command.AbstractCommand.retrieveItemList(AbstractCommand.java:135)
   at org.serviio.upnp.service.contentdirectory.definition.ContainerNode.executeListAction(ContainerNode.java:242)
   at org.serviio.upnp.service.contentdirectory.definition.ContainerNode.findContainerItems(ContainerNode.java:182)
   at org.serviio.upnp.service.contentdirectory.definition.ContainerNode.retrieveContainerItems(ContainerNode.java:83)
   at org.serviio.upnp.service.contentdirectory.ContentDirectoryEngine.browse(ContentDirectoryEngine.java:102)
   at org.serviio.upnp.service.contentdirectory.ContentDirectory.Browse(ContentDirectory.java:152)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeOperation(ServiceInvoker.java:253)
   at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeService(ServiceInvoker.java:93)
   at org.serviio.upnp.webserver.ServiceControlRequestHandler.handleRequest(ServiceControlRequestHandler.java:66)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:191)
Caused by: java.lang.NullPointerException
   at org.serviio.external.FFMPEGWrapper.getTargetVideoDimensions(FFMPEGWrapper.java:584)
   at org.serviio.delivery.resource.VideoDeliveryEngine.retrieveTranscodedMediaInfo(VideoDeliveryEngine.java:106)
   at org.serviio.delivery.resource.VideoDeliveryEngine.retrieveTranscodedMediaInfo(VideoDeliveryEngine.java:45)
   at org.serviio.delivery.resource.AbstractDeliveryEngine.getMediaInfoForProfile(AbstractDeliveryEngine.java:81)
   at org.serviio.delivery.MediaResourceRetrievalStrategy.getMediaInfoForAvailableProfiles(MediaResourceRetrievalStrategy.java:74)
   at org.serviio.upnp.service.contentdirectory.command.ResourceValuesBuilder.buildResources(ResourceValuesBuilder.java:58)
   at org.serviio.upnp.service.contentdirectory.command.AbstractListOnlineObjectsByHierarchyCommand.retrieveList(AbstractListOnlineObjectsByHierarchyCommand.java:126)
   at org.serviio.upnp.service.contentdirectory.command.AbstractCommand.retrieveItemList(AbstractCommand.java:129)
   ... 17 more


VLC plays the stream correctly.
Hope this could help.
Max.

Re: Unable to open Online content directory after sometime

PostPosted: Wed Nov 07, 2012 5:43 pm
by zip
can you post ffmpeg -i for the stream?