Author Topic: CATS on MacOS  (Read 1389 times)

0 Members and 1 Guest are viewing this topic.

GaryHinshaw

  • Global Moderator
  • Crew
  • *
  • Posts: 6347
  • Respect: +1869
CATS on MacOS
« on: April 24, 2017, 08:17:52 PM »
0
I posted this to the JMRI users group, but I thought it would be worth tossing out here as well, just in case someone has seen this before.  -gfh

I am trying to set up CATS (Computer Automated Traffic System) on a system with the following attributes:
MacOS: 10.11.6
Java: Java 8 Update 131
JMRI: 4.6-R81496dc
CATS: 2.38

I try to start CATS with the cats.csh file and things proceed until I encounter a Java NullPointerException. Any advice on what to modify to get further? I am appending the shell script log, in debug mode, below. One thing that seems odd is that CATS is starting JMRI under Java 1.8.0_112, instead of 131, but that doesn't appear to be fatal...

Thanks very much,
Gary


Garys-MacBook-Pro:jmri Gary$ ./cats.csh
PWD: '/Applications/jmri'
CLASSPATH: '.:classes:java/classes:cats.jar:designer.jar::jmri.jar:lib/RXTXcomm.jar:lib/Serialio.jar:lib/WinRegistry-4.4.jar:lib/beansbinding-1.2.1.jar:lib/bluecove-2.1.1-SNAPSHOT.jar:lib/bluecove-bluez-2.1.1-SNAPSHOT.jar:lib/bluecove-gpl-2.1.1-SNAPSHOT.jar:lib/ch.ntb.usb.jar:lib/commons-io-1.3.1.jar:lib/commons-lang3-3.2.1.jar:lib/gluegen-rt.jar:lib/jackson-annotations-2.0.6.jar:lib/jackson-core-2.0.6.jar:lib/jackson-databind-2.0.6.jar:lib/jakarta-regexp-1.5.jar:lib/javacsv.jar:lib/javax.servlet-api-3.1.0.jar:lib/jdom-2.0.5.jar:lib/jdom.jar:lib/jetty-http-9.3.9.v20160517.jar:lib/jetty-io-9.3.9.v20160517.jar:lib/jetty-security-9.3.9.v20160517.jar:lib/jetty-server-9.3.9.v20160517.jar:lib/jetty-servlet-9.3.9.v20160517.jar:lib/jetty-util-9.3.9.v20160517.jar:lib/jhall.jar:lib/jhidrawplugin.jar:lib/jinput.jar:lib/jlfgr-1_0.jar:lib/jmdns.jar:lib/joal.jar:lib/jul-to-slf4j-1.7.13.jar:lib/jython-standalone-2.7.0.jar:lib/jython.jar:lib/log4j-1.2.17.jar:lib/mailapi.jar:lib/openlcb.jar:lib/pi4j-core.jar:lib/pi4j-device.jar:lib/pi4j-gpio-extension.jar:lib/pi4j-service.jar:lib/slf4j-api-1.7.13.jar:lib/slf4j-log4j12-1.7.13.jar:lib/smtp.jar:lib/vecmath-1.5.2.jar:lib/websocket-api-9.3.9.v20160517.jar:lib/websocket-client-9.3.9.v20160517.jar:lib/websocket-common-9.3.9.v20160517.jar:lib/websocket-server-9.3.9.v20160517.jar:lib/websocket-servlet-9.3.9.v20160517.jar:lib/xAPlib.jar:lib/xbjlib-1.1.1.jar:lib/xercesImpl.jar'
CONFIGFILE: 'cats.cshConfig2.xml'
OPTIONS: ' -noverify -Djava.security.policy=lib/security.policy -Djava.rmi.server.codebase=file:java/classes/ -Djava.library.path=.:lib/macosx:lib -Dsun.java2d.noddraw -Xms30m -Xmx200m -Dgnu.io.rxtx.NoVersionOutput=true'
ALTPORTS: ''
java -noverify -Djava.security.policy=lib/security.policy -Djava.rmi.server.codebase=file:java/classes/ -Djava.library.path=.:lib/macosx:lib -Dsun.java2d.noddraw -Xms30m -Xmx200m -Dgnu.io.rxtx.NoVersionOutput=true -cp .:classes:java/classes:cats.jar:designer.jar::jmri.jar:lib/RXTXcomm.jar:lib/Serialio.jar:lib/WinRegistry-4.4.jar:lib/beansbinding-1.2.1.jar:lib/bluecove-2.1.1-SNAPSHOT.jar:lib/bluecove-bluez-2.1.1-SNAPSHOT.jar:lib/bluecove-gpl-2.1.1-SNAPSHOT.jar:lib/ch.ntb.usb.jar:lib/commons-io-1.3.1.jar:lib/commons-lang3-3.2.1.jar:lib/gluegen-rt.jar:lib/jackson-annotations-2.0.6.jar:lib/jackson-core-2.0.6.jar:lib/jackson-databind-2.0.6.jar:lib/jakarta-regexp-1.5.jar:lib/javacsv.jar:lib/javax.servlet-api-3.1.0.jar:lib/jdom-2.0.5.jar:lib/jdom.jar:lib/jetty-http-9.3.9.v20160517.jar:lib/jetty-io-9.3.9.v20160517.jar:lib/jetty-security-9.3.9.v20160517.jar:lib/jetty-server-9.3.9.v20160517.jar:lib/jetty-servlet-9.3.9.v20160517.jar:lib/jetty-util-9.3.9.v20160517.jar:lib/jhall.jar:lib/jhidrawplugin.jar:lib/jinput.jar:lib/jlfgr-1_0.jar:lib/jmdns.jar:lib/joal.jar:lib/jul-to-slf4j-1.7.13.jar:lib/jython-standalone-2.7.0.jar:lib/jython.jar:lib/log4j-1.2.17.jar:lib/mailapi.jar:lib/openlcb.jar:lib/pi4j-core.jar:lib/pi4j-device.jar:lib/pi4j-gpio-extension.jar:lib/pi4j-service.jar:lib/slf4j-api-1.7.13.jar:lib/slf4j-log4j12-1.7.13.jar:lib/smtp.jar:lib/vecmath-1.5.2.jar:lib/websocket-api-9.3.9.v20160517.jar:lib/websocket-client-9.3.9.v20160517.jar:lib/websocket-common-9.3.9.v20160517.jar:lib/websocket-server-9.3.9.v20160517.jar:lib/websocket-servlet-9.3.9.v20160517.jar:lib/xAPlib.jar:lib/xbjlib-1.1.1.jar:lib/xercesImpl.jar cats.apps.Crandic cats.cshConfig2.xml
2017-04-24 14:26:53,366 util.Log4JUtil INFO - ****** JMRI log ******* [main]
2017-04-24 14:26:53,975 util.Log4JUtil INFO - This log is appended to file: /Users/Gary/Library/Preferences/JMRI/log/messages.log [main]
2017-04-24 14:26:53,976 util.Log4JUtil INFO - This log is stored in file: /Users/Gary/Library/Preferences/JMRI/log/session.log [main]
2017-04-24 14:26:53,992 apps.Apps INFO - CATS version 4.6-R81496dc starts under Java 1.8.0_112 on Mac OS X x86_64 v10.11.6 at Mon Apr 24 14:26:53 PDT 2017 [main]
2017-04-24 14:26:53,993 apps.Crandic INFO - CATS version 2.38 [main]
2017-04-24 14:26:56,449 apps.Apps INFO - Starting with profile Crandic.3e033196 [main]
2017-04-24 14:26:56,509 node.NodeIdentity INFO - Using jmri-9801A7B774D9-3e033196 as the JMRI Node identity [main]
2017-04-24 14:26:56,785 hexfile.LnHexFilePort INFO - LocoNet Simulator Started [Thread-6]
2017-04-24 14:26:57,211 util.FileUtilSupport INFO - File path program: is /Applications/JMRI/ [main]
2017-04-24 14:26:57,212 util.FileUtilSupport INFO - File path preference: is /Users/Gary/Library/Preferences/JMRI/Crandic/ [main]
2017-04-24 14:26:57,212 util.FileUtilSupport INFO - File path profile: is /Users/Gary/Library/Preferences/JMRI/Crandic/ [main]
2017-04-24 14:26:57,213 util.FileUtilSupport INFO - File path settings: is /Users/Gary/Library/Preferences/JMRI/ [main]
2017-04-24 14:26:57,213 util.FileUtilSupport INFO - File path home: is /Users/Gary/ [main]
2017-04-24 14:26:57,213 util.FileUtilSupport INFO - File path scripts: is /Applications/JMRI/jython/ [main]
2017-04-24 14:26:57,272 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [main]
java.lang.NullPointerException
at sun.awt.SunToolkit.imageCached(SunToolkit.java:896)
at sun.lwawt.macosx.LWCToolkit.getImage(LWCToolkit.java:549)
at apps.Apps.statusPanel(Apps.java:858)
at apps.Apps.<init>(Apps.java:420)
at cats.apps.Crandic.<init>(Crandic.java:205)
at cats.apps.Crandic.main(Crandic.java:227)
2017-04-24 14:27:07,536 managers.DefaultShutDownManager INFO - Normal termination complete [AWT-EventQueue-0]
Garys-MacBook-Pro:jmri Gary$

