We have moved at community.getvera.com

Author Topic: OH on older MacMini issues  (Read 1867 times)

Offline shady

  • Hero Member
  • *****
  • Posts: 1331
  • Karma: +11/-0
  • This monkey knows his Window Coverings!
OH on older MacMini issues
« on: February 10, 2015, 12:04:08 am »
OK, I am not strong on Mac, but I get by so I appreciate any help here.  I was able to install openHAB on my 2009 Snow Leopard 10.6.4 MacMini in the /opt/openhab/ directory and I had a working Demo system that was not linked to Vera yet.  I was able to access the UI from another PC on the network, and the android app.

Then a few weeks go by and I have time again to work on getting Vera connected, but by now there are all of these great stickies and I noticed @gduprey's recommendation for installing Java JDK 1.7. Turns out this Mac came with its own Java 1.6 and isn't able to install newer versions.  That didn't stop me since there are plenty of links for work-arounds, I hoped the naysayers were wrong since they say it will hose your Java install (fixable).  I followed the instructions here:
http://jksha.blogspot.se/2013/09/java-7-and-snow-leopard-osx-106.html
and made sure to do everything incl reestablishing Alias' paths using ln -s in terminal.  As far as I can tell it installed correctly and everything else is running (even after restarts), including Crashplan.app which someone had mentioned stopped running due to their attempt to install 1.7.

Now OH doesn't seem to be working...
I used @gduprey's commands to start openHAB (since I had done a few restarts on the MacMini):
navigated to the /opt/openhab/ directory
chmod a+rx start.sh
./start.sh
(to get the following output)
Code: [Select]
Launching the openHAB runtime...
osgi> 2015-02-09 20:05:17.974 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.6.1).
2015-02-09 20:05:21.357 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
2015-02-09 20:05:21.488 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
2015-02-09 20:05:27.158 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
2015-02-09 20:05:30.253 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.sitemap'
2015-02-09 20:05:30.812 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.script'
2015-02-09 20:05:31.159 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'db4o.persist'
2015-02-09 20:05:31.229 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'exec.persist'
2015-02-09 20:05:31.239 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'logging.persist'
2015-02-09 20:05:31.274 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
2015-02-09 20:05:31.356 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.items'
2015-02-09 20:05:32.694 java[2075:ac03] *** NSInvocation: warning: object 0x1085fb3c0 of class 'ThreadUtilities' does not implement methodSignatureForSelector: -- trouble ahead
2015-02-09 20:05:32.697 java[2075:ac03] *** NSInvocation: warning: object 0x1085fb3c0 of class 'ThreadUtilities' does not implement doesNotRecognizeSelector: -- abort
./start.sh: line 16:  2075 Trace/BPT trap          java -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Djetty.port=$HTTP_PORT -Djetty.port.ssl=$HTTPS_PORT -Djetty.home=. -Dlogback.configurationFile=configurations/logback.xml -Dfelix.fileinstall.dir=addons -Djava.library.path=lib -Djava.security.auth.login.config=./etc/login.conf -Dorg.quartz.properties=./etc/quartz.properties -Dequinox.ds.block_timeout=240000 -Dequinox.scr.waitTimeOnBlock=60000 -Dfelix.fileinstall.active.level=4 -Djava.awt.headless=true -jar $cp $* -console

edit:  now that I see the output again, it seems there are java errors... Thanks again for any help.
« Last Edit: February 10, 2015, 12:07:05 am by shady »
Vera3 1.5.346, Schlage (3)DB (2)Lever, Kwikset (1)Lever, RCS TZ43 Thermo, (2) Vizia RZI06-1LX 600W Dimmers, (17) Monster (Leviton) Dimmers (6) Monster (Leviton) IWC Scene Controllers (1) Etherrain-8, (3) HSM 100's (1)GE 3-Way set

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: OH on older MacMini issues
« Reply #1 on: February 10, 2015, 01:12:41 am »
Googling that error message about class ThreadUtilities gives some very relevant results. None of them look particularly promising as far as solving your problem. You might have to abandon the Apple Java distributions and compile something yourself. Openjdk on MacPorts?

Offline guessed

  • Moderator
  • Master Member
  • *****
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: OH on older MacMini issues
« Reply #2 on: February 10, 2015, 11:45:30 am »
Hey shady,
openJDK has issues with openHAB, so you'll want to run a real Oracle release.

Here's what I'm running on my Mac Mini (OS X Yosemite 10.10.2):

Code: [Select]
me: $ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

On the Odroid, it's this setup:

Code: [Select]
odroid@odroid:~$ java -version
java version "1.8.0_33"
Java(TM) SE Runtime Environment (build 1.8.0_33-b05)
Java HotSpot(TM) Client VM (build 25.33-b05, mixed mode)


You may want to check also whether you have any sub-shell overrides of which Java is in the path.


PS: I had that Java problem with Crashplan a long time back.  I think it happened when I upgrades to a newer version of Mac OS.  Is there any reason you're holding your Mac back?  10.10 has been out for a while now ;)

Offline shady

  • Hero Member
  • *****
  • Posts: 1331
  • Karma: +11/-0
  • This monkey knows his Window Coverings!
Re: OH on older MacMini issues
« Reply #3 on: February 11, 2015, 11:02:04 pm »
Thank you both for the replies.

@Guessed, there were some recommending against running it on older hardware, but you're right, it's not like I am going to use the Mini for anything else.  It was my DVR with EyeTV, but it failed the WAF over the cable box (my fault for suggesting we might not NEED pay cable anymore).

I just wanted to check to make sure it wasn't something simple and I was still GOOD, like an incorrect format of a command in terminal or something.  Off to upgrade the OS...
Vera3 1.5.346, Schlage (3)DB (2)Lever, Kwikset (1)Lever, RCS TZ43 Thermo, (2) Vizia RZI06-1LX 600W Dimmers, (17) Monster (Leviton) Dimmers (6) Monster (Leviton) IWC Scene Controllers (1) Etherrain-8, (3) HSM 100's (1)GE 3-Way set

Offline guessed

  • Moderator
  • Master Member
  • *****
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: OH on older MacMini issues
« Reply #4 on: February 12, 2015, 12:10:53 am »
It'll still run EyeTV, I run it on my Mac Mini with OSX 10.10... But yes, it fails WAF miserably.  Waiting for Channel Master to release a quad-tuner alternative to Tablo before I disconnect DirecTV ;)

Anyhow, let us know if you continue to have issues after the upgrade, and application of Oracle's JVM.  I can always take a look at it over VPN (or similar) if you continue to have issues... Mates rates 8)