¿ªÔÆÌåÓý

Locked Parse error with a very old file


 

Hello all,

I am trying to help a friend that has been running with a very old version of JMRI (I do not know which, but it predates the JAVA change to a new format that did not allow backwards compatibility.

The error we get is a cvc-minLength-valid error. I took a picture of this.?

The code is for OBLOCKS and here is an example:

<oblock systemName="OB121" userName="" length="1" curve="0">
? ? ? <sensor systemName="CS121" />
? ? ? <path pathName="Path144-122" blockName="OB121" fromPortal="Port144-121" toPortal="Port121-122" fromDirection="0" toDirection="0" />
? ? ? <portal portalName="Port144-121">
? ? ? ? <fromBlock blockName="OB144">
? ? ? ? ? <path pathName="Path143-121" blockName="OB144" />
? ? ? ? </fromBlock>
? ? ? ? <toBlock blockName="OB121">
? ? ? ? ? <path pathName="Path144-122" blockName="OB121" />
? ? ? ? </toBlock>
? ? ? </portal>
? ? ? <portal portalName="Port121-122">
? ? ? ? <fromBlock blockName="OB121">
? ? ? ? ? <path pathName="Path144-122" blockName="OB121" />
? ? ? ? </fromBlock>
? ? ? ? <toBlock blockName="OB122">
? ? ? ? ? <path pathName="Path121-123" blockName="OB122" />
? ? ? ? ? <path pathName="Path121-136" blockName="OB122" />
? ? ? ? ? <path pathName="Path121-Saw" blockName="OB122" />
? ? ? ? </toBlock>
? ? ? </portal>
? ? </oblock>

Is it because the userName is ""?

Please let us know.

Thank you
Leo P


 

I just answered my question. The newer JMRI version requires a username. I had forgotten that this changes was placed in JMRI.

I placed a username and the parse error went to the next oblock. I also found out that is userName="" is removed, that also fixes the parse error.

Now I am getting a different error

Thx
Leo P

On Mon, Nov 25, 2019 at 10:20 AM leo pesce via Groups.Io <lpescester=[email protected]> wrote:
Hello all,

I am trying to help a friend that has been running with a very old version of JMRI (I do not know which, but it predates the JAVA change to a new format that did not allow backwards compatibility.

The error we get is a cvc-minLength-valid error. I took a picture of this.?

The code is for OBLOCKS and here is an example:

<oblock systemName="OB121" userName="" length="1" curve="0">
? ? ? <sensor systemName="CS121" />
? ? ? <path pathName="Path144-122" blockName="OB121" fromPortal="Port144-121" toPortal="Port121-122" fromDirection="0" toDirection="0" />
? ? ? <portal portalName="Port144-121">
? ? ? ? <fromBlock blockName="OB144">
? ? ? ? ? <path pathName="Path143-121" blockName="OB144" />
? ? ? ? </fromBlock>
? ? ? ? <toBlock blockName="OB121">
? ? ? ? ? <path pathName="Path144-122" blockName="OB121" />
? ? ? ? </toBlock>
? ? ? </portal>
? ? ? <portal portalName="Port121-122">
? ? ? ? <fromBlock blockName="OB121">
? ? ? ? ? <path pathName="Path144-122" blockName="OB121" />
? ? ? ? </fromBlock>
? ? ? ? <toBlock blockName="OB122">
? ? ? ? ? <path pathName="Path121-123" blockName="OB122" />
? ? ? ? ? <path pathName="Path121-136" blockName="OB122" />
? ? ? ? ? <path pathName="Path121-Saw" blockName="OB122" />
? ? ? ? </toBlock>
? ? ? </portal>
? ? </oblock>

Is it because the userName is ""?

Please let us know.

Thank you
Leo P


 

Ok, I guess I need to find an early version of JMRI so I can load the file.?

The next parse error is

? ? <sensor systemName="CS1" inverted="true" userName="TOFB City Lead">
? ? ? <systemName>CS1</systemName>
? ? ? <userName>TOFB City Lead</userName>
? ? </sensor>

and from our panel file, the format is different in that systemname and userName are no longer tolerated?in the first <sensor line.

Did any of the JMRI version convert the panel file to the newer format?

Thx
Leo P

On Mon, Nov 25, 2019 at 10:38 AM leo pesce via Groups.Io <lpescester=[email protected]> wrote:
I just answered my question. The newer JMRI version requires a username. I had forgotten that this changes was placed in JMRI.

I placed a username and the parse error went to the next oblock. I also found out that is userName="" is removed, that also fixes the parse error.

Now I am getting a different error

Thx
Leo P

On Mon, Nov 25, 2019 at 10:20 AM leo pesce via Groups.Io <lpescester=[email protected]> wrote:
Hello all,

I am trying to help a friend that has been running with a very old version of JMRI (I do not know which, but it predates the JAVA change to a new format that did not allow backwards compatibility.

The error we get is a cvc-minLength-valid error. I took a picture of this.?

The code is for OBLOCKS and here is an example:

<oblock systemName="OB121" userName="" length="1" curve="0">
? ? ? <sensor systemName="CS121" />
? ? ? <path pathName="Path144-122" blockName="OB121" fromPortal="Port144-121" toPortal="Port121-122" fromDirection="0" toDirection="0" />
? ? ? <portal portalName="Port144-121">
? ? ? ? <fromBlock blockName="OB144">
? ? ? ? ? <path pathName="Path143-121" blockName="OB144" />
? ? ? ? </fromBlock>
? ? ? ? <toBlock blockName="OB121">
? ? ? ? ? <path pathName="Path144-122" blockName="OB121" />
? ? ? ? </toBlock>
? ? ? </portal>
? ? ? <portal portalName="Port121-122">
? ? ? ? <fromBlock blockName="OB121">
? ? ? ? ? <path pathName="Path144-122" blockName="OB121" />
? ? ? ? </fromBlock>
? ? ? ? <toBlock blockName="OB122">
? ? ? ? ? <path pathName="Path121-123" blockName="OB122" />
? ? ? ? ? <path pathName="Path121-136" blockName="OB122" />
? ? ? ? ? <path pathName="Path121-Saw" blockName="OB122" />
? ? ? ? </toBlock>
? ? ? </portal>
? ? </oblock>

Is it because the userName is ""?

Please let us know.

Thank you
Leo P


 

Leo,

According to the release notes, 4.12 is supposed to handle the migration from older releases.

Dave Sand



----- Original message -----
From: leo pesce <lpescester@...>
Subject: Re: [jmriusers] Parse error with a very old file
Date: Monday, November 25, 2019 12:42 PM

Ok, I guess I need to find an early version of JMRI so I can load the file.?

The next parse error is

? ? <sensor systemName="CS1" inverted="true" userName="TOFB City Lead">
? ? ? <systemName>CS1</systemName>
? ? ? <userName>TOFB City Lead</userName>
? ? </sensor>

and from our panel file, the format is different in that systemname and userName are no longer tolerated?in the first <sensor line.

Did any of the JMRI version convert the panel file to the newer format?

Thx
Leo P

On Mon, Nov 25, 2019 at 10:38 AM leo pesce via Groups.Io <lpescester=[email protected]> wrote:
I just answered my question. The newer JMRI version requires a username. I had forgotten that this changes was placed in JMRI.

I placed a username and the parse error went to the next oblock. I also found out that is userName="" is removed, that also fixes the parse error.

Now I am getting a different error

Thx
Leo P

On Mon, Nov 25, 2019 at 10:20 AM leo pesce via Groups.Io <lpescester=[email protected]> wrote:
Hello all,

I am trying to help a friend that has been running with a very old version of JMRI (I do not know which, but it predates the JAVA change to a new format that did not allow backwards compatibility.

The error we get is a cvc-minLength-valid error. I took a picture of this.?

The code is for OBLOCKS and here is an example:

<oblock systemName="OB121" userName="" length="1" curve="0">
? ? ? <sensor systemName="CS121" />
? ? ? <path pathName="Path144-122" blockName="OB121" fromPortal="Port144-121" toPortal="Port121-122" fromDirection="0" toDirection="0" />
? ? ? <portal portalName="Port144-121">
? ? ? ? <fromBlock blockName="OB144">
? ? ? ? ? <path pathName="Path143-121" blockName="OB144" />
? ? ? ? </fromBlock>
? ? ? ? <toBlock blockName="OB121">
? ? ? ? ? <path pathName="Path144-122" blockName="OB121" />
? ? ? ? </toBlock>
? ? ? </portal>
? ? ? <portal portalName="Port121-122">
? ? ? ? <fromBlock blockName="OB121">
? ? ? ? ? <path pathName="Path144-122" blockName="OB121" />
? ? ? ? </fromBlock>
? ? ? ? <toBlock blockName="OB122">
? ? ? ? ? <path pathName="Path121-123" blockName="OB122" />
? ? ? ? ? <path pathName="Path121-136" blockName="OB122" />
? ? ? ? ? <path pathName="Path121-Saw" blockName="OB122" />
? ? ? ? </toBlock>
? ? ? </portal>
? ? </oblock>

Is it because the userName is ""?

Please let us know.

Thank you
Leo P







 

On Mon, Nov 25, 2019 at 10:42 AM, leo pesce wrote:

Ok, I guess I need to find an early version of JMRI so I can load the file.

Once you get the proper version number or approximate date, examine the list at

Some clues to your puzzles can be found by reading the warnings and suggestions for the sequence of changes found on each of the links.

Cliff in Baja SoCal


Randall Wood
 

The panel file should (either near the top or bottom of the file) tell you which version of JMRI created it.


 

Thank you all for the suggestions and help.

I found out that the file we have in possession currently, last access was in 2012. We do not have the latest version of the file, but we do know that JMRI was never updated. From the file we find:

<jmriversion>
? ? <major>2</major>
? ? <minor>14</minor>
? ? <test>1</test>
? ? <modifier>.1ish</modifier>
? </jmriversion>

and Java was 1.6.0_26.

We are setting up a laptop with that version (Java will be the newest - I hope that will not be a problem) and then we will make a number of upgrades, I believe 4.6.0, 4.12.0 and 4.17.5(6?), saving the file as we go along, and addressing any issues as we encounter. Hopefully we will get the final file with the latest JMRI and Java working. If not, I am sure you all will be hearing from me here.? :)

Thank you again.

Cheers
Leo P

On Tue, Nov 26, 2019 at 3:14 AM Randall Wood via Groups.Io <rhwood=[email protected]> wrote:

The panel file should (either near the top or bottom of the file) tell you which version of JMRI created it.


 

Leo,

You'll ned to bring Java up to at least 1.8 first. It's no go with 1.6 for the newer versions of JMRI.

Wouter


On Tue, 26 Nov 2019 at 18:21, leo pesce <lpescester@...> wrote:
Thank you all for the suggestions and help.

I found out that the file we have in possession currently, last access was in 2012. We do not have the latest version of the file, but we do know that JMRI was never updated. From the file we find:

<jmriversion>
? ? <major>2</major>
? ? <minor>14</minor>
? ? <test>1</test>
? ? <modifier>.1ish</modifier>
? </jmriversion>

and Java was 1.6.0_26.

We are setting up a laptop with that version (Java will be the newest - I hope that will not be a problem) and then we will make a number of upgrades, I believe 4.6.0, 4.12.0 and 4.17.5(6?), saving the file as we go along, and addressing any issues as we encounter. Hopefully we will get the final file with the latest JMRI and Java working. If not, I am sure you all will be hearing from me here.? :)

Thank you again.

Cheers
Leo P

On Tue, Nov 26, 2019 at 3:14 AM Randall Wood via Groups.Io <rhwood=[email protected]> wrote:

The panel file should (either near the top or bottom of the file) tell you which version of JMRI created it.


Randall Wood
 

I also think you will want to upgrade to JMRI 3.10 before upgrading to any of the JMRI 4.x versions.


 

Just an update on where we are at. Yes, we did also use 3.10.1 from 2.14. All was well at 4.6.0.

I then went with 4..12.0, and I lost 2/3 of the signal mast table, with lots of java errors.

So at the moment we are with Win 8, Java 1.8, JMRI 4.6.0. All set with CMRI and NCE in simulation.

I think the owner at this point will connect the laptop to his layout and see how?it goes.?

Will keep you posted. Thank you for the help so far.

Cheers
Leo P

On Wed, Nov 27, 2019, 3:21 AM Randall Wood via Groups.Io <rhwood=[email protected]> wrote:

I also think you will want to upgrade to JMRI 3.10 before upgrading to any of the JMRI 4.x versions.


 

Leo,

That file, working with 4.6 would be interesting to examine. I suspect
seeing what the 4.12 doesn't like will be very telling. It is quite possible
that there are somethings in there that will require manual intervention to
cure. While we've tried to leave a path forward for the files to convert
automatically, maybe there is something missed.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.org
www.syracusemodelrr.org