Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Locked Having a problem loading panel pro
Hi Everyone I'm getting a parse error when I?try loading panel pro?here is the
exception:org.jdom2.input.JDOMParseException: error on line 20933: cvc-minlenght-valid: value '1' with lenght = '1' is not facet-valid with respect to minlenght '2' for type 'systemNameType'.? I need some help to find this error? Thanks Phil |
It would be useful to know which version of JMRI you are running now, I
suspect you just updated, so also the version you were running. The more recent versions have tighter checking of the panel files. The results are rejecting the load of a file to point to a problem instead of (many times) silently not doing something during the load. If you can post the file on the group site in the 'Problems being worked on' we can see it and better suggest the right fixes. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
That means that there’s a system name of “1” somewhere in your file. Perhaps it’s near line 20933, but the line counts are not always accurate.
System names should start with a prefix for the specific connection (a letter and optionally some numbers; i.e D or L2) and a type letter (T for Turnout, S for Sensor). So that 1 should be DT1 or L2S1 or something else. Finding it in the file and looking what’s around it will usually make it clear what it should be. You _might_ be able to fix it by: *) Make copies of everything *) Run the jython/TurnOffXmlValidation.py script before loading your panel file (If you’re loading at startup, set the Preferences to run the script first; if you’re manually loading the file via the Panels menu, run the script from the Panels menu first) *) Load your file *) Store the contents out to a new file, with a different name *) Quit, restart, load that new file and check if things are OK, particularly things with a “1” associated The 2nd step will tell JMRI to proceed past the error, and _try_ to make it right. When you write out and test that file, you’ll see whether it was able to fix it or not. If not, post the panel file and we’ll get it fixed. Bob On Aug 21, 2018, at 10:04 PM, amtkkydd@... wrote:-- Bob Jacobsen rgj1927@... |
The problem is that you have a block with the systemName “1”:
<block systemName="1" length="10668.0" curve="0"> <systemName>1</systemName> <userName>EB Roseville</userName> <speed>Maximum</speed> <permissive>no</permissive> <occupancysensor>EB Roseville Center</occupancysensor> </block> But it’s not the only example of an odd systemName, there are others with odd names: <block systemName="2"> <systemName>2</systemName> <userName>WB Roseville</userName> </block> … <block systemName="7"> <systemName>7</systemName> <userName>Ayala</userName> </block> But many of those blocks don’t seem to be referred to by anything. Do you have other panel files that reference them? Or did perhaps some other tool create the layout information? I.e. did you import it from AnyRail or XTrkCad at some point? Bob On Aug 22, 2018, at 10:20 AM, amtkkydd@... wrote:-- Bob Jacobsen rgj1927@... |
Phil,
toggle quoted message
Show quoted text
All of your block names are numeric which is not valid. You need to prefix each system name entry with “IB”. Dave Sand On Aug 22, 2018, at 12:20 PM, amtkkydd@... wrote: |
to navigate to use esc to dismiss