You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
In my program I dynamically add and remove kevoree nodes (docker containers) all attached in the same group.
In order for the deletions to be depicted in the kevoree editor I use in my kev script the command set sync.onDisconnect = 'remove {nodeName}'.
The issue is that when the first deletion occurs, I get the following error in the master node. It seems that there is a reference to the node removed and this is causing a null pointer exception. Actually both communication channels (masterToObserver, observerToMaster) throw similar exceptions.
02:27 INFO: master sending message to observers:{"nodeSubType":"SentimentProcessor","action":"addNode","node":{"host":"10.10.10.197","nodeType":"processor","nodeSubType":"SentimentProcessor","nodeName":"SentimentProcessor_7","containerID":"SentimentProcessor_7"}}
02:27 ERROR: Channel "masterObserverChannel" dispatch threw an exception
java.lang.NullPointerException
at org.kevoree.library.java.wrapper.ChannelWrapperContext.getRemotePortPaths(ChannelWrapperContext.java:60)
at org.kevoree.library.RemoteWSChan.dispatch(RemoteWSChan.java:120)
at org.kevoree.library.java.wrapper.ChannelWrapper.call(ChannelWrapper.java:38)
at org.kevoree.library.java.wrapper.port.RequiredPortImpl.send(RequiredPortImpl.java:65)
at org.kevoree.library.java.wrapper.port.RequiredPortImpl.send(RequiredPortImpl.java:54)
at gr.atc.heads.observers.MasterObserver.addDockerNode(MasterObserver.java:245)
at gr.atc.heads.observers.MasterObserver.receiveMessage(MasterObserver.java:174)
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:498)
at org.kevoree.library.java.wrapper.port.ProvidedPortImpl.send(ProvidedPortImpl.java:101)
at org.kevoree.library.RemoteWSChan$WSConnectionCmd$1.onMessage(RemoteWSChan.java:210)
at fr.braindead.websocket.client.WebSocketClient$FutureNotifier$1.onFullTextMessage(WebSocketClient.java:126)
at io.undertow.websockets.core.AbstractReceiveListener$2.complete(AbstractReceiveListener.java:156)
at io.undertow.websockets.core.AbstractReceiveListener$2.complete(AbstractReceiveListener.java:152)
at io.undertow.websockets.core.BufferedTextMessage.read(BufferedTextMessage.java:105)
at io.undertow.websockets.core.AbstractReceiveListener.readBufferedText(AbstractReceiveListener.java:152)
at io.undertow.websockets.core.AbstractReceiveListener.bufferFullMessage(AbstractReceiveListener.java:90)
at io.undertow.websockets.core.AbstractReceiveListener.onText(AbstractReceiveListener.java:70)
at io.undertow.websockets.core.AbstractReceiveListener.handleEvent(AbstractReceiveListener.java:44)
at io.undertow.websockets.core.AbstractReceiveListener.handleEvent(AbstractReceiveListener.java:33)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:772)
at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:760)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
00:00 INFO: Kevoree bootstrap from mvn:org.kevoree:org.kevoree.bootstrap:5.4.0-SNAPSHOT
The text was updated successfully, but these errors were encountered:
Hi,
In my program I dynamically add and remove kevoree nodes (docker containers) all attached in the same group.
In order for the deletions to be depicted in the kevoree editor I use in my kev script the command set sync.onDisconnect = 'remove {nodeName}'.
The issue is that when the first deletion occurs, I get the following error in the master node. It seems that there is a reference to the node removed and this is causing a null pointer exception. Actually both communication channels (masterToObserver, observerToMaster) throw similar exceptions.
The text was updated successfully, but these errors were encountered: