¿ªÔÆÌåÓý

Locked Re: Parse error on permissive SML #logixng #sml


 

Hi,

Sorry but I can't make it works. I have still same message about the parse error. I did all you indicates on the e-mail bellow. I have even deleted users and make a clean install with all previously deleted and I still have the same message and errors. I will upload the file in case you can search which can be the problem. I have a signalling system implemented that works as the Spanish system. Don't worry about it as problem as it is normal. I have in mind to integrate it on the JMRI but I have last doubts about it ( specially if I use it on Spanish or in English)?

Best Regards

°ä¨¦²õ²¹°ù

En lunes, 3 de marzo de 2025, 16:08:49 CET, Dave Sand <ds@...> ±ð²õ³¦°ù¾±²ú¾±¨®:


°ä¨¦²õ²¹°ù,

Try doing a clean JMRI install.
  1. Use the Windows control panel to remove JMRI.
  2. Manually delete the residual JMRI directory and its contents at C:\Program Files (x86).
  3. Reboot.
  4. Download and install JMRI 5.10.
The Windows installer does not always update the XML schema files.

Dave Sand



----- Original message -----
From: "Cesar Alcala via groups.io" <shegar81=[email protected]>
Subject: Re: [jmriusers] Parse error on permissive SML #logixng #signalmasts
Date: Monday, March 03, 2025 2:25 AM


Hi,

This is on the JMRI 5.10 on a Windows 10 Desktop computer. Java is on version 11.0.16.1.

I copy the information that the console shows at the beginning and with the error.

09:21:12,678 apps.util.Log4JUtil?????????????????? INFO? - * JMRI log ** [main]
09:21:12,700 apps.util.Log4JUtil?????????????????? INFO? - This log is stored in file: C:\Users\Cesar\JMRI\log\session.log [main]
09:21:12,700 apps.util.Log4JUtil?????????????????? INFO? - This log is appended to file: C:\Users\Cesar\JMRI\log\messages.log [main]
09:21:12,716 apps.Apps???????????????????????????? INFO? - PanelPro version 5.10+Rca461bd266 starts under Java 11.0.16.1 on Windows 10 amd64 v10.0 at Mon Mar 03 09:21:12 CET 2025 [main]
09:21:12,801 t.permission.DefaultPermissionManager INFO? - Permission file: C:\Users\Cesar\JMRI\.permissions.xml [main]
09:21:12,801 t.permission.DefaultPermissionManager INFO? - Permission system is enabled: no [main]
09:21:14,552 apps.Apps???????????????????????????? INFO? - Starting with profile My_JMRI_Railroad.3e9c1ac6 [main]
09:21:14,668 jmri.util.node.NodeIdentity?????????? INFO? - Using 0326d4c6-d5d5-4e07-828c-41635f9af07c as the JMRI storage identity for profile id 3e9c1ac6 [AWT-EventQueue-0]
09:21:14,868 back.configurexml.ConnectionConfigXml INFO? - CAN Simulator Started [main]
09:21:14,922 rix.can.cbus.CbusDccProgrammerManager INFO? - Preferences for programmers start as: global true addressed true [main]
09:21:14,953 rix.can.cbus.CbusDccProgrammerManager INFO? - Preferences for programmers now: global true addressed true [main]
09:21:14,953 rix.can.cbus.CbusDccProgrammerManager INFO? - ProgModeSwitch is NONE [main]
09:21:14,953 mrix.can.cbus.simulator.CbusSimulator INFO? - Starting CBUS Network Simulation Tools [main]
09:21:14,968 .jmrix.can.cbus.simulator.CbusDummyCS INFO? - Simulated Command Station: Standard Command Station [main]
09:21:14,968 can.cbus.simulator.CbusEventResponder INFO? - Simulated Event Responses: Random On / Off [main]
09:21:15,253 jmri.jmrit.roster.Roster????????????? INFO? - Reading roster file with rootFromName(C:\Users\Cesar\JMRI\My_JMRI_Railroad.jmri\roster.xml) [main]
09:21:15,285 jmri.util.FileUtilSupport???????????? INFO? - File path program: is C:\Program Files (x86)\JMRI\ [main]
09:21:15,285 jmri.util.FileUtilSupport???????????? INFO? - File path preference: is C:\Users\Cesar\JMRI\My_JMRI_Railroad.jmri\ [main]
09:21:15,285 jmri.util.FileUtilSupport???????????? INFO? - File path profile: is C:\Users\Cesar\JMRI\My_JMRI_Railroad.jmri\ [main]
09:21:15,285 jmri.util.FileUtilSupport???????????? INFO? - File path settings: is C:\Users\Cesar\JMRI\ [main]
09:21:15,285 jmri.util.FileUtilSupport???????????? INFO? - File path home: is C:\Users\Cesar\ [main]
09:21:15,285 jmri.util.FileUtilSupport???????????? INFO? - File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main]
09:21:15,908 apps.PanelPro.PanelPro??????????????? INFO? - Main initialization done [main]
09:21:26,368 jmri.configurexml.LoadXmlConfigAction INFO? - Loading selected file: C:\Users\Cesar\JMRI\My_JMRI_Railroad.jmri\Amitlla6.xml [AWT-EventQueue-0]
09:21:26,854 jmri.configurexml.ErrorHandler??????? ERROR - Load Error: Parse error while parsing file /C:/Users/Cesar/JMRI/My_JMRI_Railroad.jmri/Amitlla6.xml Exception: org.jdom2.input.JDOMParseException: Error on line 5562: cvc-enumeration-valid: Value 'IsPermissiveSmlDisabled' is not facet-valid with respect to enumeration '[Aspect, Lit, NotLit, Held, NotHeld, PermissiveSmlDisabled, PermissiveSmlNotDisabled]'. It must be a value from the enumeration.
See http://jmri.org/help/en/package/jmri/configurexml/ErrorHandler.shtml for possibly more information. [AWT-EventQueue-0]
org.jdom2.input.JDOMParseException: Error on line 5562: cvc-enumeration-valid: Value 'IsPermissiveSmlDisabled' is not facet-valid with respect to enumeration '[Aspect, Lit, NotLit, Held, NotHeld, PermissiveSmlDisabled, PermissiveSmlNotDisabled]'. It must be a value from the enumeration.
??? at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:232) ~[jdom2-2.0.6.jar:?]
??? at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:253) ~[jdom2-2.0.6.jar:?]
??? at org.jdom2.input.SAXBuilder.build(SAXBuilder.java:1091) ~[jdom2-2.0.6.jar:2.0.6]
??? at jmri.jmrit.XmlFile.getRoot(XmlFile.java:218) ~[jmri.jar:?]
??? at jmri.jmrit.XmlFile.rootFromURL(XmlFile.java:200) ~[jmri.jar:?]
??? at jmri.configurexml.ConfigXmlManager.loadOnSwingThread(ConfigXmlManager.java:592) ~[jmri.jar:?]
??? at jmri.configurexml.ConfigXmlManager.lambda$load$1(ConfigXmlManager.java:554) ~[jmri.jar:?]
??? at jmri.util.ThreadingUtil.runOnGUIwithReturn(ThreadingUtil.java:227) [jmri.jar:?]
??? at jmri.configurexml.ConfigXmlManager.load(ConfigXmlManager.java:552) [jmri.jar:?]
??? at jmri.implementation.JmriConfigurationManager.load(JmriConfigurationManager.java:235) [jmri.jar:?]
??? at jmri.implementation.JmriConfigurationManager.load(JmriConfigurationManager.java:188) [jmri.jar:?]
??? at jmri.implementation.JmriConfigurationManager.load(JmriConfigurationManager.java:178) [jmri.jar:?]
??? at jmri.configurexml.LoadXmlConfigAction.loadFile(LoadXmlConfigAction.java:76) [jmri.jar:?]
??? at jmri.configurexml.LoadXmlUserAction.actionPerformed(LoadXmlUserAction.java:49) [jmri.jar:?]
??? at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) [?:?]
??? at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308) [?:?]
??? at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) [?:?]
??? at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) [?:?]
??? at javax.swing.AbstractButton.doClick(AbstractButton.java:369) [?:?]
??? at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1020) [?:?]
??? at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1064) [?:?]
??? at java.awt.Component.processMouseEvent(Component.java:6635) [?:?]
??? at javax.swing.JComponent.processMouseEvent(JComponent.java:3342) [?:?]
??? at java.awt.Component.processEvent(Component.java:6400) [?:?]
??? at java.awt.Container.processEvent(Container.java:2263) [?:?]
??? at java.awt.Component.dispatchEventImpl(Component.java:5011) [?:?]
??? at java.awt.Container.dispatchEventImpl(Container.java:2321) [?:?]
??? at java.awt.Component.dispatchEvent(Component.java:4843) [?:?]
??? at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918) [?:?]
??? at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547) [?:?]
??? at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488) [?:?]
??? at java.awt.Container.dispatchEventImpl(Container.java:2307) [?:?]
??? at java.awt.Window.dispatchEventImpl(Window.java:2772) [?:?]
??? at java.awt.Component.dispatchEvent(Component.java:4843) [?:?]
??? at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) [?:?]
??? at java.awt.EventQueue$4.run(EventQueue.java:721) [?:?]
??? at java.awt.EventQueue$4.run(EventQueue.java:715) [?:?]
??? at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
??? at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) [?:?]
??? at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) [?:?]
??? at java.awt.EventQueue$5.run(EventQueue.java:745) [?:?]
??? at java.awt.EventQueue$5.run(EventQueue.java:743) [?:?]
??? at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
??? at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) [?:?]
??? at java.awt.EventQueue.dispatchEvent(EventQueue.java:742) [?:?]
??? at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) [?:?]
??? at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) [?:?]
??? at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) [?:?]
??? at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) [?:?]
??? at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:?]
??? at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]
Caused by: org.xml.sax.SAXParseException: cvc-enumeration-valid: Value 'IsPermissiveSmlDisabled' is not facet-valid with respect to enumeration '[Aspect, Lit, NotLit, Held, NotHeld, PermissiveSmlDisabled, PermissiveSmlNotDisabled]'. It must be a value from the enumeration.
??? at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[xercesImpl-2.12.2.jar:2.12.2]
??? at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[xercesImpl-2.12.2.jar:2.12.2]
??? at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[xercesImpl-2.12.2.jar:2.12.2]
??? at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) ~[xercesImpl-2.12.2.jar:2.12.2]
??? at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[xercesImpl-2.12.2.jar:2.12.2]
??? at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[xercesImpl-2.12.2.jar:2.12.2]
??? at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[xercesImpl-2.12.2.jar:?]
??? at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:217) ~[jdom2-2.0.6.jar:?]
??? ... 50 more

