• S
    shubham

    Hi Creig,
    After that mango application become unreachable, login page also to coming.
    below is the error also present in log file.

    Error: E_MISSING_MESSAGE: Missing required message content `dsEdit.egaugePoint`.
    	at r (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:61:427)
    	at a (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:61:583)
    	at null (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:117:14615)
    	at Function.t.messageFormatter.t.messageFormatter (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:117:14703)
    	at Function.trSync (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:72:109051)
    	at null (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:72:108351)
    	at null (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:78:94777)
    	at null (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:78:94915)
    	at c.$digest (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:78:100341)
    	at c.$apply (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:78:102518)
    WARN  2020-03-03T07:37:49,795 (org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.failed:455) -
    java.nio.channels.ClosedChannelException: null
    	at org.eclipse.jetty.websocket.common.io.FrameFlusher.enqueue(FrameFlusher.java:109) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.outgoingFrame(AbstractWebSocketConnection.java:582) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextOutgoingFrame(AbstractExtension.java:155) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtension.nextOutgoingFrame(PerMessageDeflateExtension.java:123) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.access$1100(CompressExtension.java:44) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.compress(CompressExtension.java:591) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.deflate(CompressExtension.java:488) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.process(CompressExtension.java:468) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.outgoingFrame(CompressExtension.java:244) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.ExtensionStack$Flusher.process(ExtensionStack.java:400) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.outgoingFrame(ExtensionStack.java:277) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketSession.outgoingFrame(WebSocketSession.java:355) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.uncheckedSendFrame(WebSocketRemoteEndpoint.java:306) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendAsyncFrame(WebSocketRemoteEndpoint.java:240) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendStringByFuture(WebSocketRemoteEndpoint.java:403) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.MangoWebSocketHandler.sendStringMessageAsync(MangoWebSocketHandler.java:138) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.MangoWebSocketHandler.sendMessage(MangoWebSocketHandler.java:99) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.events.EventsWebSocketHandler.sendMessage(EventsWebSocketHandler.java:123) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.events.EventsWebSocketHandler$EventsWebSocketListener.returnToNormal(EventsWebSocketHandler.java:209) ~[?:?]
    	at com.serotonin.m2m2.rt.event.UserEventMulticaster.returnToNormal(UserEventMulticaster.java:162) ~[mango-3.7.4.jar:?]
    	at com.serotonin.m2m2.rt.EventManagerImpl$EventNotifyWorkItem.execute(EventManagerImpl.java:1121) ~[mango-3.7.4.jar:?]
    	at com.serotonin.m2m2.rt.maint.BackgroundProcessingImpl$WorkItemRunnable.run(BackgroundProcessingImpl.java:671) ~[mango-3.7.4.jar:?]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
    	at java.lang.Thread.run(Thread.java:830) [?:?]
    

    posted in How-To read more
  • S
    shubham

    Hi Mat,
    Below are the exception is coming in log file

     namespace 'restV2DispatcherServlet-servlet'
    WARN  2020-03-03T07:36:29,074 (org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.failed:455) -
    java.nio.channels.ClosedChannelException: null
    	at org.eclipse.jetty.websocket.common.io.FrameFlusher.enqueue(FrameFlusher.java:109) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.outgoingFrame(AbstractWebSocketConnection.java:582) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextOutgoingFrame(AbstractExtension.java:155) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtension.nextOutgoingFrame(PerMessageDeflateExtension.java:123) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.access$1100(CompressExtension.java:44) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.compress(CompressExtension.java:591) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.deflate(CompressExtension.java:488) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.process(CompressExtension.java:468) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.outgoingFrame(CompressExtension.java:244) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.ExtensionStack$Flusher.process(ExtensionStack.java:400) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.outgoingFrame(ExtensionStack.java:277) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketSession.outgoingFrame(WebSocketSession.java:355) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.uncheckedSendFrame(WebSocketRemoteEndpoint.java:306) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendAsyncFrame(WebSocketRemoteEndpoint.java:240) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendStringByFuture(WebSocketRemoteEndpoint.java:403) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.MangoWebSocketHandler.sendStringMessageAsync(MangoWebSocketHandler.java:138) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.MangoWebSocketHandler.sendMessage(MangoWebSocketHandler.java:99) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.events.EventsWebSocketHandler.sendMessage(EventsWebSocketHandler.java:123) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.events.EventsWebSocketHandler$EventsWebSocketListener.returnToNormal(EventsWebSocketHandler.java:209) ~[?:?]
    	at com.serotonin.m2m2.rt.event.UserEventMulticaster.returnToNormal(UserEventMulticaster.java:162) ~[mango-3.7.4.jar:?]
    	at com.serotonin.m2m2.rt.EventManagerImpl$EventNotifyWorkItem.execute(EventManagerImpl.java:1121) ~[mango-3.7.4.jar:?]
    	at com.serotonin.m2m2.rt.maint.BackgroundProcessingImpl$WorkItemRunnable.run(BackgroundProcessingImpl.java:671) ~[mango-3.7.4.jar:?]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
    	at java.lang.Thread.run(Thread.java:830) [?:?]
    WARN  2020-03-03T07:36:34,138 (com.infiniteautomation.mango.rest.v2.ServerRestV2Controller.postClientError:428) - Client error
    [user=shubham, cause=Possibly unhandled rejection: {"code":"E_MISSING_MESSAGE","path":"dsEdit.egaugePoint"}, location=http://172.30.66.119:8080/ui/data-point-details/, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36, language=en-US, date=2020-03-03T13:07:25.701+05:30, timezone=Asia/Calcutta]
    Error: E_MISSING_MESSAGE: Missing required message content `dsEdit.egaugePoint`.
    	at r (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:61:427)
    	at a (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:61:583)
    	at null (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:117:14615)
    	at Function.t.messageFormatter.t.messageFormatter (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:117:14703)
    	at Function.trSync (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:72:109051)
    	at null (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:72:108351)
    	at null (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:78:94777)
    	at null (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:78:94915)
    	at c.$digest (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:78:100341)
    	at c.$apply (http://172.30.66.119:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=eb9217569c6ceceefbda:78:102518)
    WARN  2020-03-03T07:37:49,795 (org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.failed:455) -
    java.nio.channels.ClosedChannelException: null
    	at org.eclipse.jetty.websocket.common.io.FrameFlusher.enqueue(FrameFlusher.java:109) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.outgoingFrame(AbstractWebSocketConnection.java:582) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextOutgoingFrame(AbstractExtension.java:155) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtension.nextOutgoingFrame(PerMessageDeflateExtension.java:123) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.access$1100(CompressExtension.java:44) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.compress(CompressExtension.java:591) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.deflate(CompressExtension.java:488) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.process(CompressExtension.java:468) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.outgoingFrame(CompressExtension.java:244) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.ExtensionStack$Flusher.process(ExtensionStack.java:400) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.outgoingFrame(ExtensionStack.java:277) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketSession.outgoingFrame(WebSocketSession.java:355) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.uncheckedSendFrame(WebSocketRemoteEndpoint.java:306) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendAsyncFrame(WebSocketRemoteEndpoint.java:240) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendStringByFuture(WebSocketRemoteEndpoint.java:403) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.MangoWebSocketHandler.sendStringMessageAsync(MangoWebSocketHandler.java:138) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.MangoWebSocketHandler.sendMessage(MangoWebSocketHandler.java:99) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.events.EventsWebSocketHandler.sendMessage(EventsWebSocketHandler.java:123) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.events.EventsWebSocketHandler$EventsWebSocketListener.returnToNormal(EventsWebSocketHandler.java:209) ~[?:?]
    	at com.serotonin.m2m2.rt.event.UserEventMulticaster.returnToNormal(UserEventMulticaster.java:162) ~[mango-3.7.4.jar:?]
    	at com.serotonin.m2m2.rt.EventManagerImpl$EventNotifyWorkItem.execute(EventManagerImpl.java:1121) ~[mango-3.7.4.jar:?]
    	at com.serotonin.m2m2.rt.maint.BackgroundProcessingImpl$WorkItemRunnable.run(BackgroundProcessingImpl.java:671) ~[mango-3.7.4.jar:?]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
    	at java.lang.Thread.run(Thread.java:830) [?:?]
    WARN  2020-03-03T08:52:21,510 (org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.failed:455) -
    java.nio.channels.ClosedChannelException: null
    	at org.eclipse.jetty.websocket.common.io.FrameFlusher.enqueue(FrameFlusher.java:109) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.outgoingFrame(AbstractWebSocketConnection.java:582) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextOutgoingFrame(AbstractExtension.java:155) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtension.nextOutgoingFrame(PerMessageDeflateExtension.java:123) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.access$1100(CompressExtension.java:44) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.compress(CompressExtension.java:591) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.deflate(CompressExtension.java:488) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flusher.process(CompressExtension.java:468) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.outgoingFrame(CompressExtension.java:244) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.ExtensionStack$Flusher.process(ExtensionStack.java:400) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223) ~[jetty-util-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.outgoingFrame(ExtensionStack.java:277) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketSession.outgoingFrame(WebSocketSession.java:355) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.uncheckedSendFrame(WebSocketRemoteEndpoint.java:306) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendAsyncFrame(WebSocketRemoteEndpoint.java:240) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendStringByFuture(WebSocketRemoteEndpoint.java:403) ~[websocket-common-9.4.23.v20191118.jar:9.4.23.v20191118]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.MangoWebSocketHandler.sendStringMessageAsync(MangoWebSocketHandler.java:138) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.MangoWebSocketHandler.sendMessage(MangoWebSocketHandler.java:99) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.events.EventsWebSocketHandler.sendMessage(EventsWebSocketHandler.java:123) ~[?:?]
    	at com.serotonin.m2m2.web.mvc.rest.v1.websockets.events.EventsWebSocketHandler$EventsWebSocketListener.returnToNormal(EventsWebSocketHandler.java:209) ~[?:?]
    	at com.serotonin.m2m2.rt.EventManagerImpl$EventNotifyWorkItem.execute(EventManagerImpl.java:1132) ~[mango-3.7.4.jar:?]
    	at com.serotonin.m2m2.rt.maint.BackgroundProcessingImpl$WorkItemRunnable.run(BackgroundProcessingImpl.java:671) ~[mango-3.7.4.jar:?]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
    	at java.lang.Thread.run(Thread.java:830) [?:?]
    
    

    Thanks
    Shubham

    posted in How-To read more
  • S
    shubham

    Hi Matt,
    Thanks for the response.
    can you guide from where we can change these settings?
    i trying from Administration > System Settings > Permission.

    My scenario is below.
    I had created a user as "shubham" which is the part of user group only.
    then from permission page i granted permission of excel related options to user group but while trying to access it from shubham user , i am not able to that.

    thanks
    Shubham

    posted in How-To read more
  • S
    shubham

    Hi Ralf and Matt,
    From modules option i marked my Log4j Data source to delete and clicked on restart mango button.
    After that i am not able to access mango UI it seems like application stopped and not started.
    Thanks
    Shubham Rajvanshi

    posted in How-To read more
  • S
    shubham

    Thanks for the reply,

    Can you guide us how to remove the modules.

    posted in How-To read more
  • S
    shubham

    Hi Fox,

    What we are trying to do is to implement an autologin to mango. Mango UI in this case would be called from inside our our parent application.

    I believe one of the ways to achieve this is through generation of XSRF token and logging in using this token,

    I am hoping that having this token stored as a session cookie would let me login to the Mango UI application without prompting for username and password.

    posted in How-To read more
  • S
    shubham

    Hi,

    We tried using the steps, but I am getting forbidden response on the second instance as well. I am not sure if it could be the case that I am using the trial(free) Mango version.
    Following is the request and response(Even after replacing the XRSF token received in the 1st response.)
    Request:

    curl -v -X POST http://localhost:8080/rest/v2/login -d 'username=DineshTech&password=test@1234' -H "Accept:application/json; charset=UTF-8" -H "Content-Type:application/json; charset=UTF-8" -H "X-XSRF-TOKEN=631baff8-d352-47f1-9421-425732ab7e33"
    
    Response:
    "< Set-Cookie: XSRF-TOKEN=631baff8-d352-47f1-9421-425732ab7e33; Path=/
    < X-Content-Type-Options: nosniff
    < X-XSS-Protection: 1; mode=block
    < X-Frame-Options: SAMEORIGIN
    < Cache-Control: must-revalidate,no-cache,no-store
    < Content-Length: 0
    "
    

    Even after the above works, we need to ensure that the UI uses the same XRSF token, so that UI is automatically logged in once API login request is success, and identify the cookie which needs updating with the XRSF token.

    Currently I have been able to successfully retrieve data sing Auth bearer(JWT) generated by Mango UI -> User Profile, see request/response below:
    Request:

    curl --request GET http://localhost:8080/rest/v1/users/current -H "Authorization:Bearer eyJhbGciOiJFUzUxMiJ9.eyJzdWIiOiJEaW5lc2hUZWNoIiwiZXhwIjoxNTgyMDg0MjI0LCJpZCI6MSwidiI6MSwidHlwIjoiYXV0aCJ9.AfQ3m66nzVjAq_5GiyCLJJDcJVZSNJDoMkNt157YNmPbKV1avMH7bVq7gAmOt3hdCwlekUBahVuK-9v8J0FuSa35AbOGulOx8FGYp0ea4Qu_gZepa42fk041h8t4MHfll6CRVNuxwgKIaXWpa_U4_2N4soL2Qo6TFzcBqOXGUEuOddaz"
    
    Response:
    "{
    ""username"": ""DineshTech"",
    ""email"": ""dinesh@india.nec.com"",
    ""grantedPermissions"": [""excelReports.fileStoreWritePermission"", ""graphical.view.addView"", ""internal.status"", ""action.purgeAllPointValues"", ""SNMP_MIB_STORE_READ"", ""alarms.view"", ""reports.view"", ""graphical.view.upload"", ""filestore.user.create"", ""dataFile.compiledTemplateFileStoreReadPermission"", ""permissionDatasource"", ""dataFile.compiledTemplateFileStoreWritePermission"", ""action.log4jUtil"", ""excelreports.view"", ""legacypointdetails.view"", ""dataFile.templateFileStoreReadPermission"", ""graphical.view"", ""filestore.docs.read"", ""dataFileDataSourceREST"", ""watchlist.view"", ""haystack.server"", ""mailingLists.create"", ""action.purgeAllEvents"", ""users.view"", ""action.purgeUsingSettings"", ""action.sqlRestore"", ""action.excelReportPurge"", ""SNMP_MIB_STORE_WRITE"", ""filestore.docs.write"", ""filestore.public.write"", ""pointlinks.view"", ""action.configurationBackup"", ""permissions.user.sendToMailingList"", ""dataImport.view"", ""filestore.core.read"", ""action.reportPurge"", ""permissions.user.editSelf"", ""jsonData.create"", ""permissions.superadmin"", ""dataFile.templateFileStoreWritePermission"", ""filestore.core.write"", ""action.sqlBackup"", ""excelReports.fileStoreReadPermission""],
    ""sessionExpirationOverride"": false,
    ""sessionExpirationPeriod"": null,
    ""lastLogin"": ""2020-02-18T06:24:51.644Z"",
    ""lastPasswordChange"": ""2020-02-04T07:49:00.257Z"",
    ""organization"": ""NECTI"",
    ""organizationalRole"": ""Developer"",
    ""created"": ""2020-01-29T05:20:00.045Z"",
    ""emailVerified"": null,
    ""oldHashAlgorithm"": false,
    ""validationMessages"": null,
    ""password"": """",
    ""permissions"": ""superadmin, edit-ui-menus, edit-ui-pages, edit-ui-settings, user"",
    ""locale"": """",
    ""name"": ""Dinesh"",
    ""id"": 1,
    ""disabled"": false,
    ""homeUrl"": ""/ui/administration/home"",
    ""timezone"": """",
    ""systemTimezone"": ""GMT"",
    ""muted"": true,
    ""admin"": true,
    ""receiveOwnAuditEvents"": false,
    ""systemLocale"": ""en-US"",
    ""passwordLocked"": false,
    ""phone"": """",
    ""receiveAlarmEmails"": ""IGNORE"",
    ""data"": null
    }"
    

    Thanks and Regards
    Shubham Rajvanshi

    posted in How-To read more
  • S
    shubham

    Hi,
    As I can understand from mention link (https://help.infiniteautomation.com/mango-rest-api-authentication)), is that there are two ways through which we can generate token.

    Option-1: By using mango UI (No need to have XSFR-Token mechanism)
    Option-2: By calling api with XSRF-Token mechanism.

    Query:-

    1. is there any api through which we can directly generate (without using mango UI) the JWT (json web token), without dealing with cookies and XSRF-TOKENi.e option-2. [Desired one]

    2. If XSRF-Token mechanism is mandatory then could you share more details on how to generate XSRF-Token and relevant details regarding this.

    As we can see below are the details required if we go with Option-2, so from where we can generate the highlighted part

    Cookie:XSRF-TOKEN=74cf354a-e871-48b6-a1c2-bebb93d00120
    X-XSRF-TOKEN:74cf354a-e871-48b6-a1c2-bebb93d00120
    

    NOTE: we want to auto-login in mango application from our parent application which does accept username and password in json in request body
    Thanks and Regards
    Shubham Rajvanshi

    posted in How-To read more