¿ªÔÆÌåÓý

Locked ERROR - Uncaught Exception while adding an ill formatted LCC HW address


 

Hey Guys,

Doing some OpenLCB programming. I was adding a turnout to the turnout table to later add to a panel. I added the following HW address (which is incorrect) "02.01.12.7F.5C.A4.00;02.01.7F.5C.A4.01". When I hit the "Create" button I get no induction from the system of the incorrect address and the uncaught error in the system console is produced.

When I correct format the address to "02.01.12.7F.5C.A4.00.00;02.01.7F.5C.A4.00.01", The highlighted information is what I added to make it correct, the system creates the entry in the table as expected. JRMI 4.19.2 in use but also tested in 4.18 produce the same result.

I think it is a bug but I will leave it your discretion.

2020-02-09 11:54:34,655 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - * JMRI log ** [main]
2020-02-09 11:54:34,689 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is appended to file: C:\Users\dlowe\JMRI\log\messages.log [main]
2020-02-09 11:54:34,691 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is stored in file: C:\Users\dlowe\JMRI\log\session.log [main]
2020-02-09 11:54:34,698 apps.Apps? ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO? - PanelPro version 4.19.2+R846b684 starts under Java 1.8.0_241 on Windows 10 x86 v10.0 at Sun Feb 09 11:54:34 AEST 2020 [main]
2020-02-09 11:54:45,768 apps.Apps? ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO? - Starting with profile LCC.3ed42ca2 [main]
2020-02-09 11:54:46,159 node.NodeIdentity? ? ? ? ? ? ? ? ? ? ?INFO? - Using jmri-opeJtagyWhOiaacFaMaaaP-3ed42ca2 as the JMRI storage identity for profile id 3ed42ca2 [AWT-EventQueue-0]
2020-02-09 11:54:46,234 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "CAN" [main]
2020-02-09 11:54:47,054 gridconnect.GcSerialDriverAdapter? ? ?INFO? - COM10 port opened at 57600 baud, sees? DTR: true RTS: true DSR: false CTS: false? CD: false [main]
2020-02-09 11:54:47,669 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path program: is D:\Installed Programs\JMRI_19.2\ [main]
2020-02-09 11:54:47,669 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path preference: is C:\Users\dlowe\OneDrive\Train Project\JMRI_Profiles\LCC.jmri\ [main]
2020-02-09 11:54:47,670 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path profile: is C:\Users\dlowe\OneDrive\Train Project\JMRI_Profiles\LCC.jmri\ [main]
2020-02-09 11:54:47,670 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path settings: is C:\Users\dlowe\JMRI\ [main]
2020-02-09 11:54:47,670 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path home: is C:\Users\dlowe\ [main]
2020-02-09 11:54:47,671 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path scripts: is D:\Installed Programs\JMRI_19.2\jython\ [main]
2020-02-09 11:54:48,323 PanelPro.PanelPro? ? ? ? ? ? ? ? ? ? ?INFO? - Main initialization done [main]
2020-02-09 11:55:07,977 audio.JoalAudioFactory? ? ? ? ? ? ? ? INFO? - Initialised JOAL using OpenAL: vendor - OpenAL Community version - 1.1 ALSOFT 1.15.1 [Listed Table Generation]
2020-02-09 11:55:31,229 openlcb.OlcbAddress? ? ? ? ? ? ? ? ? ?ERROR - unexpected number of terms: 7 [AWT-EventQueue-0]
2020-02-09 11:55:31,229 openlcb.OlcbAddress? ? ? ? ? ? ? ? ? ?ERROR - unexpected number of terms: 7 [AWT-EventQueue-0]
2020-02-09 11:55:31,230 openlcb.OlcbAddress? ? ? ? ? ? ? ? ? ?ERROR - unexpected number of terms: 7 [AWT-EventQueue-0]
2020-02-09 11:55:31,230 openlcb.OlcbAddress? ? ? ? ? ? ? ? ? ?ERROR - unexpected number of terms: 7 [AWT-EventQueue-0]
2020-02-09 11:55:31,232 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [AWT-EventQueue-0]
java.lang.ArrayIndexOutOfBoundsException: 7
at jmri.jmrix.openlcb.OlcbAddress.toEventID(OlcbAddress.java:283)
at jmri.jmrix.openlcb.OlcbTurnout.finishLoad(OlcbTurnout.java:112)
at jmri.jmrix.openlcb.OlcbTurnoutManager.createNewTurnout(OlcbTurnoutManager.java:89)
at jmri.managers.AbstractTurnoutManager.newTurnout(AbstractTurnoutManager.java:102)
at jmri.managers.ProxyTurnoutManager.makeBean(ProxyTurnoutManager.java:50)
at jmri.managers.ProxyTurnoutManager.makeBean(ProxyTurnoutManager.java:1)
at jmri.managers.AbstractProxyManager.provideNamedBean(AbstractProxyManager.java:200)
at jmri.managers.ProxyTurnoutManager.provideTurnout(ProxyTurnoutManager.java:56)
at jmri.jmrit.beantable.TurnoutTableAction.createPressed(TurnoutTableAction.java:1769)
at jmri.jmrit.beantable.TurnoutTableAction$2.actionPerformed(TurnoutTableAction.java:1049)
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.plaf.basic.BasicButtonListener.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)
2020-02-09 11:55:56,699 openlcb.OlcbAddress? ? ? ? ? ? ? ? ? ?ERROR - unexpected number of terms: 7 [AWT-EventQueue-0]

For yur consideration,
--

Dave, Brisbane Australia
dlowe30971@...?

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