semiotproject / semiot-platform

SemIoT Platform
http://semiot.ru
MIT License
8 stars 1 forks source link

The proxy service crashes at the boot time with NPE #91

Closed KMax closed 9 years ago

KMax commented 9 years ago

The docker-compose logs:

deviceproxyservice_1 | Thu Nov  5 15:48:34 UTC 2015 - Failed to connect to Fuseki! Trying once more time...
deviceproxyservice_1 | HTTP/1.1 200 OK
deviceproxyservice_1 | Content-Type: text/html
deviceproxyservice_1 | Last-Modified: Sun, 08 Mar 2015 09:49:16 GMT
deviceproxyservice_1 | Accept-Ranges: bytes
deviceproxyservice_1 | Content-Length: 4216
deviceproxyservice_1 | Server: Jetty(9.1.z-SNAPSHOT)
deviceproxyservice_1 | 
deviceproxyservice_1 | Thu Nov  5 15:48:39 UTC 2015 - Connected to Fuseki successfully
deviceproxyservice_1 | Installed all bundles!
deviceproxyservice_1 | Starting all of them...
deviceproxyservice_1 | Started [org.apache.felix.configadmin:1.8.8]. Current state: 32
deviceproxyservice_1 | Started [org.apache.felix.log:1.0.1]. Current state: 32
deviceproxyservice_1 | Started [org.apache.felix.metatype:1.1.2]. Current state: 32
deviceproxyservice_1 | Started [org.osgi.compendium:4.1.0]. Current state: 32
deviceproxyservice_1 | Started [org.apache.felix.webconsole:4.2.12.all]. Current state: 32
deviceproxyservice_1 | Started [org.apache.felix.http.servlet-api:1.1.2]. Current state: 32
deviceproxyservice_1 | Started [org.apache.felix.http.api:3.0.0]. Current state: 32
deviceproxyservice_1 | 2015-11-05 15:49:07.060:INFO::main: Logging initialized @27796ms
deviceproxyservice_1 | 2015-11-05 15:49:07.102:INFO:oejs.Server:main: jetty-9.2.12.v20150709
deviceproxyservice_1 | 2015-11-05 15:49:07.188:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@6379eb{/,null,AVAILABLE}
deviceproxyservice_1 | 2015-11-05 15:49:07.189:INFO:oejs.Server:main: Started @27925ms
deviceproxyservice_1 | 2015-11-05 15:49:07.208:INFO:oejs.ServerConnector:main: Started ServerConnector@6743e411{HTTP/1.1}{0.0.0.0:8181}
deviceproxyservice_1 | Started [org.apache.felix.http.jetty:3.1.0]. Current state: 32
deviceproxyservice_1 | Started [org.apache.felix.eventadmin:1.4.4]. Current state: 32
deviceproxyservice_1 | Started [org.apache.felix.dependencymanager:4.1.0]. Current state: 32
deviceproxyservice_1 | Started [org.liveSense.fragment.sun.misc:1.0.5]. Current state: 4
deviceproxyservice_1 | Started [ru.semiot.platform.device-proxy-service-api:1.0.0.SNAPSHOT]. Current state: 32
deviceproxyservice_1 | SLF4J: Class path contains multiple SLF4J bindings.
deviceproxyservice_1 | SLF4J: Found binding in [bundle://13.0:21/org/slf4j/impl/StaticLoggerBinder.class]
deviceproxyservice_1 | SLF4J: Found binding in [bundle://13.0:33/org/slf4j/impl/StaticLoggerBinder.class]
deviceproxyservice_1 | SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
deviceproxyservice_1 | SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
deviceproxyservice_1 | Started [ru.semiot.platform.device-proxy-service-manager:1.0.0.SNAPSHOT]. Current state: 32
deviceproxyservice_1 | false
deviceproxyservice_1 | Winghouse machine-tools driver started!
deviceproxyservice_1 | UScheduled started. Repeat will do every 30 seconds
deviceproxyservice_1 | 222.173.190.239.254.118 not exist
deviceproxyservice_1 | 0 [nioEventLoopGroup-2-1] ERROR ru.semiot.platform.deviceproxyservice.manager.DeviceManagerImpl  - DirectoryService has not been initialized
deviceproxyservice_1 | java.lang.NullPointerException
deviceproxyservice_1 |  at ru.semiot.platform.deviceproxyservice.manager.WAMPClient.publish(WAMPClient.java:38)
deviceproxyservice_1 |  at ru.semiot.platform.deviceproxyservice.manager.DeviceManagerImpl.publish(DeviceManagerImpl.java:112)
deviceproxyservice_1 |  at ru.semiot.platform.drivers.winghouse.machinetool.DeviceDriverImpl.publish(DeviceDriverImpl.java:120)
deviceproxyservice_1 |  at ru.semiot.platform.drivers.winghouse.machinetool.DeviceHandler.sendMessage(DeviceHandler.java:83)
deviceproxyservice_1 |  at ru.semiot.platform.drivers.winghouse.machinetool.DeviceHandler.processingPacket(DeviceHandler.java:48)
deviceproxyservice_1 |  at ru.semiot.platform.drivers.winghouse.machinetool.DeviceHandler.channelRead0(DeviceHandler.java:30)
deviceproxyservice_1 |  at ru.semiot.platform.drivers.winghouse.machinetool.DeviceHandler.channelRead0(DeviceHandler.java:12)
deviceproxyservice_1 |  at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
deviceproxyservice_1 |  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
deviceproxyservice_1 |  at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
deviceproxyservice_1 |  at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
deviceproxyservice_1 |  at io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:93)
deviceproxyservice_1 |  at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
deviceproxyservice_1 |  at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
deviceproxyservice_1 |  at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
deviceproxyservice_1 |  at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
deviceproxyservice_1 |  at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
deviceproxyservice_1 |  at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
deviceproxyservice_1 |  at java.lang.Thread.run(Thread.java:745)