Git Product home page Git Product logo

amazon-echo-ha-bridge's People

Contributors

2bitoperations avatar armzilla avatar brysonreece avatar duanemay avatar dvankley-sfdc avatar hackworth avatar markfalk avatar olegk-hybrid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-echo-ha-bridge's Issues

User modifiable bridge address for configurator?

Hi arm,

Great work on this. I am thoroughly enjoying the echo controlling all of my automation devices.

I created a docker for this, and several people have been using it: https://registry.hub.docker.com/u/aptalca/docker-amazon-echo-ha-bridge/

But one issue is that, configurator.html has the bridge address hardcoded as localhost. Unfortunately in docker the bridge is unreachable through localhost (it should be as I'm using host mode, but can't figure out why it is not) and the local ip of the server needs to be used. It results in the CORS error being displayed, but the real issue is that localhost is not reachable (I tried disabling web security in chrome and that did not work either)

To test, I replaced localhost with the local server ip in configurator.html in the jar file and everything seems to work that way.

Is it possible to have the bridge address user selected/modified, or even extracted from the url?

Another idea is that, the docker requires the input of the local server ip so it can run java with the upnp.config.address=$SERVERIP parameter. $SERVERIP is passed into the docker container as an environment variable. Perhaps that could be used for the configurator.html?

I'm sure you'll have better ideas on how to get around it.

Thanks

Sorry, I couldn't reach the device or group.

First off - AWESOME! Thanks so much for this great bridge.

I got things running, but I get an Echo response that says: "Sorry, I couldn't reach the device or group name Living Room". The lights do turn on and off.

In the logs, I see this error:
org.springframework.util.InvalidMimeTypeException: Invalid mime type "json": does not contain '/'

One slight departure of what I'm doing is instead of controlling individual lights, I'm using it to control a Vera scene. My code I uploaded is as follows:
{
"name" : "Living Room",
"deviceType" : "switch",
"onUrl" : "http://192.168.1.24:3480/data_request?id=action&output_format=json&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=1",
"offUrl" : "http://192.168.1.24:3480/data_request?id=action&output_format=json&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=2"
}

Perhaps the java app isn't getting the right response?

I find that when I add a group in the Echo app and it has this 'virtual' address as well as a real Hue light, then I don't get the error message.

Any thoughts?

Support Color Setting

I'm assuming the Hue bulbs can along with brightness be configured to choose the color they are set at. I'm using this gateway along with my home automation to turn on and off Mi Light bulbs and would like to be able to choose color.

Is there any plan to incorporate this?

New PUT/POST support not working?

I pulled master, ran mvn install, restarted the server, and I don't see any semblance of the new PUT and POST support on the server that was mentioned as being added on #25.

The webview doesn't seem to have fields for METHOD, and when adding a device via the API, it returns an object without any of the new optional fields. The same happens when I query the list of devices.

curl -H "Content-Type: application/json" -X POST -d '{"name": "TV","deviceType": "switch","offUrl": "http://kitchen-pi.home:3000/remotes/vizio/KEY_POWER","onUrl": "http://kitchen-pi.home:3000/remotes/vizio/KEY_POWER","httpVerb":"POST", "contentBody":"{}", "contentType" : "application/json"}' http://media.local:8383/api/devices

=>

{
  "id":"49c54c64-0491-45b7-8911-a8c3b9c971fd",
  "name":"TV",
  "deviceType":"switch",
  "offUrl":"http://kitchen-pi.home:3000/remotes/vizio/KEY_POWER",
  "onUrl":"http://kitchen-pi.home:3000/remotes/vizio/KEY_POWER"
}

I'm also not seeing my devices actually work. What can I do to make sure things are running correctly. And is this feature actually working correctly? Thanks!

Unable to run code on JDK 8 ver 65 for ARM processor

I receive this when attempting to run:
[root@wandboard opt]# java -jar amazon-echo-bridge-0.2.1.jar
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication
at com.armzilla.ha.SpringbootEntry.main(SpringbootEntry.java:14)
... 6 more
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
My version is:

java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)

Works with the Nest?

I saw a video online where someone used this to control their Nest as if it was a light bulb (brighness of 72 would be room temp).

I got the java app installed on my Rasperry Pi and running. I can get to the config portal on my PC, but now I am stuck. Does anyone have advice on how to set up the Nest as a device?

Thanks!

Alexa not discovering bridge

They are both on the same wifi, I can hit the config page and add devices. But when I tell alexa to discover them, she tells me there is nothing. Was there an update that broke this?

Devices discovered by Echo but reported as not responding when I try to control them

I’ve completed the setup and have a hue device recognised by Echo. I used FHEM home automation software, and a light is turned on with:

myurl/fhem?cmd=set%20LOUNGELIGHT%20on&XHR=1

When I say “alexa lounge light on” it replies by saying “sorry the device lounge light is not responding”

Any ideas why? I’m running with a raspberry Pi connected to ethernet. My FHEM server is on the same ethernet network.

Thanks

Dim option

This is a feature request more than issue...

The echo supports dim commands:
Alexa, dim the living room to 20%.

It would be fabulous to add this to the bridge.

According to the vera docs: http://wiki.micasaverde.com/index.php/Luup_Requests
Dim should be supported via web call:
http://ip_address:3480/data_request?id=action&output_format=json&DeviceNum=7&serviceId=urn:upnp-org:serviceId:Dimming1&action=SetLoadLevelTarget&newLoadlevelTarget=30

Having issues running 2.1.0 trying to communicate with Vera

I can create my devices, echo finds them, but when i go to tell echo what to do, she says she can't communicate to the bridge, and this is what i get from the bridge logs...

2015-08-25 01:31:35.204 INFO 2787 --- [nio-8080-exec-4] c.armzilla.ha.upnp.UpnpSettingsResource : upnp device settings requested: amazon-ha-bridge from 192.168.1.25
2015-08-25 01:31:35.548 INFO 2787 --- [nio-8080-exec-3] com.armzilla.ha.hue.HueMulator : hue lights list requested: yMkLXpiEiq46uQ5caHRhiP1IPwBf0XL0uve5WaDT from 192.168.1.25
2015-08-25 01:31:35.752 INFO 2787 --- [nio-8080-exec-5] com.armzilla.ha.hue.HueMulator : hue api root requested: yMkLXpiEiq46uQ5caHRhiP1IPwBf0XL0uve5WaDT from 192.168.1.25
2015-08-25 01:31:37.543 INFO 2787 --- [nio-8080-exec-6] com.armzilla.ha.hue.HueMulator : hue state change requested: yMkLXpiEiq46uQ5caHRhiP1IPwBf0XL0uve5WaDT from 192.168.1.25
2015-08-25 01:31:37.544 INFO 2787 --- [nio-8080-exec-6] com.armzilla.ha.hue.HueMulator : hue stage change body: {"on": true}
2015-08-25 01:31:37.549 INFO 2787 --- [nio-8080-exec-6] com.armzilla.ha.hue.HueMulator : Making outbound call: GET HTTP/1.1
2015-08-25 01:31:37.566 ERROR 2787 --- [nio-8080-exec-6] com.armzilla.ha.hue.HueMulator : Error calling out to HA gateway

