我有一个输出流,它将数据作为日志发送到终端并发送到UI。我已经制作了一个用于接收数据的插件,并将其添加到仪表板中。但我无法在仪表板中看到任何输出。 错误如下所示。
[2018-06-04 16:49:11,781] [IoT-Analytics] ERROR {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} - Error reading request, ignored
org.mozilla.javascript.EcmaError: SyntaxError: Unexpected token: c (/portal/uipublisher/websocketSubscriptionEndpoint.jag#32)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
at org.mozilla.javascript.NativeJSON.parse(NativeJSON.java:112)
at org.mozilla.javascript.NativeJSON.parse(NativeJSON.java:119)
at org.jaggeryjs.scriptengine.util.HostObjectUtil.parseJSON(HostObjectUtil.java:70)
at org.jaggeryjs.scriptengine.engine.RhinoTopLevel.parse(RhinoTopLevel.java:51)
at sun.reflect.GeneratedMethodAccessor187.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at org.jaggeryjs.rhino.portal.uipublisher.c0._c_anonymous_2(/portal/uipublisher/websocketSubscriptionEndpoint.jag:32)
at org.jaggeryjs.rhino.portal.uipublisher.c0.call(/portal/uipublisher/websocketSubscriptionEndpoint.jag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.jaggeryjs.rhino.portal.uipublisher.c0.call(/portal/uipublisher/websocketSubscriptionEndpoint.jag)
at org.jaggeryjs.hostobjects.web.WebSocketHostObject.processText(WebSocketHostObject.java:192)
at org.jaggeryjs.jaggery.core.websocket.WSMessageInBound.onTextMessage(WSMessageInBound.java:37)
at org.apache.catalina.websocket.MessageInbound.onTextData(MessageInbound.java:78)
at org.apache.catalina.websocket.StreamInbound.doOnTextData(StreamInbound.java:191)
at org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:139)
at org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(UpgradeProcessor.java:88)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:633)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1770)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1729)
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:745)
我做错了什么?