Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Unable to Delete a Sensor; Then a Java Error Displays when Storing the XML
Problem Statement:
Using the attached config.
?
I try to delete this sensor:? IS51 Show Route: Sawmill to Team 2 V2.
On the Sensors panel, the item is not deleted but I get no error message.? I've been fighting this for a few hours and I THINK I saw that, once I get this behavior, then no Sensors will be deleted from then on, until you restart PanelPro.
?
When I store the modified config, I get the error message shown in the attached log.
?
Resolution:
I finally figured out that, at one time, on the Route:? Sawmill to Team 2, I had assigned the IS51 sensor as a?
"Sensor that activates when all Route Turnouts are correctly aligned".? When I removed that association, I was able to delete IS51 and all was good.??
?
So, I'm okay now.
?
Followup Request:
I think that PanelPro should have detected that IS51 was used by the Route and should have stopped the Delete action from proceeding.? I've seen it give a message when it detects that a Sensor is used somewhere and then stopped the Delete from proceeding.? I actually did check the "Usage" tab for IS51 before trying to delete it and it said it wasn't used anywhere. newproduction-start25-02-25 - Copy.xml
newproduction-start25-02-25 - Copy.xml
jmrilog.txt
jmrilog.txt
|
The "Tools -> Where Used" report might give you better information. Apparently the "Usage" tab does not find all references. Dave Sand ----- Original message ----- From: "Bob Wesneski via groups.io" <rswesne=[email protected]> Subject: [jmriusers] Unable to Delete a Sensor; Then a Java Error Displays when Storing the XML Date: Wednesday, February 26, 2025 3:53 PM Problem Statement: Using the attached config. ? I try to delete this sensor:? IS51 Show Route: Sawmill to Team 2 V2. On the Sensors panel, the item is not deleted but I get no error message.? I've been fighting this for a few hours and I THINK I saw that, once I get this behavior, then no Sensors will be deleted from then on, until you restart PanelPro. ? When I store the modified config, I get the error message shown in the attached log. ? Resolution: I finally figured out that, at one time, on the Route:? Sawmill to Team 2, I had assigned the IS51 sensor as a? "Sensor that activates when all Route Turnouts are correctly aligned".? When I removed that association, I was able to delete IS51 and all was good.?? ? So, I'm okay now. ? Followup Request: I think that PanelPro should have detected that IS51 was used by the Route and should have stopped the Delete action from proceeding.? I've seen it give a message when it detects that a Sensor is used somewhere and then stopped the Delete from proceeding.? I actually did check the "Usage" tab for IS51 before trying to delete it and it said it wasn't used anywhere. Attachments:
|
Bob, The Usage tab lists references that are "listening" for changes. ?The "Routes turnout sensor" does not listen for changes. ?The sensor is set when the route completes. ? Dave Sand ----- Original message ----- From: Dave Sand <ds@...> Subject: Re: [jmriusers] Unable to Delete a Sensor; Then a Java Error Displays when Storing the XML Date: Wednesday, February 26, 2025 4:20 PM The "Tools -> Where Used" report might give you better information. Apparently the "Usage" tab does not find all references. Dave Sand ----- Original message ----- From: "Bob Wesneski via groups.io" <rswesne=[email protected]> Subject: [jmriusers] Unable to Delete a Sensor; Then a Java Error Displays when Storing the XML Date: Wednesday, February 26, 2025 3:53 PM Problem Statement: Using the attached config. ? I try to delete this sensor:? IS51 Show Route: Sawmill to Team 2 V2. On the Sensors panel, the item is not deleted but I get no error message.? I've been fighting this for a few hours and I THINK I saw that, once I get this behavior, then no Sensors will be deleted from then on, until you restart PanelPro. ? When I store the modified config, I get the error message shown in the attached log. ? Resolution: I finally figured out that, at one time, on the Route:? Sawmill to Team 2, I had assigned the IS51 sensor as a? "Sensor that activates when all Route Turnouts are correctly aligned".? When I removed that association, I was able to delete IS51 and all was good.?? ? So, I'm okay now. ? Followup Request: I think that PanelPro should have detected that IS51 was used by the Route and should have stopped the Delete action from proceeding.? I've seen it give a message when it detects that a Sensor is used somewhere and then stopped the Delete from proceeding.? I actually did check the "Usage" tab for IS51 before trying to delete it and it said it wasn't used anywhere. Attachments:
|
Hi Bob,
?
Thanks for reporting this, also jmrilog.txt which provided me with the stack trace required.
The issue could potentially occur with a few other JMRI resources ( e.g. WiThrottle server ) upon deleting the Route alignment Sensor.
?
I've gradually been tweaking Routes for increased reliability in future JMRI versions, i.e.
?
- Route - add CheckForNull annotation
- update wiThrottle RouteController
- AbstractXmlAdapter / AbstractNamedBeanManagerConfigXML string constants
- update RouteExportToLogix
- update DefaultRouteManager Xml
- RouteTable output table listeners
- Route Add / Edit Frame lint
?
?
Again thanks for reporting !
?
Steve.
--
Steve Young, Member JMRI Dev Team |
to navigate to use esc to dismiss