Bom dia, Eu tenho uma instalação do SCADA onde eu quero ativar um PublicView para alguns estados do sistema e outros títulos são vistos.
O problema é que só mostra os ícones em vez de objetos, a página indica erro:
"Um erro de servidor ocorreu. Mais informações são disponíveis no console"
Os shows Java Console:
public_view.htm?viewId=1:19 Resource interpreted as Script but transferred with MIME type text/plain: "http://10.27.22.73:8080/Scada/dwr/interface/MiscDwr.js".
public_view.htm?viewId=1:22 Resource interpreted as Script but transferred with MIME type text/plain: "http://10.27.22.73:8080/Scada/dwr/interface/ViewDwr.js".
engine.js:1223 console.trace()engine.js:1223 dwr.engine._debugengine.js:177 dwr.engine.defaultErrorHandlerengine.js:890 dwr.engine._remoteHandleExceptionVM1446:3 (anonymous function)engine.js:939 dwr.engine._evalengine.js:855 dwr.engine._stateChangeengine.js:652 batch.req.onreadystatechange
engine.js:1224 Error: undefined,
E mango.log segue:
ERROR 2014-12-09 14:18:54,546 (com.serotonin.mango.web.filter.ExceptionDetectionFilter.doFilter:52) - DWR invocation exception
java.lang.NullPointerException
at br.org.scadabr.view.component.AlarmListComponent.generateContent(AlarmListComponent.java:50)
at com.serotonin.mango.web.dwr.ViewDwr.addCustomComponentState(ViewDwr.java:320)
at com.serotonin.mango.web.dwr.ViewDwr.getViewPointData(ViewDwr.java:230)
at com.serotonin.mango.web.dwr.ViewDwr.getViewPointDataAnon(ViewDwr.java:107)
at com.serotonin.mango.web.dwr.MiscDwr.doLongPoll(MiscDwr.java:364)
at com.serotonin.mango.web.dwr.MiscDwr.initializeLongPoll(MiscDwr.java:279)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at com.serotonin.mango.web.dwr.util.LoggedInAjaxMethodFilter.doFilter(LoggedInAjaxMethodFilter.java:52)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at com.serotonin.web.dwr.LocalizationFilter.doFilter(LocalizationFilter.java:42)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at com.serotonin.mango.web.filter.ExceptionDetectionFilter.doFilter(ExceptionDetectionFilter.java:40)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
WARN 2014-12-09 14:18:54,577 (org.directwebremoting.util.CommonsLoggingOutput.warn:67) - Method execution failed:
java.lang.NullPointerException
at br.org.scadabr.view.component.AlarmListComponent.generateContent(AlarmListComponent.java:50)
at com.serotonin.mango.web.dwr.ViewDwr.addCustomComponentState(ViewDwr.java:320)
at com.serotonin.mango.web.dwr.ViewDwr.getViewPointData(ViewDwr.java:230)
at com.serotonin.mango.web.dwr.ViewDwr.getViewPointDataAnon(ViewDwr.java:107)
at com.serotonin.mango.web.dwr.MiscDwr.doLongPoll(MiscDwr.java:364)
at com.serotonin.mango.web.dwr.MiscDwr.initializeLongPoll(MiscDwr.java:279)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at com.serotonin.mango.web.dwr.util.LoggedInAjaxMethodFilter.doFilter(LoggedInAjaxMethodFilter.java:52)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at com.serotonin.web.dwr.LocalizationFilter.doFilter(LocalizationFilter.java:42)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at com.serotonin.mango.web.filter.ExceptionDetectionFilter.doFilter(ExceptionDetectionFilter.java:40)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
WARN 2014-12-09 14:18:54,587 (org.directwebremoting.util.CommonsLoggingOutput.warn:59) - --Erroring: batchId[0] message[java.lang.NullPointerException]
Ícones são convertidos em seus respectivos objetos com os seus valores, se o acesso a PublicView é realizada no mesmo navegador, onde já existe um usuário de scada logead.
Alguém tem idéia de como resolver isso, e faça logins de acesso completamente livre?