Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Server not working
13-07-2012, 11:32
Post: #1
Server not working
Hi, I seem to have an issue. On the QNAP it seems that the server is working, but no control points see it and on the computer I get:
a java stringindexoutofboundsexeption

Any steps to undertake?

Thanks, Rene
Find all posts by this user
Quote this message in a reply
13-07-2012, 12:45
Post: #2
RE: Server not working
(13-07-2012 11:32)ReneZ Wrote:  Hi, I seem to have an issue. On the QNAP it seems that the server is working, but no control points see it and on the computer I get:
a java stringindexoutofboundsexeption

Any steps to undertake?

Thanks, Rene

Which version of MinimServer have you got installed on the QNAP?

I presume you've got a red MinimWatch tray icon on the computer, with this error message.

On the computer, please select "Show log" from the red icon. You should get a window showing the MinimServer log, and this should have a full stack trace for the exception. You can press "Save as..." in the log window to save this information to a file on your computer. Please save the complete log information and attach it here.
Find all posts by this user
Quote this message in a reply
13-07-2012, 17:22 (This post was last modified: 13-07-2012 17:25 by ReneZ.)
Post: #3
RE: Server not working
Here you go

MinimServer 0.51, Copyright © 2012 Simon Nash. All rights reserved.
starting MinimServer
Warning: invalid DISCNUMBER tag value 0 ignored for file Duffy/Rockferry/Duffy - Rockferry - 04 - Stepping Stone.mp3
Warning: invalid DISCNUMBER tag value 0 ignored for file Duffy/Rockferry/Duffy - Rockferry - 07 - Mercy.mp3
Warning: invalid DISCNUMBER tag value 0 ignored for file Duffy/Rockferry/Duffy - Rockferry - 09 - I'm Scared.mp3
Warning: invalid DISCNUMBER tag value 0 ignored for file Duffy/Rockferry/Duffy - Rockferry - 02 - Warwick Avenue.mp3
Warning: invalid DISCNUMBER tag value 0 ignored for file Duffy/Rockferry/Duffy - Rockferry - 03 - Serious.mp3
Warning: invalid DISCNUMBER tag value 0 ignored for file Duffy/Rockferry/Duffy - Rockferry - 06 - Hanging On Too Long.mp3
Warning: invalid DISCNUMBER tag value 0 ignored for file Duffy/Rockferry/Duffy - Rockferry - 08 - Delayed Devotion.mp3
Warning: invalid DISCNUMBER tag value 0 ignored for file Duffy/Rockferry/Duffy - Rockferry - 05 - Syrup & Honey.mp3
Warning: invalid DISCNUMBER tag value 0 ignored for file Duffy/Rockferry/Duffy - Rockferry - 10 - Distant Dreamer.mp3
Warning: invalid DISCNUMBER tag value 0 ignored for file Duffy/Rockferry/Duffy - Rockferry - 01 - Rockferry.mp3
MinimServer:QNAPTS410-1 is running
HTTP response HTTP/1.1 404 Not Found: Unknown context root
path:
HTTP response HTTP/1.1 404 Not Found: Unknown context root favicon.ico
path:
HTTP response HTTP/1.1 404 Not Found: Unknown context root
path:
HTTP response HTTP/1.1 404 Not Found: Unknown context root favicon.ico
path:
Monitor response: SaveProperty
ErrorMsg=
Accepted incoming connection on port 9790
created socket Socket[addr=/192.168.11.3,port=54491,localport=9790]
Waiting for incoming connection on port 9790
Accepted incoming connection on port 9790
created socket Socket[addr=/192.168.11.3,port=54492,localport=9790]
Waiting for incoming connection on port 9790
GET /minimserver/Qmultimedia/Esperanza%20Spalding/Radio%20Music%20Society/Esperanza%20Spalding%20-%20Radio%20Music%20Society%20-%2005%20-%20Black%20Gold%20(special%20guest%3b%20Algebra%20Blessett).mp3/picture-856-565140.jpg HTTP/1.1
Host: 192.168.11.5:9790
GET /minimserver/Qmultimedia/Esperanza%20Spalding/Radio%20Music%20Society/Esperanza%20Spalding%20-%20Radio%20Music%20Society%20-%2004%20-%20Land%20Of%20The%20Free.mp3 HTTP/1.1
Host: 192.168.11.5:9790
User-Agent: RecivaRadio/1.0.0
Icy-MetaData: 1
Connection: close
HTTPService: path = minimserver/Qmultimedia/Esperanza%20Spalding/Radio%20Music%20Society/Esperanza%20Spalding%20-%20Radio%20Music%20Society%20-%2004%20-%20Land%20Of%20The%20Free.mp3
User-Agent: PlugPlayer/4.1.0 CFNetwork/548.1.4 Darwin/11.0.0
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: keep-alive
HTTPService: path = minimserver/Qmultimedia/Esperanza%20Spalding/Radio%20Music%20Society/Esperanza%20Spalding%20-%20Radio%20Music%20Society%20-%2005%20-%20Black%20Gold%20(special%20guest%3b%20Algebra%20Blessett).mp3/picture-856-565140.jpg
resource file absolute path is /share/Qmultimedia/Esperanza Spalding/Radio Music Society/Esperanza Spalding - Radio Music Society - 04 - Land Of The Free.mp3
resource length is 3353192
resource file absolute path is /share/Qmultimedia/Esperanza Spalding/Radio Music Society/Esperanza Spalding - Radio Music Society - 05 - Black Gold (special guest; Algebra Blessett).mp3
resource length is 9458120
writing response: 148 bytes to java.net.SocketOutputStream@14d203d
HTTP/1.1 200 OK
Accept-Ranges: bytes
Date: Thu, 21 Jun 2012 14:37:47 GMT
Content-Length: 3353192
Content-Type: audio/mpeg
Connection: close


