Post Sat Nov 09, 2013 12:49 am

item cache failure

This post provides the detail for bug report 726 @ https://bitbucket.org/xnejp03/serviio/i ... he-failure

If the extract of a cached item returns a null value for ContentUrl in the ContentUrlContainer, serviio correctly reports that it cannot add the item to the cache, however subsequent refreshes attempt to get the non existent cached item, resulting in an error message at the end of refresh and an erroneous offset in the menu of items following the failed item and empty menu item(s) at the end.
Here are the log enteries and the menu image.
  Code:
2013-11-07 18:39:14,620 DEBUG [FeedItemUrlExtractor] Pogotv: Starting extraction of url for item: BT Sport 1
2013-11-07 18:39:15,729 DEBUG [FeedItemUrlExtractor] Pogotv: call up4free
2013-11-07 18:39:16,395 DEBUG [FeedItemUrlExtractor] ASPExtract: No extract support for source http://goodcast.pw/player.js
2013-11-07 18:39:16,395 DEBUG [FeedItemUrlExtractor] Pogotv: Extracted Url for BT Sport 1
2013-11-07 18:39:16,396 DEBUG [FeedItemUrlExtractor] Pogotv: Finished extraction of url: ContentURLContainer [fileType=VIDEO, thumbnailUrl=http://www.pogotv.eu/images/bt_sport_1.jpg, expiresImmediately=true, cacheKey=Pogotv_bt111&width=640&height=480, live=true, userAgent=Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1]
2013-11-07 18:39:16,396 DEBUG [WebResourceParser] Stored item with key 'Pogotv_BT Sport 1' to cache
2013-11-07 18:39:16,396 DEBUG [WebResourceParser] Cannot add item of web resource Pogotv because of invalid metadata. Message: Unknown feed entry URL.
2013-11-07 18:39:16,396 DEBUG [FeedItemUrlExtractor] Pogotv: Starting extraction of url for item: BT Sport 2
2013-11-07 18:39:17,491 DEBUG [FeedItemUrlExtractor] Pogotv: call up4free
2013-11-07 18:39:17,937 DEBUG [FeedItemUrlExtractor] ASPExtract: No extract support for source http://goodcast.pw/player.js
2013-11-07 18:39:17,937 DEBUG [FeedItemUrlExtractor] Pogotv: Extracted Url for BT Sport 2
2013-11-07 18:39:17,938 DEBUG [FeedItemUrlExtractor] Pogotv: Finished extraction of url: ContentURLContainer [fileType=VIDEO, thumbnailUrl=http://www.pogotv.eu/images/bt_sport_2.jpg, expiresImmediately=true, cacheKey=Pogotv_bt222222&width=640&height=480, live=true, userAgent=Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1]
2013-11-07 18:39:17,938 DEBUG [WebResourceParser] Stored item with key 'Pogotv_BT Sport 2' to cache
2013-11-07 18:39:17,938 DEBUG [WebResourceParser] Cannot add item of web resource Pogotv because of invalid metadata. Message: Unknown feed entry URL.

2013-11-07 19:39:24,832 DEBUG [WebResourceParser] Item with key 'Pogotv_BT Sport 1' already found in the cache, skipping URL extraction
2013-11-07 19:39:24,832 DEBUG [WebResourceParser] Added cached resource item 15: 'BT Sport 1' (null)
2013-11-07 19:39:24,832 DEBUG [WebResourceParser] Item with key 'Pogotv_BT Sport 2' already found in the cache, skipping URL extraction
2013-11-07 19:39:24,832 DEBUG [WebResourceParser] Added cached resource item 16: 'BT Sport 2' (null)
2013-11-07 19:39:24,832 DEBUG [WebResourceParser] Item with key 'Pogotv_Star Sports' already found in the cache, skipping URL extraction

2013-11-07 19:39:31,283 DEBUG [OnlineLibraryManager] Resource http://www.pogotv.eu?section=1&refresh=60 will expire in the cache on Thu Nov 07 20:44:00 EST 2013
2013-11-07 19:39:31,285 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will remove the item from the feed and will continue
java.lang.NullPointerException
   at org.serviio.util.HttpUtils.isHttpUrl(HttpUtils.java:42)
   at org.serviio.library.online.metadata.OnlineItem.isCompletelyLoaded(OnlineItem.java:201)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:215)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:116)
2013-11-07 19:39:31,285 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will remove the item from the feed and will continue
java.lang.NullPointerException
   at org.serviio.util.HttpUtils.isHttpUrl(HttpUtils.java:42)
   at org.serviio.library.online.metadata.OnlineItem.isCompletelyLoaded(OnlineItem.java:201)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:215)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:116)
Attachments
bug.jpg
bug.jpg (182.96 KiB) Viewed 7481 times