¿ªÔÆÌåÓý

Date

Locked Exception thrown while storing panel

 

¿ªÔÆÌåÓý

PanelPro 4.11.5+Rd304cb
Java 1.8.0_161
Windows 7

I am setting up my first Arduino as a CMRI/SMINI node and doing some simple testing. I defined two lights to be able to turn them on and off (very easy to do and worked fine). ?My panel file had these two lights in the light table and nothing else, other than configuration information. I was able to save, exit PanelPro, re-enter, open the panel file and the lights were still in the table.

Then I deleted one of the lights from the light table and went to save (to a new panel file), and got the following exception:

Exception thrown while storing to file in addConfigStore
Exception: Java.lang.NullPointerException

I was able to close PanelPro. ?On reopening PanelPro, I saw that an XML panel file with the new name was created, but when I opened it, the light table was empty.

Let me know if you need more info. ?Jerry

Console log:

2018-07-28 12:10:44,801 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - * JMRI log ** [main]

2018-07-28 12:10:44,823 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is appended to file: C:\Users\Jerry\JMRI\log\messages.log [main]

2018-07-28 12:10:44,824 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is stored in file: C:\Users\Jerry\JMRI\log\session.log [main]

2018-07-28 12:10:44,858 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO? - PanelPro version 4.11.5+Rcf304cb starts under Java 1.8.0_161 on Windows 7 amd64 v6.1 at Sat Jul 28 12:10:44 EDT 2018 [main]

2018-07-28 12:10:48,565 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO? - Starting with profile CMRI_Config.3ed30d19 [main]

2018-07-28 12:10:48,930 node.NodeIdentity ? ? ? ? ? ? ? ? ? ? INFO? - Using jmri-0026B9B01EA0-3ed30d19 as the JMRI Node identity [main]

2018-07-28 12:10:49,079 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "C/MRI" [main]

2018-07-28 12:10:49,627 serialdriver.SerialDriverAdapter? ? ? INFO? - COM4 port opened at 9600 baud with DTR: true RTS: true DSR: false CTS: false? CD: false [main]

2018-07-28 12:10:50,200 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path program: is C:\Program Files (x86)\JMRI\ [main]

2018-07-28 12:10:50,200 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path preference: is C:\Users\Jerry\JMRI\CMRI_Config\ [main]

2018-07-28 12:10:50,201 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path profile: is C:\Users\Jerry\JMRI\CMRI_Config\ [main]

2018-07-28 12:10:50,201 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path settings: is C:\Users\Jerry\JMRI\ [main]

2018-07-28 12:10:50,201 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path home: is C:\Users\Jerry\ [main]

2018-07-28 12:10:50,202 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main]

2018-07-28 12:10:51,932 PanelPro.PanelPro ? ? ? ? ? ? ? ? ? ? INFO? - Main initialization done [main]

2018-07-28 12:11:06,254 audio.JoalAudioFactory? ? ? ? ? ? ? ? INFO? - Initialised JOAL using OpenAL: vendor - OpenAL Community version - 1.1 ALSOFT 1.15.1 [Listed Table Generation]

2018-07-28 12:11:45,330 configurexml.ErrorHandler ? ? ? ? ? ? ERROR - Exception thrown while storing to file in addConfigStore Exception: java.lang.NullPointerException

See for possibly more information. [AWT-EventQueue-0]

java.lang.NullPointerException

at jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML.storeUserName(AbstractNamedBeanManagerConfigXML.java:89)

at jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML.storeCommon(AbstractNamedBeanManagerConfigXML.java:41)

at jmri.managers.configurexml.AbstractLightManagerConfigXML.store(AbstractLightManagerConfigXML.java:64)

at jmri.configurexml.AbstractXmlAdapter.store(AbstractXmlAdapter.java:81)

at jmri.configurexml.ConfigXmlManager.elementFromObject(ConfigXmlManager.java:525)

at jmri.configurexml.ConfigXmlManager.elementFromObject(ConfigXmlManager.java:505)

at jmri.configurexml.ConfigXmlManager.addConfigStore(ConfigXmlManager.java:287)

at jmri.configurexml.ConfigXmlManager.storeUser(ConfigXmlManager.java:479)

at jmri.implementation.JmriConfigurationManager.storeUser(JmriConfigurationManager.java:155)