org.apache.http.client.ClientProtocolException: null
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
at com.armzilla.ha.hue.HueMulator.doHttpRequest(HueMulator.java:202)
at com.armzilla.ha.hue.HueMulator.stateChange(HueMulator.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:776)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:705)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:879)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:291)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.armzilla.ha.filters.SpringBootCorsFilter.doFilter(SpringBootCorsFilter.java:28)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:102)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.boot.actuate.autoconfigure.MetricFilterAutoConfiguration$MetricsFilter.doFilterInternal(MetricFilterAutoConfiguration.java:90)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.apache.http.ProtocolException: Target host is not specified
at org.apache.http.impl.conn.DefaultRoutePlanner.determineRoute(DefaultRoutePlanner.java:69)
at org.apache.http.impl.client.InternalHttpClient.determineRoute(InternalHttpClient.java:124)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:183)
... 66 common frames omitted

Problems communicating between Echo and Raspberry Pi

I recently installed the amazon_echo_ha_bridge_0.2.0 on a Raspberry Pi 2 running off a wifi network. The installation of the program and the setup of the devices went OK but I'm unable to get the Echo to detect the devices. Both the RPI and Echo are on the exact same network using 2.4 Ghz wireless connection.

I turned on debugging for he amazon_bridge and can see that its receiving SSDP Discovery packets from the Echo but it doesn't appear to be responding back.

Any advice on how to fix this? I am using a Linksys e4200 (as router with WiFi) and ATT NVG589 (as modem in passthrough mode, WiFi disabled).

image

Thanks in advance for the help

com.armzilla.ha.hue.Hue Mulator: Error calling out to HA gateway

The command is going through and Alexa fires the URL but I get an error verbally and in the JVM.

'The device or group name "Kitchen Lights" is not responding at the moment.'

Mulator           : hue light requested: 09104412-b177-4893-80da-330c90e0e7ce fr
om 192.168.1.160
2015-07-15 20:44:49.388  INFO 5108 --- [nio-8083-exec-3] com.armzilla.ha.hue.Hue
Mulator           : found device named: T.V.
2015-07-15 20:44:49.559  INFO 5108 --- [nio-8083-exec-5] com.armzilla.ha.hue.Hue
Mulator           : hue state change requested: wEWHFoThKOqA1xX9EKtf0seDL8NfLo3A
ODms3FUd from 192.168.1.160
2015-07-15 20:44:49.591  INFO 5108 --- [nio-8083-exec-5] com.armzilla.ha.hue.Hue
Mulator           : hue stage change body: {"on": false}
2015-07-15 20:44:49.591  INFO 5108 --- [nio-8083-exec-5] com.armzilla.ha.hue.Hue
Mulator           : calling GET on URL: http://192.168.1.203:8084/?Family_Set_Of
f
2015-07-15 20:44:49.669 ERROR 5108 --- [nio-8083-exec-5] com.armzilla.ha.hue.Hue
Mulator           : Error calling out to HA gateway

org.apache.http.ConnectionClosedException: Premature end of Content-Length delim
ited message body (expected: 1374; received: 0
        at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthIn
putStream.java:180)
        at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthIn
putStream.java:200)
        at org.apache.http.impl.io.ContentLengthInputStream.close(ContentLengthI
nputStream.java:103)
        at org.apache.http.impl.execchain.ResponseEntityProxy.streamClosed(Respo
nseEntityProxy.java:126)
        at org.apache.http.conn.EofSensorInputStream.checkClose(EofSensorInputSt
ream.java:227)
        at org.apache.http.conn.EofSensorInputStream.close(EofSensorInputStream.
java:174)
        at org.apache.http.util.EntityUtils.consume(EntityUtils.java:88)
        at com.armzilla.ha.hue.HueMulator.doHttpGETRequest(HueMulator.java:174)
        at com.armzilla.ha.hue.HueMulator.stateChange(HueMulator.java:159)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvok
e(InvocableHandlerMethod.java:221)
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeF
orRequest(InvocableHandlerMethod.java:137)
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocabl
eHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingH
andlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:776)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingH
andlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:705)
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapt
er.handle(AbstractHandlerMethodAdapter.java:85)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch
erServlet.java:959)
        at org.springframework.web.servlet.DispatcherServlet.doService(Dispatche
rServlet.java:893)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(Frame
workServlet.java:966)
        at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServl
et.java:879)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkSer
vlet.java:842)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:291)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52
)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:239)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConf
iguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConf
iguration.java:291)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
equestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:239)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInterna
l(HiddenHttpMethodFilter.java:77)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
equestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:239)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at com.armzilla.ha.filters.SpringBootCorsFilter.doFilter(SpringBootCorsF
ilter.java:28)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:239)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilter
Internal(WebRequestTraceFilter.java:102)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
equestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:239)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterIntern
al(CharacterEncodingFilter.java:85)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
equestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:239)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.springframework.boot.actuate.autoconfigure.MetricFilterAutoConfig
uration$MetricsFilter.doFilterInternal(MetricFilterAutoConfiguration.java:90)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
equestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:239)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:219)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:106)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:501)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:142)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:79)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:88)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:516)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
11Processor.java:1086)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
AbstractProtocol.java:659)
        at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.pr
ocess(Http11NioProtocol.java:223)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpo
int.java:1558)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoin
t.java:1515)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskTh
read.java:61)
        at java.lang.Thread.run(Unknown Source)

Script support

Arm,

 Firstly, thanks for this amazing piece of software.  I now have all my lights talking to Alexa.  So, to my

request; as I don't know Java, I really can't help with this, but it would be nice to have a drop down that
let you put in local scripts instead of URLs for on and off. I use a mix of Wemo and Lifx bulbs and
neither have a RESTful interface that I can use with your software (Lifx's RESTful interface requires you
to POST or PUT instead of a GET). Again, not really an issue, but more of an enhancement request.
Thanks again.

Dan-

Using the bridge along with OpenHAB running on Raspberry Pi

So I am running OpenHAB within Rasperry Pi and I saved the .jar file in my OS X and I run it within OS X terminal and I get the following error. Can you please let me know how I can fix that?
java -jar amazon-echo-bridge-0.2.1.jar –upnp.config.address=192.168.1.105
Exception in thread “main” java.lang.UnsupportedClassVersionError: com/armzilla/ha/SpringbootEntry : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:163)
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:136)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:46)
at java.lang.Thread.run(Thread.java:745)

gh-pages Branch Request

I've already set up a Github Pages branch within my testing fork, and would like to merge this to Armzilla's master. If someone who had write access can simply create an empty "gh-pages" fork, I can submit my changes and file a pull request for that branch.

OSX support?

