开云体育

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:

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
--
Bob Jacobsen
rgj1927@...


 

I've had a couple of parsing errors. I loaded Atom which can deal with the file 9and is recommended on the JMRI help page?. It looks like a signal mast which has not been defined in the same way that it's head was.


 

Hi Ken, I'm running JMRI version 4.10 from 4.8 I have uploaded my panel files so that you may take a look at them there under the name panel files. thanks Phil


 

Hi Bob, I tried using the procedures that you posted and I'm still having the same results I have posted a copy of my panel files to the group please take a look at them and see if you can find anything, there under the name panel files.? Thanks Phil


 

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:

Hi Bob, I tried using the procedures that you posted and I'm still having the same results I have posted a copy of my panel files to the group please take a look at them and see if you can find anything, there under the name panel files. Thanks Phil
--
Bob Jacobsen
rgj1927@...


 

Phil,

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:

Hi Bob, I tried using the procedures that you posted and I'm still having the same results I have posted a copy of my panel files to the group please take a look at them and see if you can find anything, there under the name panel files. Thanks Phil


 

Hi Dave, Thanks for the help that was the problem I relabeled all of my blocks, removed the validation override tool and restarted JMRI. It loaded normally. Phil???