If you need more information or the console on the version 5.9.7 I can send also.

Best Regards

°ä¨¦²õ²¹°ù

En viernes, 28 de febrero de 2025, 22:19:28 CET, danielb987 <jmri@...> ±ð²õ³¦°ù¾±²ú¾±¨®:


°ä¨¦²õ²¹°ù

The bug fix is included in version 5.9.7 and version 5.10.

If it doesn't work for you, please copy the entire system console and paste it in a reply.

Daniel


On 2025-02-27 19:01, Cesar Alcala via groups.io wrote:

Hi,

In the past I remember to test it on test version 5.9.7 and to work correctly but today it doesn't work anymore. I tested on my 5.10 and on the 5.9.7 versions that I have installed. Is it merged and solved the issue?

Best Regards

°ä¨¦²õ²¹°ù Alcal¨¢

En domingo, 1 de diciembre de 2024, 14:26:11 CET, Bob Jacobsen via groups.io <rgj1927@...> ±ð²õ³¦°ù¾±²ú¾±¨®:


Another temporary work-around is to run the

??? jython/TurnOffXmlValidation.py

script at startup, before you load any other files.

Bob

> On Nov 30, 2024, at 7:43?PM, Dave Sand via groups.io <ds@...> wrote:
>
> °ä¨¦²õ²¹°ù,
>
> This is a bug that has been around for years but you are the first person to report it.
>
> A temporary fix is to edit the "xml/schema/logixng/digital-actions/action-signalmast-4.23.1.xsd" file in your JMRI install location.? See "Help -> FileLocations" for the actual path.
>
> Remove the "Is" from two lines.
>
>? ? ? ? ? ? ? ? ? ? <xs:enumeration value="IsPermissiveSmlDisabled"/>
>? ? ? ? ? ? ? ? ? ? <xs:enumeration value="IsPermissiveSmlNotDisabled"/>
>
> Dave Sand
>
>
>
>
> ----- Original message -----
> From: "Cesar Alcala via groups.io" <shegar81@...>
> Subject: [jmriusers] Parse error on permissive SML #logixng #signalmasts
> Date: Saturday, November 30, 2024 4:32 PM
>
> Hi,
>?
> I don't understand where can it be the problem. I want to implement a call of on the home signals of an station. I set the permissive on the block and all works correctly. I used the logixng to program the option. I can save correctly but the problem comes at the loading of the panel on a next session. When I load the panel I have a Parse error that says that:
>?
> Error on line 5256: cvc-enumeration-valid: Value 'PermissiveSmlDisabled' is not facet-valid with respect to enumeration '[Aspect, Lit, NotLit, Held, NotHeld, IsPermissiveSmlDisabled, IsPermissiveSmlNotDisabled]'. It must be a value from the enumeration.
>?
> I open the xml file and I modify the line indicated and write IsPermissiveSmlDisabled where it says PermissiveSmlDisabled and I save the file. I open the file on panel pro and it works but all related to the Permissive SML on the signal is blank and obviously it doesn't work. Why if the error indicates that it must be on a kind of value if you use it it doesn't work? The panel on origin was created on JMRI 5.3 but all the logixng conditions have been created on 5.8.
>?
> Can someone help me?
>?
> Best Regards
>


¡ª
Bob Jacobsen









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