at jmri.configurexml.StoreXmlUserAction.actionPerformed(StoreXmlUserAction.java:56)

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)



_________________________________


Locked Re: decoder pro. with paragon decoders

 

Tony,

? ? My past experience with the Paragon locos was they had capacitors in them and that soaks up the short write signal.? Had to get a Track Booster to program those properly.? Using a PTB100 track Booster with my Digitrax DCS100 command station.

Roger


Locked Re: decoder pro. with paragon decoders

 

¿ªÔÆÌåÓý

thank you
but they i were already off , apparanently the default setting

tried with them on and in paged mode. still cant read the decoder

tony?


On Jul 28, 2018, at 1:27 AM, Dave Heap <dgheap@...> wrote:

The majority of decoder read/write issues are due to decoder/command station issues rather than JMRI.

However, there are two JMRI settings that can cause errors with some decoders. In Preferences->Roster->Programmer there are two settings that can cause problems with some decoders/systems or combinations thereof. They are:
  • Allow caching when writing index CVs...
  • When possible, confirm CV writes...

Try turning those two off and see if that helps.

--?
Dave in?Australia

On 28 Jul 2018, at 1:08 pm, AD <BKLYNS_BASEBALL_CLUB@...> wrote:

to any of the software writters of decoder pro

is there any interest in finding out why the jmri program has problems with the broadway limited paragon 3 decoders. ?i purchased 4 engines. 2 when put on the programming track can be detected. the basic and motor pages can be read and written to. all of the fancy sound and speed pages read some cv¡¯s and get error on most. other 2 engines. cant be detected. cant read their cv¡¯s and get error on every cv written.

however what is written, even though jmri tries 3 times and claims it failed, does get written at least on the basic page.

it would be nice to be able to know the cv settings but jmri gets errors on most and at best only reads a few.?



Locked Re: Engine Driver 2.20.56

 

¿ªÔÆÌåÓý

Steve and Peter ¨C One more data point on the ¡°problem¡±. Another club member is a WiThrottle (Apple) user rather than Engine Driver (Android). He says he has WiThrottle version 2.20 and was using it without problems while the club computer was JMRI version 2.8. Since upgrading to 2.12, his WiThrottle has stopped working.

?

Mark Granville


Locked Re: Engine Driver 2.20.56

 

¿ªÔÆÌåÓý

Steve and Peter ¨C thanks for the suggestions, will try them. Yes, I mistyped and meant 2.20.59. The problem may be a little strange. I tried Engine Driver 2.20.59 (on Tablet) at the club and it did not suffer the shut-down behavior, however, none of the locos would respond to the throttle after acquiring the loco address. I tried Engine Driver 2.18 (on phone) and 2.20.59 (on Tablet) at home and both worked fine. Both club and home computers are Windows 7 Pro running JMRI 4.12. Two differences that come to mind are:

1.?????? Club computer is interfaced to Digitrax DCS200 using RR-Circuits LocoBuffer-USB. Home computer is interfaced to NCE PowerHouse using Keyspan USB-Serial.

2.?????? Club computer was upgraded to JMRI 4.12 from 4.8. Home computer was upgraded from 4.10.

?

Mark Granville


Locked Re: Newbie Alastair's Decoder Pro programming problem (must be an easy fix I hope)

 

Hi All,

And it was an "easy fix" - but only when you have the knowledge and experience to make it easy - thank you again.
--
Cheers,

Alastair


Locked Re: Newbie Alastair's Decoder Pro programming problem (must be an easy fix I hope)

 

Hi All,

This just goes to show what a newbie/duffer I am !? The drop down menu ! (duh !).?
So I have changed to "basic" and saved and restarted - dadah !! - I can now edit/programme my roster - yipee :-)
Then I changed to "advanced" and saved and restarted - ultra dadah !! - I can still edit/programme my roster !
Thank you so much for your help.?
--
Cheers,

Alastair


Locked Standalone LocoNet

 

Hi All,

I have a Standalone LocoNet for detection & signals on my layout. ?It uses a NCE DCC system, since it doesn't have any Digitrax Command Stations I needed to create a "Pseudo Ground" to terminate the BDL168 Ground wire.

Attached via the link is the wiring diagram of how I have achieved this on the layout. ?Thanks again to Brendan for of his help working this out too!!

BDL168 Wiring Schematic.jpg


Locked Re: Engine Driver Suggestion

 

