Error in log
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Error in log
Updated to 2.5.2.1 today and this appeared at the end of my log.
Any idea? A failure on my end?
Code: Select all
A serious error occurred during PMS init
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 2
at com.google.gson.Gson.fromJson(Gson.java:806) ~[ums.jar:2.5.2.1]
at com.google.gson.Gson.fromJson(Gson.java:761) ~[ums.jar:2.5.2.1]
at com.google.gson.Gson.fromJson(Gson.java:710) ~[ums.jar:2.5.2.1]
at net.pms.configuration.MapFileConfiguration.parse(MapFileConfiguration.java:87) ~[ums.jar:2.5.2.1]
at net.pms.dlna.RootFolder.getVirtualFolders(RootFolder.java:249) ~[ums.jar:2.5.2.1]
at net.pms.dlna.RootFolder.discoverChildren(RootFolder.java:106) ~[ums.jar:2.5.2.1]
at net.pms.configuration.RendererConfiguration.getRootFolder(RendererConfiguration.java:198) ~[ums.jar:2.5.2.1]
at net.pms.PMS.getRootFolder(PMS.java:111) [ums.jar:2.5.2.1]
at net.pms.PMS.init(PMS.java:530) [ums.jar:2.5.2.1]
at net.pms.PMS.createInstance(PMS.java:839) [ums.jar:2.5.2.1]
at net.pms.PMS.main(PMS.java:926) [ums.jar:2.5.2.1]
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 2
at com.google.gson.stream.JsonReader.expect(JsonReader.java:339) ~[ums.jar:2.5.2.1]
at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:306) ~[ums.jar:2.5.2.1]
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:79) ~[ums.jar:2.5.2.1]
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60) ~[ums.jar:2.5.2.1]
at com.google.gson.Gson.fromJson(Gson.java:795) ~[ums.jar:2.5.2.1]
... 10 common frames omitted
Re: Error in log
Still have the same problem with 2.5.2.2. und jre 1.7.0_17...
Here is my ums_dbg.zip.
Hope anybody can help.
Here is my ums_dbg.zip.
Hope anybody can help.
- Optimus_prime
- Posts: 678
- Joined: Fri Jun 01, 2012 6:39 pm
- Location: Sydney, Australia
Re: Error in log
Do you always run UMS on Server 2008 R2? I've never tried it before but i have a working machine with it installed so i can try and replicate it for you.
Maybe try running it as administrator but i can't think of anything else
Maybe try running it as administrator but i can't think of anything else
How Ask For Support
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
- SharkHunter
- Developer
- Posts: 648
- Joined: Fri Jun 01, 2012 9:36 pm
Re: Error in log
There is some fault in your Virtual folders conf file. At the very first line. Those file are sadly not part of the debug packer (not to self make the packer include those). Look at line 1 in that file..And upload it
We reject: kings, presidents and voting.
We believe in: rough consensus and running code.
We believe in: rough consensus and running code.
Re: Error in log
Jup, Server 2008 R2 is my media server, where XBMC does gets all its data from and that's the reason I also installed UMS there. Was working before.Optimus_prime wrote:Do you always run UMS on Server 2008 R2? I've never tried it before but i have a working machine with it installed so i can try and replicate it for you.
Maybe try running it as administrator but i can't think of anything else
I've created the virtual folder conf file based on the conversation in this threadSharkHunter wrote:There is some fault in your Virtual folders conf file. At the very first line. Those file are sadly not part of the debug packer (not to self make the packer include those). Look at line 1 in that file..And upload it
The content is:
Code: Select all
[
{
"name" : "Series",
"files" : ["X:\\","Y:\\","Z:\\"]
}
]
- SharkHunter
- Developer
- Posts: 648
- Joined: Fri Jun 01, 2012 9:36 pm
Re: Error in log
Your json is ok if I run it in some json validators (haven't tried gson but I don't think there is any other result). Since it complains on the first line (and basically first char) I suspect you got some weird char BEFORE the [ (that probably isn't seen). Try opening it in another editor and see if there is a crappy char there (I got one editor on windows that when I create a new file always add some crap at the top).
Or copy UMS.conf to your josn file mark everything delete and then add the stuff you want.
Or copy UMS.conf to your josn file mark everything delete and then add the stuff you want.
We reject: kings, presidents and voting.
We believe in: rough consensus and running code.
We believe in: rough consensus and running code.
Re: Error in log
I've opened the file with notepad++ and tried the Windows editor and can't find a special char.
So I decided to upload it to my box aswell (get it here). Could it be the encoding? If so, could you add a encoding check + error message in an upcoming version, so everyone knows what they did wrong? Or probably I just should wait till a new version supports the virtual folder option in the main config GUI and creates a working file itself?
So I decided to upload it to my box aswell (get it here). Could it be the encoding? If so, could you add a encoding check + error message in an upcoming version, so everyone knows what they did wrong? Or probably I just should wait till a new version supports the virtual folder option in the main config GUI and creates a working file itself?
- SharkHunter
- Developer
- Posts: 648
- Joined: Fri Jun 01, 2012 9:36 pm
Re: Error in log
Yes it could be encoding. I think UMS expects all files it reads to be UTF-8.
We reject: kings, presidents and voting.
We believe in: rough consensus and running code.
We believe in: rough consensus and running code.
Re: Error in log
It is UTF-8 without BOM, like the UMS.conf... O.o
Re: Error in log
Some editors adds special "invisible" char at the beginning for files in UTF-8/16 encodings so maybe it is problem?
Try to open it in pure notepad and save it as ANSI. Check that all is OK in file and load to UMS again.
Try to open it in pure notepad and save it as ANSI. Check that all is OK in file and load to UMS again.