I only own a mac OS X and was trying to do this on there however, when I open terminal and type "java -jar amazon-echo-bridge-0.2.1.jar" it just says unable to access jar file. does this have to be done on a PC?

Automatically discover devices from Vera

The Vera can list devices it knows about so there's no need to manually go and add them all. Here's a quick Python script I wrote to do it:

import json
import requests
import sys


LIGHT_TYPES = {
    'urn:schemas-upnp-org:device:BinaryLight:1',
    'urn:schemas-upnp-org:device:DimmableLight:1',
}


def add_device(proxy_ip, name, on_url, off_url):
    payload = {
        "name": name,
        "deviceType": "switch",
        "onUrl": on_url,
        "offUrl": off_url,
    }
    url = 'http://%s:8080/api/devices' % (proxy_ip,)
    response = requests.post(url, data=json.dumps(payload), headers={'content-type': 'application/json'})
    if response.status_code != 201:
        raise Exception('unexpected response code %r' % (response.status_code,))


def on_url(ip, device_id):
    return 'http://%s:3480/data_request?id=action&output_format=json&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1&DeviceNum=%s' % (
        ip, device_id)


def off_url(ip, device_id):
    return 'http://%s:3480/data_request?id=action&output_format=json&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0&DeviceNum=%s' % (
        ip, device_id)


def main(vera_ip, proxy_ip):
    url = 'http://%s:3480/data_request?id=user_data' % (vera_ip,)
    user_data = requests.get(url).json()
    devices = user_data['devices']
    for device in devices:
        if device['device_type'] not in LIGHT_TYPES:
            continue
        add_device(
            proxy_ip,
            device['name'],
            on_url(vera_ip, device['id']),
            off_url(vera_ip, device['id']),
        )


if __name__ == '__main__':
    main(*sys.argv[1:])

Echo not recognising devices I have added via the configurator page

I have managed to add a device on the Hue Bridge emulator configurator page and it has been assigned with an ID, has a name and is labelled as a Switch

However, when I ask Alexa to discover my devices, it does not pick it up. - Says it can't find any devices

Anyone have any ideas as to why it is not picking it up?

thanks,

litfoo

cannot connect echo bridge to devices

The echo doesn't turn on/off my devices. I am using 0.2.0 with custom home control hub.

java -jar amazon-echo-bridge-0.2.0.jar --upnp.config.address=192.168.7.133 --logging.level.com.armzilla.ha.upnp=DEBUG --logging.file=ha.log

I added devices using the ws call. It looks like the upnp discovery response doesn't use the device detail to fill up the session fields in setup.xml.(using intel unpnp spy tool). i've tried rebooting, etc..

See get devices output to confirm. I changed the on off urls to keep it simple.

GET {{echobridge}}/api/devices
[
{
"content": [
{
"id": "35eda569-9d64-4f62-8ba7-35cc7b09c686",
"name": "bat",
"deviceType": "switch",
"offUrl": "http://myhost/switch/off",
"onUrl": "http://myhost/switch/on"
}
],
"facets": [],
"totalElements": 1,
"totalPages": 1,
"first": true,
"sort": null,
"last": true,
"numberOfElements": 1,
"size": 1,
"number": 0
}
]

But the unpnp discovery returns as below, I don't see any of the device information in the session fields below. It is all (null).

Origin: Intel.UPNP.HTTPSession [20]
Time: 8/6/2015 12:52:09 AM

HTTP/1.1 200 OK
ACCESS-CONTROL-ALLOW-METHODS: POST, GET, OPTIONS, DELETE, PUT
ACCESS-CONTROL-MAX-AGE: 3600
ACCESS-CONTROL-ALLOW-ORIGIN: *
DATE: Thu, 06 Aug 2015 05:52:09 GMT
X-APPLICATION-CONTEXT: application:8080
ACCESS-CONTROL-ALLOW-HEADERS: Origin, X-Requested-With, Content-Type, Accept
CONTENT-TYPE: application/xml;charset=UTF-8
SERVER: Apache-Coyote/1.1
Content-Length: 1310

1 0 http://192.168.7.133:8080/ urn:schemas-upnp-org:device:Basic:1 Amazon-Echo-HA-Bridge (192.168.7.133) Royal Philips Electronics http://www.armzilla..com Hue Emulator for Amazon Echo bridge Philips hue bridge 2012 929000226503 http://www.armzilla.com/amazon-echo-ha-bridge 01189998819991197253 uuid:88f6698f-2c83-4393-bd03-cd54a9f8595 (null) (null) (null) (null) (null) index.html image/png 48 48 24 hue_logo_0.png image/png 120 120 24 hue_logo_3.png ## LOGS