I think ED could still do it, only differently. Instead of relying on momentum, make ED honour requests to change speed in tiny selectable increments with a selectable delay in between. Those two selections should be engine or consist specofic, and where these settings should reside is a separate matter, but I think that would solve most issues - albeit at the cost of quite considerably more cab bus traffic.

Wotuer

On 28 July 2018 at 03:32, Stefan ` Bartelski <stefan@...> wrote:
It did seem a too easy solution. So the non-intelligent ProtoThrottle (PT) skin remains the suggested solution. Just need to make sure that the skin can handle the same set-up (function key assignments) that the PT does, I guess.



Locked Re: decoder pro. with paragon decoders

 

¿ªÔÆÌåÓý

The majority of decoder read/write issues are due to decoder/command station issues rather than JMRI.

However, there are two JMRI settings that can cause errors with some decoders. In Preferences->Roster->Programmer there are two settings that can cause problems with some decoders/systems or combinations thereof. They are:
  • Allow caching when writing index CVs...
  • When possible, confirm CV writes...

Try turning those two off and see if that helps.

--?
Dave in?Australia

On 28 Jul 2018, at 1:08 pm, AD <BKLYNS_BASEBALL_CLUB@...> wrote:

to any of the software writters of decoder pro

is there any interest in finding out why the jmri program has problems with the broadway limited paragon 3 decoders. ?i purchased 4 engines. 2 when put on the programming track can be detected. the basic and motor pages can be read and written to. all of the fancy sound and speed pages read some cv¡¯s and get error on most. other 2 engines. cant be detected. cant read their cv¡¯s and get error on every cv written.

however what is written, even though jmri tries 3 times and claims it failed, does get written at least on the basic page.

it would be nice to be able to know the cv settings but jmri gets errors on most and at best only reads a few.?



Locked Re: decoder pro. with paragon decoders

 

¿ªÔÆÌåÓý

to any of the software writters of decoder pro

is there any interest in finding out why the jmri program has problems with the broadway limited paragon 3 decoders. ?i purchased 4 engines. 2 when put on the programming track can be detected. the basic and motor pages can be read and written to. all of the fancy sound and speed pages read some cv¡¯s and get error on most. other 2 engines. cant be detected. cant read their cv¡¯s and get error on every cv written.

however what is written, even though jmri tries 3 times and claims it failed, does get written at least on the basic page.

it would be nice to be able to know the cv settings but jmri gets errors on most and at best only reads a few.?

i can change the address of the engines despite jmri saying it failed but it would be nice to be able to control all the sound and other nice features this decoder has.

i havent yet tried to use the digitrax handheld to change cv¡¯s. i assume that will work but that is a very tedious job assuming i can find documentation for this decoders that maps all the features listed by jmri to specific cv numbers.

technical support from broadway limited claims their decoders can be programmed but cant tell me if the jmri failures means a bad decoder or not. their support is limited to ¡®do you want to send it back to us to look at and we will do that in about 8-10 weeks.¡±

i dont see the point in sending them back to the dealer for replacements when others seam to have the same issues. ?they are nice engines with so many features even if i cant control those features with any certainity

tony


On Jul 26, 2018, at 8:30 PM, Classic Auto Portraits <classicautoportraits@...> wrote:

Dear TOny,

I have a number of Broadway Limited N Scale diesel locmotives. I love them for their detailing and great sound, b ut I have had issues with programming their decoders.
One way you cans et addresses is wit the Broadway Limited Address Changer. Luckily we have one at my N Scale club, however this doesn't help change other CVs.
I haven't had any issues with coding Paragon3's, but I have had some with paragon2's. I have one PA1 that will not change from 03 address no matter what I do. I'm sending it back to BLI for a new decoder. The others I was able to successfully program after repeated tries.
Also Digitrax mentions something called "Blast Mode" that deliveres additional power when setting decoders. I haven't used this but it would be worth considering .See attached below:

Regards,
Robert



On 7/26/18 2:26 PM, AD wrote:
i bought 4 emd type n scale dcc engines made by broadway limited and they have a paragon 3 sound decoder.

using my existing roster on panel pro i place an old engine on the programming ?track of a dcs 100- digitrax.
it finds the engine with no problem and can read all the sheets.

i place these new engines on the programming track. click new engine/read decoder
half the time it cant find the engine. if try many times i get to identify the decoder.?
i select paragon 3 diesel and open programmer

if i try to read all sheets it reads some cv and not others.

one engine i got to run on a long address but when i add a consist it doesnt respond to its address or the consist address. ?2 engines have been found only once in at least 50 attempts. all engines were tested by running them on address 3. now one engine doesnt run on either its short or long address.

i cant do a reset on 2 engines since the jmri program doesnt see them

does anyone have any experience with the n scale engines from broadway limited using paragon3 decoders.

anthing i can tryt before sending them back to the dealer. ?they are nice engines. i never had a decoder with so many fnctions and conrols. ?when i read the basic page on 2 it reads. i was able to change the speed table on one but cant repeat it as it will not read the speed table page as well as many of the nice feature pages but will read the basic , motor and light pages


want can i try

are these just bad decoders

tony


Locked Re: Engine Driver Suggestion

 

It did seem a too easy solution. So the non-intelligent ProtoThrottle (PT) skin remains the suggested solution. Just need to make sure that the skin can handle the same set-up (function key assignments) that the PT does, I guess.


Locked Re: Engine Driver Suggestion

 

¿ªÔÆÌåÓý

The idea of more realistic train simulation when running model RRs is certainly interesting and has been pursued in various ways over the years.? To get the most out of all the effort that entails, I think that it would be best if the simulation was available from all support UI throttles ¨C JMRI, WiThrottle and EngineDriver.? The best place for this would be either within JMRI or as a separate app that interfaces to JMRI in some way.? The role of Engine Driver is to provide a highly functional UI on Android devices and I think it does that pretty well.? Trying to push simulation into that app doesn¡¯t seem like the best way to go IMHO.?

?

Robin

?

Robin Becker

San Diego CA

?

?

From: [email protected] <[email protected]> On Behalf Of Stefan ` Bartelski
Sent: Friday, July 27, 2018 1:04 PM
To: [email protected]
Subject: Re: [jmriusers] Engine Driver Suggestion

