Subtitle files causing error when no preferred language is selected

Issue #658 resolved
Former user created an issue

I suppose this bug is introduced with 1.2.1 version to which I updated yesterday. I have directories for example with multiple seasons of some series, early seasons are AVIs, new seasons are MP4s usually. It was no problem at all until I updated serviio to 1.2.1. Now I can't access files in such directories. I can access any other directories which contain video files of only one type. It applies to both real directories and virtual directories, such as Series directory - I enter it, have virtual directories with season numbers, and after entering one of them TV reports that is unable to list files, just the same way as I would enter real directory by navigating to it.

Comments (7)

  1. Petr Nejedly repo owner

    can you see the files but cannot play? if yes, post detailed log of playing the file. alternatively open a forum topic

  2. Former user Account Deleted

    No, when I enter either virtual or real directory with mixed types of files I get the message that files cannot be accessed, then I only can accept the message and I'm the directory that looks like empty, though it shouldn't be.

    By forum you mean here? http://forum.serviio.org/ If yes, then where exactly? I don't see any bugs section there, that's why I reported here, at bug tracker.

  3. Petr Nejedly repo owner

    Subtitles related

    2013-04-23 20:30:34,121 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:241)
        at org.serviio.upnp.service.contentdirectory.definition.ContainerNode.findContainerItems(ContainerNode.java:181)
        at org.serviio.upnp.service.contentdirectory.definition.ContainerNode.retrieveContainerItems(ContainerNode.java:83)
        at org.serviio.upnp.service.contentdirectory.definition.ActionNode.retrieveContainerItems(ActionNode.java:135)
        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.GeneratedMethodAccessor19.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:77)
        at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
        at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:192)
    Caused by: java.lang.NullPointerException
        at org.serviio.util.CollectionUtils.findIndexOf(CollectionUtils.java:59)
        at org.serviio.delivery.subtitles.SubtitlesService$SubtitleFilesComparator.compare(SubtitlesService.java:244)
        at org.serviio.delivery.subtitles.SubtitlesService$SubtitleFilesComparator.compare(SubtitlesService.java:214)
        at java.util.Arrays.mergeSort(Unknown Source)
        at java.util.Arrays.sort(Unknown Source)
        at java.util.Collections.sort(Unknown Source)
        at org.serviio.delivery.subtitles.SubtitlesService.selectBestSubtitleFile(SubtitlesService.java:198)
        at org.serviio.delivery.subtitles.SubtitlesService.findExternalSubtitleFile(SubtitlesService.java:166)
        at org.serviio.delivery.subtitles.SubtitlesService.isSoftSubsAvailable(SubtitlesService.java:74)
        at org.serviio.upnp.service.contentdirectory.command.ResourceValuesBuilder.generateSubtitlesResource(ResourceValuesBuilder.java:48)
        at org.serviio.upnp.service.contentdirectory.command.ObjectValuesBuilder.buildObjectValues(ObjectValuesBuilder.java:102)
        at org.serviio.upnp.service.contentdirectory.command.AbstractEntityItemCommand.generateValuesForEntity(AbstractEntityItemCommand.java:127)
        at org.serviio.upnp.service.contentdirectory.command.AbstractEntityItemCommand.retrieveList(AbstractEntityItemCommand.java:57)
        at org.serviio.upnp.service.contentdirectory.command.AbstractCommand.retrieveItemList(AbstractCommand.java:129)
        ... 17 more
    
  4. Log in to comment