InvalidResourceRequestException
I got an exception when my mobile (GT-N7105) tried to play a video through BubbleUPnP -> Mx Player Pro.
Attached below is the exception captured in serviio.log.
My serviio version is 1.3.1
Exception:
- Code:
2013-08-24 13:41:22,538 DEBUG [ServiioHttpService] Incoming request from /192.168.11.8:37885: GET /resource/6390/MEDIA_ITEM/MATROSKA-0/ORIGINAL HTTP/1.1, headers = [User-Agent: ,Accept: */*,Range: bytes=0-,Connection: close,Host: 192.168.11.14:8895,Cookie: (null)]]
2013-08-24 13:41:22,539 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.8
2013-08-24 13:41:22,539 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.8
2013-08-24 13:41:22,539 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.11.8, Profile=Generic DLNA profile'
2013-08-24 13:41:22,539 DEBUG [ResourceDeliveryProcessor] Request for resource 6390 and type 'MEDIA_ITEM' received
2013-08-24 13:41:22,539 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 6390 (local)
2013-08-24 13:41:22,539 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 6390)
2013-08-24 13:41:22,540 DEBUG [VideoDAOImpl] Reading a Video (id = 6390)
2013-08-24 13:41:22,540 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 6390, format MATROSKA and profile Generic DLNA profile
2013-08-24 13:41:22,540 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 6390 (local)
2013-08-24 13:41:22,540 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 6390)
2013-08-24 13:41:22,540 DEBUG [VideoDAOImpl] Reading a Video (id = 6390)
2013-08-24 13:41:22,541 DEBUG [VideoDeliveryEngine] Delivering item '6390' for client 'Identifier=192.168.11.8, Profile=Generic DLNA profile'
2013-08-24 13:41:22,541 DEBUG [VideoDeliveryEngine] Delivering file 'Sword Art Online [BDRip][01][AVC_AAC][720p_Hi10P][SOSG-DMG] (1) (1).mkv' in native format
2013-08-24 13:41:22,541 DEBUG [MediaItemDAOImpl] Getting file of media item 6390
2013-08-24 13:41:22,541 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 6390) as read
2013-08-24 13:41:22,542 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2013-08-24 13:41:22,542 DEBUG [GETMethodProcessor] Stream entity has length: 263835494
2013-08-24 13:41:22,542 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/x-matroska,Content-Length: 263835494,Date: Sat, 24 Aug 2013 05:41:22 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/1.3.1,Cache-control: no-cache,Content-Range: bytes 0-263835493/263835494,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2013-08-24 13:41:28,350 DEBUG [PlaylistDAOImpl] Reading all Playlists
2013-08-24 13:41:28,354 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2013-08-24 13:41:28,354 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2013-08-24 13:41:35,723 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2013-08-24 13:41:36,759 DEBUG [SearchManager] Committing search index
2013-08-24 13:41:38,909 DEBUG [ServiioHttpService] Incoming request from /192.168.11.8:45909: GET /resource/6389/MEDIA_ITEM/MATROSKA-0 HTTP/1.1, headers = [Host: 192.168.11.14:8895,Connection: Keep-Alive,User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)]]
2013-08-24 13:41:38,909 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.8
2013-08-24 13:41:38,910 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.11.8
2013-08-24 13:41:38,910 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.11.8, Profile=Generic DLNA profile'
2013-08-24 13:41:38,910 WARN [ResourceDeliveryProcessor] Invalid request, sending back 400 error
org.serviio.upnp.protocol.http.transport.InvalidResourceRequestException: Invalid incoming request: /resource/6389/MEDIA_ITEM/MATROSKA-0
at org.serviio.upnp.protocol.http.transport.RequestedResourceDescriptor.<init>(RequestedResourceDescriptor.java:69)
at org.serviio.upnp.protocol.http.transport.AbstractProtocolHandler.getRequestedResourceDescription(AbstractProtocolHandler.java:36)
at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:65)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:86)
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.ArrayIndexOutOfBoundsException: 3
at org.serviio.upnp.protocol.http.transport.RequestedResourceDescriptor.<init>(RequestedResourceDescriptor.java:66)
... 8 more
Video Info:
- Code:
General
Unique ID : 223233104843227073387253384236451899997 (0xA7F121D2973ED1CDB70D041B20322A5D)
Complete name : E:\movie\==== SERVIIO ====\Sword Art Online [BDRip][AVC_AAC][720p_Hi10P][SOSG-DMG]\Sword Art Online [BDRip][01][AVC_AAC][720p_Hi10P][SOSG-DMG] (1) (1) (1).mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 252 MiB
Duration : 23mn 42s
Overall bit rate : 1 484 Kbps
Encoded date : UTC 2013-08-24 05:03:52
Writing application : mkvmerge v6.3.0 ('You can't stop me!') built on Jun 28 2013 20:09:41
Writing library : libebml v1.3.0 + libmatroska v1.4.0
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 10@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 23mn 42s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Scan type : Progressive
Writing library : x264 core 130 r2274+704+39 8b99b60 tMod [10-bit@4:2:0 X86_64]
Encoding settings : cabac=1 / ref=8 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / fade_compensate=0.00 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=9 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=19.0000 / qcomp=0.80 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=3:0.80
Language : Japanese
Default : Yes
Forced : No
Matrix coefficients : BT.709
Audio #1
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 23mn 42s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Language : Japanese
Default : Yes
Forced : No
Audio #2
ID : 3
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 23mn 42s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Title : J2粵語
Language : Chinese
Default : No
Forced : No
Text #1
ID : 4
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Compression mode : Lossless
Title : 繁体中文
Language : Chinese
Default : No
Forced : No
Text #2
ID : 5
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Compression mode : Lossless
Title : 簡体中文
Language : Chinese
Default : No
Forced : No
Text #3
ID : 6
Format : VobSub
Muxing mode : zlib
Codec ID : S_VOBSUB
Codec ID/Info : The same subtitle format used on DVDs
Title : J2粵語
Language : Chinese
Default : No
Forced : No
Menu
00:00:00.000 : en:Avant
00:02:26.021 : en:A-part
00:11:02.996 : en:B-part
00:21:46.013 : en:OP
00:23:15.978 : en:C-part
00:23:34.997 : en:Preview
Thanks.