?

Bob,?
I would like disagree with you on point 4 of your recent post. I believe that the EngineDriver app (EDa), or a derivative, could be written in such a way that it would not require a decoder with braking function. Also, why not include the momentum function in the app, instead of having to program CVs. A benefit would be that the momentum and braking functions would then work the same, irrespective of the decoder used. The only thing that might need to be done is some speed matching, relatively easy using DecoderPro.

How would this work? Imagine as you notch up on the smartphone screen, instead of jumping straight to a specific speed step, the app would slowly increase the speed, until the relevant? speed step is reached. On notching down, the reduction in speed steps could be very slow (= high momentum), unless the brake is activated. In that case the speed step reduction would occur faster. Another benefit of this approach, the ProtoThrottle (PT) has a progressive brake switch, but most decoders just have and on/off brake function. With the app, the brake could be truly progressive, i.e. move a little and you have light braking, slide it over more and the braking (speed step reduction) is heavier.
Also, while many decoders can re-assign function keys, it should also be possible to do the same in the software, in settings that are linked to the specific locomotive. This would make it possible to use decoders where the function key assignment is limited or not possible.

Peter Akers: If you need help writing a functional design document, I would be happy to contribute, in addition to any future testing. Unfortunately, my IT experience does not extend to smartphone programming otherwise I might have tackled this challenge myself.


Locked Re: Engine Driver Suggestion

 

¿ªÔÆÌåÓý

Your idea works fine with non-sound decoders.

However, modern sound decoders rely on the differential between requested speed to the decoder and actual track (motor) speed to change the sound samples from steady-state to acceleration, coasting and braking sounds.

Your suggested system prevents those sounds from ever being used, with a consequent loss of resemblance to reality. For many of us, the realism (in nature, quality will never be the same) of sound from the loco is a vital part of our enjoyment of the hobby.

Sound is what I always loved about trains and was what got me back into the hobby after a break for family duties.

--?
Dave in Australia

The New England Convention 2018

