Author Topic: JMRI PROBLEM  (Read 1141 times)

0 Members and 1 Guest are viewing this topic.

woodone

  • Crew
  • *
  • Posts: 799
  • Gender: Male
  • Respect: +33
JMRI PROBLEM
« on: December 01, 2023, 11:08:18 AM »
0
I went to us my JMRI program the other day and ran into problems. I could not get decoder pro to stay in service mode. could not find USB PORT.
OK tried several times. Figured I needed to update. Did that and upgraded JAVA to.
Now when I try to open decoder-pro, I get a Java error.   A java exception has occurred. Says to make sure older versions of Jave have been removed and do restart before install a new version.  I have done that more than once and get the same error. the more I read the less I know.
I see in the JMRI forum this has happened in the past.
any help with this?  thanks in advance.

peteski

  • Crew
  • *
  • Posts: 32952
  • Gender: Male
  • Honorary Resident Curmudgeon
  • Respect: +5340
    • Coming (not so) soon...
Re: JMRI PROBLEM
« Reply #1 on: December 01, 2023, 12:05:49 PM »
0
I went to us my JMRI program the other day and ran into problems. I could not get decoder pro to stay in service mode. could not find USB PORT.
OK tried several times. Figured I needed to update. Did that and upgraded JAVA to.
Now when I try to open decoder-pro, I get a Java error.   A java exception has occurred. Says to make sure older versions of Jave have been removed and do restart before install a new version.  I have done that more than once and get the same error. the more I read the less I know.
I see in the JMRI forum this has happened in the past.
any help with this?  thanks in advance.

If you are a member of a JMRI forum, I would expect best troubleshooting advice there.  And if this issue has been documented, what was the solution to the past problem?

While I'm not very familiar with JMRI itself, I know for a fact that behind-the-scenes automatic MS Windows updates can mess things up on your computer.  Or maybe your computer has been hacked?
. . . 42 . . .

kiwi_bnsf

  • Crew
  • *
  • Posts: 233
  • Respect: +239
Re: JMRI PROBLEM
« Reply #2 on: December 01, 2023, 03:04:28 PM »
+1
I went to us my JMRI program the other day and ran into problems. I could not get decoder pro to stay in service mode. could not find USB PORT.
OK tried several times. Figured I needed to update. Did that and upgraded JAVA to.
Now when I try to open decoder-pro, I get a Java error.   A java exception has occurred. Says to make sure older versions of Jave have been removed and do restart before install a new version.  I have done that more than once and get the same error. the more I read the less I know.
I see in the JMRI forum this has happened in the past.
any help with this?  thanks in advance.


Hi there,

I think you have a couple of things going on here:

1. There was initially a communication problem from JMRI/DecoderPro to your USB device that is providing a serial interface to your DCC system or standalone programmer. This is quite common and the a lot of different reasons that this can occur. USB/COM ports can suffer issues where their device addressing changes, or a different program (or crashed instance of JMRI) won't let go of the port. Or it could be that there is a problem with the device connected to the USB port (cable, power, configuration issue).

Generally it's best to troubleshoot starting with the simplest steps and changing as few variables as possible — i.e. not changing the software versions or applying updates except as a last resort. I'd start by rebooting everything (shutdown the computer, power cycle the USB interface / Command station). Check cables. Power everything up and check for lights. Take a look at whether JMRI can see the interface again via USB or whether the COM port or serial address has changed in the JMRI Preferences Connection and build out from there. (Apologies if you already tried all these steps).


2. The Java exception is something I've run into quite a lot on both Mac and Windows. This will likely be an incompatibility between your JMRI version and the Java version after you changed this.

If you have not done so already, I would take a backup of your JMRI folder(s) and make sure you don't lose any roster entries, panels, or preferences when re-installing.

I would uninstall Java completely, and re-install a Java 11 version that is known to be compatible with the current JRMI 5.4 stable release.

The instructions for this are listed here:      https://www.jmri.org/java/index.shtml

I've had great success with the Zulu 11.x releases recommended by JMRI. (I've not had any success with the later Oracle releases).

Once you have Java re-installed, there is an Install Test script in the JMRI folder that you can use to interactively test the Java install and then launch JMRI step-by-step. At the very least, if you run into issues, you will have some logs and clues as to where the issue is.

If Java looks good, but JMRI still fails, then you can move your current JMRI folder aside, and install the latest JMRI stable release. Once you can get back to a functioning JMRI / Decoder Pro, you can then go back to troubleshooting the original issue.

Hope that this helps

Cheers.
--
Tim Benson

Modelling Tehachapi East Slope in N scale circa 1999

woodone

  • Crew
  • *
  • Posts: 799
  • Gender: Male
  • Respect: +33
Re: JMRI PROBLEM
« Reply #3 on: December 19, 2023, 09:29:36 PM »
0
Thanks Tim.
I waited several days before trying this again.
Got to it today.
Talk about confusing!
I never did really understand all there was to do, but I did get JMRI to work for awhile.
I do not understand all the problems with getting JMRI to work.
Seems like there should be a link or two and you would be on your way-NOT!
I will try again tomorrow if I feel like getting beat up again.
Restarting the computer after down loading and then you have to reboot the NCE throttle too, and in a certain order.
What a PITA.
I take it you did not get version 11 of Java to work by just using Java data?
Thanks again

kiwi_bnsf

  • Crew
  • *
  • Posts: 233
  • Respect: +239
Re: JMRI PROBLEM
« Reply #4 on: December 20, 2023, 08:21:35 PM »
0
Quote
I take it you did not get version 11 of Java to work by just using Java data?

Sorry I’m not sure what you mean by “using Java data”?

I’ve had good success with the Zulu Java linked to by JMRI on their install instructions (both under Windows and Mac).

Cheers
--
Tim Benson

Modelling Tehachapi East Slope in N scale circa 1999