writing response: 125 bytes to java.net.SocketOutputStream@47bebb
HTTP/1.1 200 OK
Date: Thu, 21 Jun 2012 14:37:47 GMT
Content-Length: 565140
Content-Type: image/jpeg
Connection: close


closed socket Socket[addr=/192.168.11.3,port=54491,localport=9790]
Monitor action: SaveProperty
version=1, adapter=1140959424, uriPrefix=http://192.168.1.68:56572/89b31239-bb0a-429b-b8ec-ee6456601140/Upnp/resource/
ComponentName= PropertyName=logLevel PropertyValue=info
saveProperty: compName=null propName=logLevel propValue=info
MinimServer: exception while processing action request: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1958)
at com.minimserver.Server.getContainer(Server.java:3190)
at com.minimserver.Server.findContainer(Server.java:3206)
at com.minimserver.Server.access$15300(Server.java:77)
at com.minimserver.Server$ContentDirectoryProvider.doBrowse(Server.java:10149)
at com.minimserver.Server$ContentDirectoryProvider.browse(Server.java:10104)
at org.openhome.net.device.providers.DvProviderUpnpOrgContentDirectory1$DoBrowse.ac​tionInvoked(DvProviderUpnpOrgContentDirectory1.java:978)
Monitor response: SaveProperty
ErrorMsg=
Monitor action: SaveProperty
version=1, adapter=1140959424, uriPrefix=http://192.168.1.68:56572/89b31239-bb0a-429b-b8ec-ee6456601140/Upnp/resource/
ComponentName= PropertyName=logLevel PropertyValue=info
saveProperty: compName=null propName=logLevel propValue=info


I hope it helps. As additional info I have both network connections on the QNAP TS410 connected to different subnets; one with the computers/internet/kids stuff etc and the other side to the 'audio' network with its own router and the CP and DS.

Appreciate your advise, cheers, Rene.
Find all posts by this user
Quote this message in a reply
13-07-2012, 17:48
Post: #4
RE: Server not working
Hi Rene,
Thanks for the log.

The 404 errors at the start need to be investigated, but they're not the cause of the StringIndexOutOfBoundsException crash.

The crash is caused by an invalid UPnP Browse request sent to MinimServer by the control point. What were you doing on the control point just before the crash? Which control point are you using?

Could you enable Trace from the Log window just before the control point sends the invalid Browse request? The Log will show the contents of the bad request, which will help me understand what's happening. The log with Trace will be large, but I only need to see about 100 lines just before the crash.

It's probably a good idea to add the log as a forum attachment rather than posting it inline, if that's not too inconvenient.

Many thanks for your help with investigating this problem!

Simon
Find all posts by this user
Quote this message in a reply
13-07-2012, 18:04
Post: #5
RE: Server not working
Simon, OK, will have a look (and a read-up on how to "add the log as a forum attachment"

Cheers, Rene
Find all posts by this user
Quote this message in a reply
13-07-2012, 20:07
Post: #6
RE: Server not working
(13-07-2012 18:04)ReneZ Wrote:  Simon, OK, will have a look (and a read-up on how to "add the log as a forum attachment"

Cheers, Rene

Just below the place where you type a reply, there's a section titled "Attachments". In that section, you can select a file to attach and then press the "Add Attachment" button to add the attachment to your post. Don't forget to press the "Add Attachment" button (as I've done sometimes), or your attachment won't be added. Sad
Find all posts by this user
Quote this message in a reply
14-07-2012, 14:31
Post: #7
RE: Server not working
The 404 errors at the start of the log seem to be caused by attempting to access the MinimServer HTTP port from a web browser. I've improved the error message for this.

At some stage, I'd like to replace this error message by a basic web page showing the status of MinimServer, and eventually develop this into a Web UI with capabilities similar to MinimWatch.

I've also fixed the StringIndexOutOfBoundsException crash. If the control point sends an invalid container ID in a Browse request, MinimServer will print a message to the log and return an error to the control point. This change will be in the 0.52 release, which should be available very soon.
Find all posts by this user
Quote this message in a reply
15-07-2012, 16:50
Post: #8
RE: Server not working
Hi Simon, a restart of the QNAP did it. Strangely enough Twonky was not affected. I'll keep an eye on it and let you know if anything develops. Thanks meantime!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)