¿ªÔÆÌåÓý

Locked Re: Layout Portability


 

Hi Dave & Cliff

Tried to understand Dave's scripts... but I'm not a programmer so scripts are not of much use.

First off.. Connection Prefix is "L" for Digitrax on both computers.
I have modified both computers to have only the default settings by completely uninstalling 4.12, deleting all JMRI folders "everywhere" except registry and then reinstalling the program on both. (I did keep my 'layout'.xml files and selected the c:\program files directory on the Win7 to keep that variable the same.)

The application works perfectly using simulate on both. I have not connected the LocoBuffer-USB at all.

The file D:\Layouts JMRI\Roberts Layout31.xml loads on the Win7 without errors [debug xml reports OK too]. The Signal Table is fully populated.

I noticed one signal head was missing in the table so I added it. I used the correct user name [D Main B CCW], SEC8 4 Aspect and the correct turnout codes for the aspects [919 & 920]. Then I saved the entry. It was correctly processed.

I then closed the table and saved the configuration & panel. Shut down the program to restart PanelPro. I came up OK. When I loaded the layout again, the program reported an error and when I clicked on OK, it closed down.

Here is the log:

2018-12-03 17:16:33,135 util.Log4JUtil??????????????????????? INFO? - * JMRI log ** [main]
2018-12-03 17:16:33,166 util.Log4JUtil??????????????????????? INFO? - This log is appended to file: C:\Users\Robert\JMRI\log\messages.log [main]
2018-12-03 17:16:33,166 util.Log4JUtil??????????????????????? INFO? - This log is stored in file: C:\Users\Robert\JMRI\log\session.log [main]
2018-12-03 17:16:33,198 apps.Apps???????????????????????????? INFO? - PanelPro version 4.12+Rb6a9bb1 starts under Java 1.8.0_151 on Windows 7 amd64 v6.1 at Mon Dec 03 17:16:33 SGT 2018 [main]
2018-12-03 17:16:34,088 apps.Apps???????????????????????????? INFO? - Starting with profile My_JMRI_Railroad.3f2ad5f8 [main]
2018-12-03 17:16:34,713 node.NodeIdentity???????????????????? INFO? - Using jmri-flM1ndZMrhNiaa5aGQeR91-3f2ad5f8 as the JMRI Node identity [AWT-EventQueue-0]
2018-12-03 17:16:36,432 loconet.LnPacketizer????????????????? INFO? - lnPacketizer Started [main]
2018-12-03 17:16:36,573 hexfile.LnHexFilePort???????????????? INFO? - LocoNet Simulator Started [LocoNet HexFileFrame]
2018-12-03 17:16:37,083 util.FileUtilSupport????????????????? INFO? - File path program: is C:\Program Files\JMRI\ [main]
2018-12-03 17:16:37,085 util.FileUtilSupport????????????????? INFO? - File path preference: is D:\Layouts JMRI\ [main]
2018-12-03 17:16:37,086 util.FileUtilSupport????????????????? INFO? - File path profile: is C:\Users\Robert\JMRI\My_JMRI_Railroad\ [main]
2018-12-03 17:16:37,086 util.FileUtilSupport????????????????? INFO? - File path settings: is C:\Users\Robert\JMRI\ [main]
2018-12-03 17:16:37,087 util.FileUtilSupport????????????????? INFO? - File path home: is C:\Users\Robert\ [main]
2018-12-03 17:16:37,087 util.FileUtilSupport????????????????? INFO? - File path scripts: is C:\Program Files\JMRI\jython\ [main]
2018-12-03 17:16:39,133 PanelPro.PanelPro???????????????????? INFO? - Main initialization done [main]
2018-12-03 17:16:53,181 configurexml.ErrorHandler???????????? ERROR - Parse error while parsing file /D:/Layouts%20JMRI/Roberts%20Layout31.xml Exception: org.jdom2.input.JDOMParseException: Error on line 2801: cvc-identity-constraint.4.2.2: Duplicate key value [LT11 DS TR] declared for identity constraint "signalElementName" of element "signalelements".
See for possibly more information. [AWT-EventQueue-0]
org.jdom2.input.JDOMParseException: Error on line 2801: cvc-identity-constraint.4.2.2: Duplicate key value [LT11 DS TR] declared for identity constraint "signalElementName" of element "signalelements".
?at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:232)
?at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:253)
?at org.jdom2.input.SAXBuilder.build(SAXBuilder.java:1091)
?at jmri.jmrit.XmlFile.getRoot(XmlFile.java:197)
?at jmri.jmrit.XmlFile.rootFromURL(XmlFile.java:182)
?at jmri.configurexml.ConfigXmlManager.loadOnSwingThread(ConfigXmlManager.java:646)
?at jmri.configurexml.ConfigXmlManager.lambda$1(ConfigXmlManager.java:604)
?at jmri.util.ThreadingUtil.runOnGUIwithReturn(ThreadingUtil.java:152)
?at jmri.configurexml.ConfigXmlManager.load(ConfigXmlManager.java:602)
?at jmri.implementation.JmriConfigurationManager.load(JmriConfigurationManager.java:231)
?at jmri.implementation.JmriConfigurationManager.load(JmriConfigurationManager.java:170)
?at jmri.implementation.JmriConfigurationManager.load(JmriConfigurationManager.java:160)
?at jmri.configurexml.LoadXmlConfigAction.loadFile(LoadXmlConfigAction.java:52)
?at jmri.configurexml.LoadXmlUserAction.actionPerformed(LoadXmlUserAction.java:44)
?at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
?at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
?at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
?at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
?at javax.swing.AbstractButton.doClick(Unknown Source)
?at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
?at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
?at java.awt.Component.processMouseEvent(Unknown Source)
?at javax.swing.JComponent.processMouseEvent(Unknown Source)
?at java.awt.Component.processEvent(Unknown Source)
?at java.awt.Container.processEvent(Unknown Source)
?at java.awt.Component.dispatchEventImpl(Unknown Source)
?at java.awt.Container.dispatchEventImpl(Unknown Source)
?at java.awt.Component.dispatchEvent(Unknown Source)
?at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
?at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
?at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
?at java.awt.Container.dispatchEventImpl(Unknown Source)
?at java.awt.Window.dispatchEventImpl(Unknown Source)
?at java.awt.Component.dispatchEvent(Unknown Source)
?at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
?at java.awt.EventQueue.access$500(Unknown Source)
?at java.awt.EventQueue$3.run(Unknown Source)
?at java.awt.EventQueue$3.run(Unknown Source)
?at java.security.AccessController.doPrivileged(Native Method)
?at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
?at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
?at java.awt.EventQueue$4.run(Unknown Source)
?at java.awt.EventQueue$4.run(Unknown Source)
?at java.security.AccessController.doPrivileged(Native Method)
?at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
?at java.awt.EventQueue.dispatchEvent(Unknown Source)
?at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
?at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
?at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
?at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
?at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
?at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException; lineNumber: 2801; columnNumber: 249; cvc-identity-constraint.4.2.2:

Layout 31 is a copy of layout 11 which I have not opened or modified so to have a clean file to copy from.

Working on signing up and downloading Dropbox.

Robert

Join [email protected] to automatically receive all group messages.