On 28 Jul 2018, at 6:04 AM, Stefan ` Bartelski <stefan@...> wrote:

I would like disagree with you on point 4 of your recent post. I believe that the EngineDriver app (EDa), or a derivative, could be written in such a way that it would not require a decoder with braking function. Also, why not include the momentum function in the app, instead of having to program CVs. A benefit would be that the momentum and braking functions would then work the same, irrespective of the decoder used. The only thing that might need to be done is some speed matching, relatively easy using DecoderPro.


Locked QuadLN Users meeting at NMRA Kansas City

 

¿ªÔÆÌåÓý

Hi.? For those using Tam Valley Depot QuadLN family products with JMRI and attending the NMRA National Convention, there will be a QuadLN Users meeting on Friday morning.? Planning a live demo of a new QuadLN_S add-on product.? See you there!

?

Robin

?

Robin Becker

San Diego CA

?


Locked Re: Engine Driver 2.20.56

 

Mark,
I have been looking at the bug report and so far can't see what the problem might be.

It is a bit of a stretch, but can I ask that you get your friend to clear the data for the app then try opening ED again.
Phone Settings -> Apps -> Engine Driver -> Storage -> Clear Data

This one is really unlikely, but can you also check that that app permissions are correct
Phone Settings -> Apps -> Engine Driver -> Permissions? ? -? Camera, Storage and Telephone should be enabled.

Peter
(Brisbane Australia)


Locked Re: Engine Driver Suggestion

 

Bob,?
I would like disagree with you on point 4 of your recent post. I believe that the EngineDriver app (EDa), or a derivative, could be written in such a way that it would not require a decoder with braking function. Also, why not include the momentum function in the app, instead of having to program CVs. A benefit would be that the momentum and braking functions would then work the same, irrespective of the decoder used. The only thing that might need to be done is some speed matching, relatively easy using DecoderPro.

How would this work? Imagine as you notch up on the smartphone screen, instead of jumping straight to a specific speed step, the app would slowly increase the speed, until the relevant? speed step is reached. On notching down, the reduction in speed steps could be very slow (= high momentum), unless the brake is activated. In that case the speed step reduction would occur faster. Another benefit of this approach, the ProtoThrottle (PT) has a progressive brake switch, but most decoders just have and on/off brake function. With the app, the brake could be truly progressive, i.e. move a little and you have light braking, slide it over more and the braking (speed step reduction) is heavier.
Also, while many decoders can re-assign function keys, it should also be possible to do the same in the software, in settings that are linked to the specific locomotive. This would make it possible to use decoders where the function key assignment is limited or not possible.

Peter Akers: If you need help writing a functional design document, I would be happy to contribute, in addition to any future testing. Unfortunately, my IT experience does not extend to smartphone programming otherwise I might have tackled this challenge myself.


Locked Re: Newbie Alastair's Decoder Pro programming problem (must be an easy fix I hope)

 

? ?Yeah, I'm seeing 10 entries for the programmer Format.

Roger


Locked Re: Newbie Alastair's Decoder Pro programming problem (must be an easy fix I hope)

 

¿ªÔÆÌåÓý

I occasionally see that sort of error message where the selected programmer file name gets corrupted.

Usually it can be fixed by simply selecting a different entry from the dropdown list, saving and restarting, then reselecting Advanced, saving and restarting again.

If you can't see any items in the dropdown list apart from "Advanced", that would seem to indicate a corrupted JMRI installation.

--?
Dave in Australia


The New England Convention 2018

On 28 Jul 2018, at 2:29 AM, Alastair <Raider844@...> wrote:

I am sorry but I don't see "Comprehensive" in that selection just "Advanced" and that was selected - please see image?180727 Alastair Decoder Pro Preferences-Roster-Programmer in?/g/jmriusers/album?id=64949?- do you have have any insight ?


Locked Re: Engine Driver 2.20.56

 

Hi Mark, hopefully you are referring to 2.20.59. I see a series of crash reports from a single device yesterday. Looks like a hardware issue with the tone generator. We're looking into it. The fix will be first available as a Beta, so if you could get your friend to join the Beta program, that would be very helpful.


On Fri, Jul 27, 2018, 12:02 PM Mark Granville <mfgranville@...> wrote:
A club member just updated his Engine Driver to version 2.20.56 by auto update. When he opens the app, it connects to our JMRI as usual and shows in the WiThrottle Server window as attached. BUT, very quickly, a notice that Engine Driver has shut down appears on his screen. Another club member's version 2.12 and my version 2.18 are still working fine. Any ideas what may have happened to 2.20.56? Bad update install? Bug in this version? Bad phone? Suggestions for moving forward will be appreciated.

Mark Granville
Silk City Model Railroad Club
Manchester, CT