John

  • Administrator
  • Crew
  • *****
  • Posts: 13407
  • Respect: +3263
Re: CATS on MacOS
« Reply #1 on: April 24, 2017, 08:26:04 PM »
0
I would also post in the CATS user group . you will likely get a faster response from Rodney ..

does JMRI work normally?  Make sure you are using the correct version of CATS for the version of JMRI ..
« Last Edit: April 24, 2017, 08:31:49 PM by John »

GaryHinshaw

  • Global Moderator
  • Crew
  • *
  • Posts: 6347
  • Respect: +1869
Re: CATS on MacOS
« Reply #2 on: April 24, 2017, 10:11:09 PM »
0
Is there a CATS users group, John?  I couldn't find one in my searches.  I will try contacting Rodney directly via his site, but from what I understand, he is not a Mac guy.

BTW, JMRI operates just fine on my system.  My layout would be hosed without it.

reinhardtjh

  • Crew
  • *
  • Posts: 3006
  • Respect: +365
Re: CATS on MacOS
« Reply #3 on: April 24, 2017, 10:14:31 PM »
0
I am trying to set up CATS (Computer Automated Traffic System) on a system with the following attributes:
MacOS: 10.11.6
Java: Java 8 Update 131
JMRI: 4.6-R81496dc
CATS: 2.38