2015-08-06 05:45:08.068 INFO 2891 --- [main] com.armzilla.ha.SpringbootEntry : Starting Sp
ringbootEntry v0.2.0 on raspberrypi with PID 2891 (/home/pi/ws/echobridge/amazon-echo-bridge-0.2.0.j
ar started by pi in /home/pi/ws/echobridge)
2015-08-06 05:45:09.412 INFO 2891 --- [main] ationConfigEmbeddedWebApplicationContext : Refreshing
org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1e733e: star
tup date [Thu Aug 06 05:45:09 UTC 2015]; root of context hierarchy
2015-08-06 05:45:35.398 INFO 2891 --- [main] o.s.b.f.s.DefaultListableBeanFactory : Overriding
bean definition for bean 'beanNameViewResolver': replacing [Root bean: class [null]; scope=; abstrac
t=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; f
actoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorV
iewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(in
ferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConf
iguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=f
alse; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; fact
oryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurati
onAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred)
; defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration
$WebMvcAutoConfigurationAdapter.class]]
2015-08-06 05:45:50.415 INFO 2891 --- [main] trationDelegate$BeanPostProcessorChecker : Bean 'org.s
pringframework.scheduling.annotation.SchedulingConfiguration' of type [class org.springframework.sch
eduling.annotation.SchedulingConfiguration$$EnhancerBySpringCGLIB$$dbcf87b8] is not eligible for get
ting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2015-08-06 05:46:04.444 INFO 2891 --- [main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat init
ialized with port(s): 8080 (http)
2015-08-06 05:46:09.986 INFO 2891 --- [main] o.apache.catalina.core.StandardService : Starting se
rvice Tomcat
2015-08-06 05:46:10.015 INFO 2891 --- [main] org.apache.catalina.core.StandardEngine : Starting Se
rvlet Engine: Apache Tomcat/8.0.20
2015-08-06 05:46:13.597 INFO 2891 --- [localhost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]
: Initializing Spring embedded WebApplicationContext
2015-08-06 05:46:13.611 INFO 2891 --- [localhost-startStop-1] o.s.web.context.ContextLoader
: Root WebApplicationContext: initialization completed in 64267 ms
2015-08-06 05:46:41.869 INFO 2891 --- [localhost-startStop-1] o.s.b.c.e.ServletRegistrationBean
: Mapping servlet: 'dispatcherServlet' to [/]
2015-08-06 05:46:42.053 INFO 2891 --- [localhost-startStop-1] o.s.b.c.embedded.FilterRegistrationBe
an : Mapping filter: 'metricFilter' to: [/]
2015-08-06 05:46:42.066 INFO 2891 --- [localhost-startStop-1] o.s.b.c.embedded.FilterRegistrationBe
an : Mapping filter: 'characterEncodingFilter' to: [/
]
2015-08-06 05:46:42.074 INFO 2891 --- [localhost-startStop-1] o.s.b.c.embedded.FilterRegistrationBe
an : Mapping filter: 'webRequestLoggingFilter' to: [/]
2015-08-06 05:46:42.082 INFO 2891 --- [localhost-startStop-1] o.s.b.c.embedded.FilterRegistrationBe
an : Mapping filter: 'springBootCorsFilter' to: [/
]
2015-08-06 05:46:42.093 INFO 2891 --- [localhost-startStop-1] o.s.b.c.embedded.FilterRegistrationBe
an : Mapping filter: 'hiddenHttpMethodFilter' to: [/]
2015-08-06 05:46:42.100 INFO 2891 --- [localhost-startStop-1] o.s.b.c.embedded.FilterRegistrationBe
an : Mapping filter: 'applicationContextIdFilter' to: [/
]
2015-08-06 05:46:42.892 INFO 2891 --- [localhost-startStop-1] o.a.c.util.SessionIdGeneratorBase
: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [128] millis
econds.
2015-08-06 05:46:50.667 INFO 2891 --- [main] org.elasticsearch.node : [John Proud
star] version[1.3.2], pid[2891], build[dee175d/2014-08-13T14:29:30Z]
2015-08-06 05:46:50.673 INFO 2891 --- [main] org.elasticsearch.node : [John Proud
star] initializing ...
2015-08-06 05:46:50.818 INFO 2891 --- [main] org.elasticsearch.plugins : [John Proud
star] loaded [], sites []
2015-08-06 05:47:43.998 INFO 2891 --- [main] org.elasticsearch.node : [John Proud
star] initialized
2015-08-06 05:47:44.017 INFO 2891 --- [main] org.elasticsearch.node : [John Proud
star] starting ...
2015-08-06 05:47:44.172 INFO 2891 --- [main] org.elasticsearch.transport : [John Proud
star] bound_address {local[1]}, publish_address {local[1]}
2015-08-06 05:47:44.398 INFO 2891 --- [main] org.elasticsearch.discovery : [John Proud
star] elasticsearch/kJ7vSIRQQeimF0z7NK3Evg
2015-08-06 05:47:44.551 INFO 2891 --- [elasticsearch[John Proudstar][clusterService#updateTask][T#1
]] org.elasticsearch.cluster.service : [John Proudstar] new_master [John Proudstar][kJ7vSIRQQ
eimF0z7NK3Evg][raspberrypi][local[1]]{local=true}, reason: local-disco-initial_connect(master)
--More--(29%)
2015-08-06 05:47:45.047 INFO 2891 --- [main] org.elasticsearch.node : [John Proud
star] started
2015-08-06 05:48:01.824 INFO 2891 --- [elasticsearch[John Proudstar][clusterService#updateTask][T#1
]] org.elasticsearch.gateway : [John Proudstar] recovered [1] indices into cluster_st
ate
2015-08-06 05:48:22.589 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for
@ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplication
Context@1e733e: startup date [Thu Aug 06 05:45:09 UTC 2015]; root of context hierarchy
2015-08-06 05:48:24.770 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
api/devices],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}"
onto public org.springframework.http.ResponseEntity<java.util.List<com.armzilla.ha.dao.DeviceDescrip
tor>> com.armzilla.ha.devicemanagmeent.DeviceResource.findAllDevices()
2015-08-06 05:48:24.784 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
api/devices/{lightId}],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],cu
stom=[]}" onto public org.springframework.http.ResponseEntity<com.armzilla.ha.dao.DeviceDescriptor>
com.armzilla.ha.devicemanagmeent.DeviceResource.findByDevicId(java.lang.String)
2015-08-06 05:48:24.794 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
api/devices/{lightId}],methods=[DELETE],params=[],headers=[],consumes=[],produces=[application/json]
,custom=[]}" onto public org.springframework.http.ResponseEntity<java.lang.String> com.armzilla.ha.d
evicemanagmeent.DeviceResource.deleteDeviceById(java.lang.String)
2015-08-06 05:48:24.811 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
api/devices],methods=[POST],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}"
onto public org.springframework.http.ResponseEntity<com.armzilla.ha.dao.DeviceDescriptor> com.armzi
lla.ha.devicemanagmeent.DeviceResource.createDevice(com.armzilla.ha.api.Device)
2015-08-06 05:48:24.821 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
api/devices/{lightId}],methods=[PUT],params=[],headers=[],consumes=[],produces=[application/json],cu
stom=[]}" onto public org.springframework.http.ResponseEntity<com.armzilla.ha.dao.DeviceDescriptor>
com.armzilla.ha.devicemanagmeent.DeviceResource.updateDevice(java.lang.String,com.armzilla.ha.api.De
vice)
2015-08-06 05:48:24.861 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
api/{userId}/lights],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],cust
om=[]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lan
g.String>> com.armzilla.ha.hue.HueMulator.getUpnpConfiguration(java.lang.String,javax.servlet.http.H
--More--(45%)
[0] 0:pdev- 1:[email protected]* 2:bash "pi@raspberryp

ttpServletRequest)
2015-08-06 05:48:24.872 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
api/],methods=[POST],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto
public org.springframework.http.ResponseEntity<java.lang.String> com.armzilla.ha.hue.HueMulator.post
API(javax.servlet.http.HttpServletRequest)
2015-08-06 05:48:24.882 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
api/{userId}],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}"
onto public org.springframework.http.ResponseEntity<com.armzilla.ha.api.hue.HueApiResponse> com.arm
zilla.ha.hue.HueMulator.getApi(java.lang.String,javax.servlet.http.HttpServletRequest)
2015-08-06 05:48:24.892 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
api/{userId}/lights/{lightId}],methods=[GET],params=[],headers=[],consumes=[],produces=[application/
json],custom=[]}" onto public org.springframework.http.ResponseEntity<com.armzilla.ha.api.hue.Device
Response> com.armzilla.ha.hue.HueMulator.getLigth(java.lang.String,java.lang.String,javax.servlet.ht
tp.HttpServletRequest)
2015-08-06 05:48:24.903 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
api/{userId}/lights/{lightId}/state],methods=[PUT],params=[],headers=[],consumes=[],produces=[],cust
om=[]}" onto public org.springframework.http.ResponseEntity<java.lang.String> com.armzilla.ha.hue.Hu
eMulator.stateChange(java.lang.String,java.lang.String,javax.servlet.http.HttpServletRequest,java.la
ng.String)
2015-08-06 05:48:24.919 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
upnp/{deviceId}/setup.xml],methods=[GET],params=[],headers=[],consumes=[],produces=[application/xml]
,custom=[]}" onto public org.springframework.http.ResponseEntity<java.lang.String> com.armzilla.ha.u
pnp.UpnpSettingsResource.getUpnpConfiguration(java.lang.String,javax.servlet.http.HttpServletRequest
)
2015-08-06 05:48:24.969 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
error],methods=[],params=[],headers=[],consumes=[],produces=[text/html],custom=[]}" onto public org.
springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorContro
ller.errorHtml(javax.servlet.http.HttpServletRequest)
2015-08-06 05:48:24.980 INFO 2891 --- [main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/
error],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springfra
mework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.bo
ot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2015-08-06 05:48:26.410 INFO 2891 --- [main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL
--More--(61%)
[0] 0:pdev- 1:[email protected]
2:bash "pi@raspberrypi: ~/ws/e" 01:04 06-Aug-15

path [/webjars/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttp
RequestHandler]
2015-08-06 05:48:26.417 INFO 2891 --- [main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL
path [/
] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestH
andler]
2015-08-06 05:48:28.448 INFO 2891 --- [main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL
path [/*/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.Resource
HttpRequestHandler]
2015-08-06 05:48:42.912 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
info],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.O
bject org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2015-08-06 05:48:42.923 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
beans],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.
Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2015-08-06 05:48:42.932 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
autoconfig],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.
lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2015-08-06 05:48:42.943 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
health],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Ob
ject org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.invoke(java.security.Principal)
2015-08-06 05:48:42.960 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
env/{name:.
}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public ja
va.lang.Object org.springframework.boot.actuate.endpoint.mvc.EnvironmentMvcEndpoint.value(java.lang.
String)
2015-08-06 05:48:42.969 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
env],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Ob
ject org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2015-08-06 05:48:42.982 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
metrics/{name:.}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto publi
c java.lang.Object org.springframework.boot.actuate.endpoint.mvc.MetricsMvcEndpoint.value(java.lang.
String)
2015-08-06 05:48:42.990 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
metrics],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lan
--More--(76%)
[0] 0:pdev- 1:[email protected]
2:bash "pi@raspberrypi: ~/ws/e" 01:05 06-Aug-15

g.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2015-08-06 05:48:43.009 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
mappings],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.la
ng.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2015-08-06 05:48:43.023 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
trace],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.
Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2015-08-06 05:48:43.035 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
configprops],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java
.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2015-08-06 05:48:43.054 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
dump],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.O
bject org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2015-08-06 05:48:43.074 INFO 2891 --- [main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/
shutdown],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.l
ang.Object org.springframework.boot.actuate.endpoint.mvc.ShutdownMvcEndpoint.invoke()
2015-08-06 05:48:44.637 INFO 2891 --- [main] o.s.j.e.a.AnnotationMBeanExporter : Registering
beans for JMX exposure on startup
2015-08-06 05:48:44.828 INFO 2891 --- [main] o.s.c.support.DefaultLifecycleProcessor : Starting be
ans in phase 0
2015-08-06 05:48:47.625 INFO 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Starting UPNP Discovery Listener
2015-08-06 05:48:47.820 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
wlan0 ... has addr /192.168.7.133
2015-08-06 05:48:47.866 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Checking wlan0 to our interface set
2015-08-06 05:48:47.889 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Adding wlan0 to our interface set
2015-08-06 05:48:47.898 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
lo ... has addr /127.0.0.1
2015-08-06 05:48:47.911 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Checking lo to our interface set
2015-08-06 05:48:47.922 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Starting UPNP Discovery Listener
2015-08-06 05:48:47.820 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
wlan0 ... has addr /192.168.7.133
2015-08-06 05:48:47.866 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Checking wlan0 to our interface set
2015-08-06 05:48:47.889 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Adding wlan0 to our interface set
2015-08-06 05:48:47.898 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
lo ... has addr /127.0.0.1
2015-08-06 05:48:47.911 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Checking lo to our interface set
2015-08-06 05:48:47.922 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Adding lo to our interface set
2015-08-06 05:48:49.334 INFO 2891 --- [main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat star
ted on port(s): 8080 (http)
2015-08-06 05:48:49.368 INFO 2891 --- [main] com.armzilla.ha.SpringbootEntry : Started Spr
ingbootEntry in 230.244 seconds (JVM running for 243.556)
2015-08-06 05:51:14.162 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Got SSDP Discovery packet from 192.168.7.104:61793
2015-08-06 05:51:14.180 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Got SSDP Discovery packet from 192.168.7.104:61793
2015-08-06 05:51:41.666 INFO 2891 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]
: Initializing Spring FrameworkServlet 'dispatcherServlet'
2015-08-06 05:51:41.676 INFO 2891 --- [http-nio-8080-exec-1] o.s.web.servlet.DispatcherServlet
: FrameworkServlet 'dispatcherServlet': initialization started
2015-08-06 05:51:42.488 INFO 2891 --- [http-nio-8080-exec-1] o.s.web.servlet.DispatcherServlet
: FrameworkServlet 'dispatcherServlet': initialization completed in 802 ms
2015-08-06 05:52:09.305 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Got SSDP Discovery packet from 192.168.7.104:52103
2015-08-06 05:52:09.318 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Got SSDP Discovery packet from 192.168.7.104:52103
2015-08-06 05:52:09.513 INFO 2891 --- [http-nio-8080-exec-6] c.armzilla.ha.upnp.UpnpSettingsResourc
e : upnp device settings requested: amazon-ha-bridge from 192.168.7.104
Starting UPNP Discovery Listener
2015-08-06 05:48:47.820 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
wlan0 ... has addr /192.168.7.133
2015-08-06 05:48:47.866 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Checking wlan0 to our interface set
2015-08-06 05:48:47.889 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Adding wlan0 to our interface set
2015-08-06 05:48:47.898 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
lo ... has addr /127.0.0.1
2015-08-06 05:48:47.911 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Checking lo to our interface set
2015-08-06 05:48:47.922 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Adding lo to our interface set
2015-08-06 05:48:49.334 INFO 2891 --- [main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat star
ted on port(s): 8080 (http)
2015-08-06 05:48:49.368 INFO 2891 --- [main] com.armzilla.ha.SpringbootEntry : Started Spr
ingbootEntry in 230.244 seconds (JVM running for 243.556)
2015-08-06 05:51:14.162 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Got SSDP Discovery packet from 192.168.7.104:61793
2015-08-06 05:51:14.180 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Got SSDP Discovery packet from 192.168.7.104:61793
2015-08-06 05:51:41.666 INFO 2891 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]
: Initializing Spring FrameworkServlet 'dispatcherServlet'
2015-08-06 05:51:41.676 INFO 2891 --- [http-nio-8080-exec-1] o.s.web.servlet.DispatcherServlet
: FrameworkServlet 'dispatcherServlet': initialization started
2015-08-06 05:51:42.488 INFO 2891 --- [http-nio-8080-exec-1] o.s.web.servlet.DispatcherServlet
: FrameworkServlet 'dispatcherServlet': initialization completed in 802 ms
2015-08-06 05:52:09.305 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Got SSDP Discovery packet from 192.168.7.104:52103
2015-08-06 05:52:09.318 DEBUG 2891 --- [pool-1-thread-1] com.armzilla.ha.upnp.UpnpListener :
Got SSDP Discovery packet from 192.168.7.104:52103
2015-08-06 05:52:09.513 INFO 2891 --- [http-nio-8080-exec-6] c.armzilla.ha.upnp.UpnpSettingsResourc
e : upnp device settings requested: amazon-ha-bridge from 192.168.7.104

Trouble Running on Raspberry Pi

This works great for me when I run it on my Mac, but when I run it on my Raspberry Pi I can't load the configurator. I get a white label error page, "This application has no explicit mapping for /error, so you are seeing this as a fallback."

My Pi is model 2 running Raspian Jessie and Java 1.8.0. I'm running it with java -jar amazon-echo-bridge-*.jar.

Any recommendations for trouble shooting?

Change response.getStatusLine().getStatusCode() == 200 for fibaro

Hi All,

I want to change this line of code (response.getStatusLine().getStatusCode() == 200), in com.armzilla.ha.hue -> HueMulator.class

So I want to change this:
if(response.getStatusLine().getStatusCode() == 200){
return true;
}
to:

if((response.getStatusLine().getStatusCode() == 200) || (response.getStatusLine().getStatusCode() == 202)) {
return true;
}

But I'm not able to change this and build it again.
Does anyone can tell me step by step how I can manage to do this?

Thank you very very much! :)

Not discovered

I've started the service successful on an iMac with Java 8, specified my wired IP address, registerred the rest endpoints of on/off successfully, then requested Echo to discover through the echo.amazon.com interface with no luck.

I have several wifi access points, so I thought it might be an issue with my wireless router not bridging the UPNP to the wired network, so I turned on the wifi on the iMac (which should have put it on the same AP) and used that address for the upnp listener and still no luck.

Is there something I might be missing? My next steps are to do some packet sniffing and make sure I can see the UPNP broadcasts, and was also planning on trying the code on a linux server instead of OSX. I've confirmed that nothing is listening on the required ports. I see no exceptions in the log and actually no activity to suggest that Echo actually attempted a connection. I also see the ports 1900, 50000, and 8080 in the netstat as being bound once the server starts. It looks like everything on the server side is working and I'm wondering if Echo received an update that has stopped this from working or if I have something wrong. I'm using the switch prefer ipv4 as well.

I'd love to get this working since I really wanted to bridge Echo to my own light gateway that I had developed for sending commands to arduino/jeenode driven lights on 433mhz. ( https://code.google.com/p/arduino-aaser-gateway/ )

Dimming recognition not working properly

Unfortunately the Nest post only seems to reinforce my experience that the Echo is for some reason not getting the percentages correct which is why it was apparently necessary to have scenes defined for all the levels. I can't attribute this to the bridge as it is clear in the Echo log that it is not recognizing the dim levels. I just don't know what to do about it. It makes the {intensity.percent} dimming feature rather useless.

Not working with Harmony?

I have the bridge setup as a docker on my unraid server. It has been working great with the echo, but I can't seem to get the Harmony Hub to see the bridge. Do you have to do something different to get the Harmony to work?

Echo Does Not Recognize More Than 26 Devices

Hi, I am using the amazon-echo-ha-bridge on a Raspberry Pi 2 and absolutely love it. However, whenever I attempt to add my 27th connected device, the Amazon Echo no longer sees any connected devices. Any ideas how to troubleshoot this?

Need repeating outputs

I am working on setting up my Echo with my PI, I have some issues. However I will work thought them. the one I cannot figure out in my head, is how to repeat an output depending on the input. I am attempting to control a color change pool light with this set up. the light changes color with multiple power cycles (IE switch one: red, switch on/ off / on: green....and so on and so forth) i plan on having the power fed from a relay controlled by the one of the GPIO pins similar to how i did my Christmas light show. I just cannot figure out how when i tel my Echo i want the pool light Green, that it will automatically cycle the power on, off, on. does anyone have any recommendations?

echo bridge emulator not responding back after successful command

First I want to say how awesome this emulator is! I am using it with Eventghost and Housebot at the moment to control lights! Very well done!

I have been successful in getting all the devices to be discovered by Alexa and I can control my lights. The problem I am having is that the Java program does not appear to be telling the echo the command was successful. For example I am getting my lights to work (successful command sent from the emulator to Eventghost), but then Alexa comes back and tells me there is a network connection with the Hue bridge. Any idea how I can fix this! Is it a port forwarding problem?

Thanks very much in advance

v/r

edgarauto

Using the bridge along with OpenHAB running on Raspberry Pi

I get the following error when I run the .jar in Raspberry Pi (starting with a sudo before java jar ...)
However even when running within Raspbian I get this error:

asticsearchAutoConfiguration : Closing Elasticsearch client
2016-01-24 23:07:58.279 INFO 2411 --- [ main] org.elasticsearch.node : [Bres] stopping ...
2016-01-24 23:07:58.336 INFO 2411 --- [ main] org.elasticsearch.node : [Bres] stopped
2016-01-24 23:07:58.337 INFO 2411 --- [ main] org.elasticsearch.node : [Bres] closing ...
2016-01-24 23:07:58.413 INFO 2411 --- [ main] org.elasticsearch.node : [Bres] closed
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.IllegalStateException: Tomcat connector in failed state
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:157)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:288)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:141)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)
at com.armzilla.ha.SpringbootEntry.main(SpringbootEntry.java:14)
... 6 more
pi@raspberrypi /opt/openhab/echo $

Echo will not discover devices if more then one 'program' exists.

I have the latest source, compiled, running.
It works great! I added a link to a GarageDoorOpenerLeft program. It works great.
I attempt to add a second program, any, Right GDO, my cooked up isy -> osx -> flask api app -> yamaha api -> my receiver -> turn on Sirius BPM, or any other program; it [echo] stops being able to detect any devices.

No matter how I've tinkered with it. If I add one program, forget all devices, discover devices; she works.
If I attach any second, or more, program, forget all devices, discover devices; she finds nothing.

I read in another issue the limit of 26 devices. Oddly I have 28 devices found. I tried ripping out 10 devices and repeated the one program, two program; and again any more then 1 program fails.

Any suggestions on how to debug this?

Excessive memory usage

When I use Java to run the JAR from Windows 10 (with JDK 1.8), everything works perfectly, but the process is using up 1.14 gigabytes of RAM.

Is this intended behavior? Is there anything I can do to run the server so it doesn't use up so much RAM?

P.S. Thanks for this awesome tool!

Docker build error

The command "docker build -t amazon-echo-ha-bridge ." ends in error:

[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.2.6.RELEASE/spring-boot-starter-parent-1.2.6.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.armzilla.ha:amazon-echo-bridge:0.2.1: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.2.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: unknown error and 'parent.relativePath' points at no local POM @ line 16, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.armzilla.ha:amazon-echo-bridge:0.2.1 (/root/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.armzilla.ha:amazon-echo-bridge:0.2.1: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.2.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: unknown error and 'parent.relativePath' points at no local POM @ line 16, column 13: Unknown host repo.maven.apache.org: unknown error -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
INFO[0166] The command [/bin/sh -c mvn install] returned a non-zero code: 1

More then 19 devices causing issues

Has anyone gotten more then 19 devices working? I'm adding device 20 and only the on URL gets a hit from echo not the off. When I added device 24 the echo refused to discover. I can refresh the database and do additional tests. Just wondered if anyone has gone past 19. Thanks.

PowerOff

Am I missing the activity to poweroff all devices? I didn't see it in the source code.

Indigo URLs not working

I just installed this very cool and useful program to use with my Indigo automation software on my Mac. Unfortunately, it doesn't work directly to Indigo's Restful URLs although I am able to control Indigo via the intermediate server function of Home Remote. Usually I only have trouble with authenticated URLs to Indigo but unsecured ones don't work either. They do work directly from a browser though or using the test function of the configurator.

Here is an example of what one type of Indigo URL looks like:
https://user:pass@HOSTIP/indigo/actions/Test?_method=execute.

Thanks!

--Dave

Support Brightness Value In content-body

It's awesome being able to append ${intensity.percent} and ${intensity.byte} to our URLs so that we can pass brightness. But it'd be great if this could work via our content-body as well. Some APIs expect this value in the content-body not the actual URL params.

Example

{
  "name": "Family Room Light",
  "deviceType": "switch",
  "offUrl": "http://192.168.1.201:3480/services/light/turn_on",
  "onUrl": "http://192.168.1.201:3480/services/light/turn_on",
  "contentType" : "application/json",
  "httpVerb":"POST",
  "contentBody" : "{\"entitiy_id\":\"light.family_room\", \"brightness\": "${intensity.byte}" }"
}

Change response status code for Fibaro

Hello,

I am able to turn ON fibaro devices through the echo bridge , but echo does not know that the operation succeeded, it says the device is not responding.

1.3 cannot initialize

1.3 was working fine but now will not initialize.
Can anyone please diagnose this problem?
Running on OSX and console shows:

hdtv$ java -jar -Djava.net.preferIPv4Stack=true /Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar --upnp.config.address=192.168.3.210

. ____ _ __ _ _
/\ / ' __ _ ()_ __ __ _ \ \ \
( ( )_
| '_ | '| | ' / ` | \ \ \
/ )| |)| | | | | || (| | ) ) ) )
' |
| .**|| ||| |**, | / / / /
=========||==============|/=///_/
:: Spring Boot :: (v1.2.3.RELEASE)

2015-07-02 11:50:55.320 INFO 552 --- [ main] com.armzilla.ha.SpringbootEntry : Starting SpringbootEntry v0.1.3 on Ira-Fuchs-Media-mini.local with PID 552 (/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar started by hdtv in /Library/WebServer/Documents)
2015-07-02 11:50:55.523 INFO 552 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5728f34: startup date [Thu Jul 02 11:50:55 EDT 2015]; root of context hierarchy
2015-07-02 11:50:58.545 INFO 552 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'beanNameViewResolver': replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]]
2015-07-02 11:51:00.233 INFO 552 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.scheduling.annotation.SchedulingConfiguration' of type [class org.springframework.scheduling.annotation.SchedulingConfiguration$$EnhancerBySpringCGLIB$$d7fc72c7] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2015-07-02 11:51:09.915 INFO 552 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2015-07-02 11:51:13.816 INFO 552 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2015-07-02 11:51:13.826 INFO 552 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.0.20
2015-07-02 11:51:14.497 INFO 552 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2015-07-02 11:51:14.500 INFO 552 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 19001 ms
2015-07-02 11:51:18.010 INFO 552 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2015-07-02 11:51:18.048 INFO 552 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'metricFilter' to: [/]
2015-07-02 11:51:18.188 INFO 552 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/
]
2015-07-02 11:51:18.188 INFO 552 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'webRequestLoggingFilter' to: [/]
2015-07-02 11:51:18.188 INFO 552 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'springBootCorsFilter' to: [/
]
2015-07-02 11:51:18.188 INFO 552 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/]
2015-07-02 11:51:18.189 INFO 552 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'applicationContextIdFilter' to: [/
]
2015-07-02 11:51:23.322 INFO 552 --- [ main] org.elasticsearch.node : [Earthquake] version[1.3.2], pid[552], build[dee175d/2014-08-13T14:29:30Z]
2015-07-02 11:51:23.323 INFO 552 --- [ main] org.elasticsearch.node : [Earthquake] initializing ...
2015-07-02 11:51:23.378 INFO 552 --- [ main] org.elasticsearch.plugins : [Earthquake] loaded [], sites []
2015-07-02 11:51:23.817 WARN 552 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceResource': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.armzilla.ha.dao.DeviceRepository com.armzilla.ha.devicemanagmeent.DeviceResource.deviceRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceRepository': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)
at com.armzilla.ha.SpringbootEntry.main(SpringbootEntry.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.armzilla.ha.dao.DeviceRepository com.armzilla.ha.devicemanagmeent.DeviceResource.deviceRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceRepository': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
... 22 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceRepository': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1222)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)
... 24 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:464)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 37 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 47 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 60 common frames omitted
Caused by: java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:68)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$91ef7fb8.CGLIB$elasticsearchClient$1()
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$91ef7fb8$$FastClassBySpringCGLIB$$7f262570.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$91ef7fb8.elasticsearchClient()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 61 common frames omitted
Caused by: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:116)
at org.elasticsearch.node.internal.InternalNode.(InternalNode.java:153)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createNodeClient(ElasticsearchAutoConfiguration.java:83)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createClient(ElasticsearchAutoConfiguration.java:76)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:65)
... 71 common frames omitted
Caused by: java.io.IOException: failed to obtain lock on /Library/WebServer/Documents/data/elasticsearch/nodes/49
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:101)
... 77 common frames omitted
Caused by: java.io.IOException: Cannot create directory: /Library/WebServer/Documents/data/elasticsearch/nodes/49
at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:143)
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:83)
... 77 common frames omitted

2015-07-02 11:51:23.882 INFO 552 --- [ main] o.apache.catalina.core.StandardService : Stopping service Tomcat
2015-07-02 11:51:24.022 INFO 552 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-boot-starter-actuator-1.2.3.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-boot-starter-1.2.3.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-boot-1.2.3.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-boot-autoconfigure-1.2.3.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-boot-starter-logging-1.2.3.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/jul-to-slf4j-1.7.11.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/log4j-over-slf4j-1.7.11.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/logback-classic-1.1.3.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/logback-core-1.1.3.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/snakeyaml-1.14.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-boot-actuator-1.2.3.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-core-4.1.6.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-boot-starter-web-1.2.3.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-boot-starter-tomcat-1.2.3.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/tomcat-embed-core-8.0.20.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/tomcat-embed-el-8.0.20.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/tomcat-embed-logging-juli-8.0.20.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/tomcat-embed-websocket-8.0.20.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/jackson-databind-2.4.5.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/jackson-annotations-2.4.5.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/hibernate-validator-5.1.3.Final.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/validation-api-1.1.0.Final.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/jboss-logging-3.1.3.GA.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/classmate-1.0.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-web-4.1.6.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-aop-4.1.6.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/aopalliance-1.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-beans-4.1.6.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-webmvc-4.1.6.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-expression-4.1.6.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-data-elasticsearch-1.1.2.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-context-4.1.6.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-tx-4.1.6.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spring-data-commons-1.9.2.RELEASE.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/commons-lang-2.6.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/commons-collections-3.2.1.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/joda-time-2.5.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/elasticsearch-1.3.2.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-core-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-analyzers-common-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-codecs-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-queries-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-memory-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-highlighter-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-queryparser-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-sandbox-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-suggest-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-misc-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-join-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-grouping-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/lucene-spatial-4.9.0.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/spatial4j-0.4.1.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/antlr-runtime-3.5.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/asm-4.1.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/asm-commons-4.1.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/jackson-core-2.4.5.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/slf4j-api-1.7.11.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/jcl-over-slf4j-1.7.11.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/httpclient-4.3.6.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/httpcore-4.3.3.jar!/, jar:file:/Users/hdtv/Downloads/amazon-echo-bridge-0.1.3.jar!/lib/commons-codec-1.6.jar!/]
2015-07-02 11:51:24.079 INFO 552 --- [ main] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report enabled debug logging (start with --debug)

2015-07-02 11:51:24.086 ERROR 552 --- [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceResource': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.armzilla.ha.dao.DeviceRepository com.armzilla.ha.devicemanagmeent.DeviceResource.deviceRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceRepository': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)
at com.armzilla.ha.SpringbootEntry.main(SpringbootEntry.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.armzilla.ha.dao.DeviceRepository com.armzilla.ha.devicemanagmeent.DeviceResource.deviceRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceRepository': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
... 22 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceRepository': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1222)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)
... 24 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:464)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 37 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 47 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 60 common frames omitted
Caused by: java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:68)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$91ef7fb8.CGLIB$elasticsearchClient$1()
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$91ef7fb8$$FastClassBySpringCGLIB$$7f262570.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$91ef7fb8.elasticsearchClient()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 61 common frames omitted
Caused by: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:116)
at org.elasticsearch.node.internal.InternalNode.(InternalNode.java:153)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createNodeClient(ElasticsearchAutoConfiguration.java:83)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createClient(ElasticsearchAutoConfiguration.java:76)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:65)
... 71 common frames omitted
Caused by: java.io.IOException: failed to obtain lock on /Library/WebServer/Documents/data/elasticsearch/nodes/49
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:101)
... 77 common frames omitted
Caused by: java.io.IOException: Cannot create directory: /Library/WebServer/Documents/data/elasticsearch/nodes/49
at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:143)
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:83)
... 77 common frames omitted

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceResource': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.armzilla.ha.dao.DeviceRepository com.armzilla.ha.devicemanagmeent.DeviceResource.deviceRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceRepository': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)
at com.armzilla.ha.SpringbootEntry.main(SpringbootEntry.java:14)
... 6 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.armzilla.ha.dao.DeviceRepository com.armzilla.ha.devicemanagmeent.DeviceResource.deviceRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceRepository': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
... 22 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceRepository': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1222)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)
... 24 more
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.elasticsearch.client.Client]: : Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:464)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 37 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 47 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 60 more
Caused by: java.lang.IllegalStateException: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:68)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$91ef7fb8.CGLIB$elasticsearchClient$1()
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$91ef7fb8$$FastClassBySpringCGLIB$$7f262570.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$91ef7fb8.elasticsearchClient()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 61 more
Caused by: org.elasticsearch.ElasticsearchIllegalStateException: Failed to obtain node lock, is the following location writable?: [/Library/WebServer/Documents/data/elasticsearch]
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:116)
at org.elasticsearch.node.internal.InternalNode.(InternalNode.java:153)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createNodeClient(ElasticsearchAutoConfiguration.java:83)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createClient(ElasticsearchAutoConfiguration.java:76)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:65)
... 71 more
Caused by: java.io.IOException: failed to obtain lock on /Library/WebServer/Documents/data/elasticsearch/nodes/49
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:101)
... 77 more
Caused by: java.io.IOException: Cannot create directory: /Library/WebServer/Documents/data/elasticsearch/nodes/49
at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:143)
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:83)
... 77 more

echo bridge not working on wired lan devices

Amazon Echo will only detect devices if the echo bridge host machine is connected to the LAN wirelessly with the same SSID. echo bridge doesn't seem to support host machines connected to LAN wired (i.e. through ethernet cable). Also, no device detection if a network has 2.5GHz and 5GHz wireless networking with different SSIDs, and Amazon Echo and host are on them respectively.

bridge emulator stops being able to connect to devices

Hi, hoping you can help. I'm using your emulator and loving the potential, but my issue is that having started the emulator, adding devices, etc., everything seems to work very well for a few commands, then the Echo begins to report that it can't connect to the specific device or group named 'whatever'. Once this happens, all future attempts to control devices results in the same error. Once I restart the app and try again, it works for a random number of times (sometimes 1, sometimes as many as a dozen or so), then stops working. I can provide logs if it would help. I should mention that I'm not using this to connect to a Vera, but to a Smartthings endpoint via the urls.

Thanks very much for this code, and any help you can provide!

Unable to differentiate "alexa, <device> on" and "alexa, dim <device> to 100%"

It appears like amazon-ha-bridge assigns a default level if a brightness is not specified, when a user might want to differentiate between a dim level being given, or not at all. For instance, if I tell alexa to turn my lamp on, I want it to use the last dim level it was on. If I tell alexa to dim it to 100%, I want it to turn it on to 100% brightness. I am unable to do this with the current state of amazon-echo-ha-bridge.

I don't mind contributing the code to allow for this, but seeing as many people use this project already, I'd like some advise on how to proceed with the modification. Perhaps a new intensity variable to be used in the URL, maybe like ${intensity.specified} as a 1 if specifically provided, 0 if not as to maintain backwards compatibility?

Can't Discover: Echo integration using amazon echo ha bridge

I have amazon-echo-bridge running and can access the configurator http://IP.ip./configurator.html[1] and using postman send a raw json switch which shows up in the emulated bridge and the on / off test successfully.
But when i go to discover from Alexa, it won't find this hue device.
I've turned off Firewall, AV, Shut down my existing real hue bridge, removed all home devices, rebooted, switched bridge to run on port 80, exited EventGhost, but nothing seems to work.
SO CLOSE!!!
Some has to know or have some ideas??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.