Make sure you are using the correct version of CATS for the version of JMRI ..

Might be the versions... CATS 2.38 was good for JMRI up to v4.4  There is a CATS 2.40 download but the manual in it is the same as the 2.38 version.  If Rodney forgot to update it you might get CATS 2.40 to work with JMRI 4.6.  Unless you have CATS 2.40 and it reports as 2.38.  You could try.  The other option would be to downgrade JMRI to V4.4 and see if it works.  I don't know what functionality you might lose going from JMRI v4.6 to v4.4.  Hopefully nothing you need.

John H. Reinhardt
PRRT&HS #8909
C&O HS #11530
N-Trak #7566

GaryHinshaw

  • Global Moderator
  • Crew
  • *
  • Posts: 6347
  • Respect: +1869
Re: CATS on MacOS
« Reply #4 on: April 25, 2017, 12:09:27 AM »
0
Thanks for the responses guys.  Rodney just responded on the jmri group and it turned out to simply be a misplaced image file (crandic.gif) that CATS was looking for.  I thought I had it there, but I didn't...

In any case, I'm now able to view the sample panel, crandic.xml, and I should be able to follow the examples to set up my own layout.  :)

GaryHinshaw

  • Global Moderator
  • Crew
  • *
  • Posts: 6347
  • Respect: +1869
Re: CATS on MacOS
« Reply #5 on: April 25, 2017, 05:29:29 PM »
0
One quick follow up to this: in order to successfully run the designer program (for building panels) I had to modify designer.csh to update one of the library files, from:

lib/log4j.jar

to:

lib/log4j-1.2.17.jar

This may be release specific, and I'm not sure what will happen when I update jmri. But designer seems to work fine now too. :)

John

  • Administrator
  • Crew
  • *****
  • Posts: 13407
  • Respect: +3263
Re: CATS on MacOS
« Reply #6 on: April 25, 2017, 05:59:13 PM »
0
I had to change log4j as well in some versions of linux ...   CATS group is  https://groups.yahoo.com/neo/groups/CATS-users/

It's not very active, but has a lot of good info .. I love CATS .. its a lot easier to program the panel that way, and you can still use the Logix from JMRI

bdennis

  • Crew
  • *
  • Posts: 557
  • Gender: Male
  • Respect: +172
    • Delaware & Hudson Champlain Division
Re: CATS on MacOS
« Reply #7 on: April 26, 2017, 11:24:16 PM »
0
Gary, I plan on using CATS for my current layout. (have built 2 x CTC panels for 2 different layouts so far and thought I would give CATS a go.)
I would be interested to follow your progress on either this thread or your layout one..
Brendan Dennis
N scale - Delaware & Hudson Champlain Division

GaryHinshaw

  • Global Moderator
  • Crew
  • *
  • Posts: 6347
  • Respect: +1869
Re: CATS on MacOS
« Reply #8 on: April 27, 2017, 12:18:44 AM »
0
I'll be very interested to follow my progress too!  :D   I hope I have something useful to offer.

My goal is to get a rudimentary panel in service for a session in late May (when @Scottl will be in town).   If successful, this would be the first properly dispatched session we will have had on the layout.

-gfh

P.S. John, your link was 404.  It redirected me to a list of Yahoo groups I subscribe to, including jmri users.  Oh well.