Vieuw.jsp error
-
@mlohbihler said:
Do the point references (DS_337334, DS_301245, and DS_3011245) actually reference valid points? When i use the same code in my instance and update the references, the code works fine.
DS_3011245 was wrong it should be DS_301245.
I corrected that and now i have this errorDEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for "simplepoint" in "view.widget" registered to namespace "view". Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5
DEBUG: dojo.widget.Parse: error: [Error: Could not locate widget implementation for "simplepoint" in "view.widget" registered to namespace "view", file: http://172.16.100.226:8090/resources/dojo/dojo.js, line: 9096]strange isn't it
-
The dojo errors will go away when the other issues are corrected. Check for messages in your Tomcat console. There will likely be a message there that indicates what you should do.
-
For example, i got this message before i corrected the problem:
Stacktrace: at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) 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:128) 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:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Thread.java:619) Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: Point with XID 'DS_337334' not found at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) at org.apache.jsp.testCustom_jsp._jspService(testCustom_jsp.java:142) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) ... 15 more Caused by: javax.servlet.jsp.JspException: Point with XID 'DS_337334' not found at com.serotonin.mango.web.taglib.ViewTagSupport.getDataPointVO(ViewTagSupport.java:48) at com.serotonin.mango.web.taglib.SimplePointTag.doStartTag(SimplePointTag.java:59) at org.apache.jsp.tag.web.view.simplePoint_tag._jspx_meth_mango_005fsimplePoint_005f0(simplePoint_tag.java:137) at org.apache.jsp.tag.web.view.simplePoint_tag.doTag(simplePoint_tag.java:103) at org.apache.jsp.testCustom_jsp._jspx_meth_view_005fsimplePoint_005f0(testCustom_jsp.java:176) at org.apache.jsp.testCustom_jsp._jspService(testCustom_jsp.java:109) ... 18 more
The important part was Point with XID 'DS_337334' not found.
-
this is my log file
Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
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:128)
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.Http11AprProcessor.process(Http11AprProcessor.java:859)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: Point with XID 'DS_337334' not found
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
at org.apache.jsp.costumview_jsp._jspService(costumview_jsp.java:142)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
... 15 more
Caused by: javax.servlet.jsp.JspException: Point with XID 'DS_337334' not found
at com.serotonin.mango.web.taglib.ViewTagSupport.getDataPointVO(ViewTagSupport.java:48)
at com.serotonin.mango.web.taglib.SimplePointTag.doStartTag(SimplePointTag.java:59)
at org.apache.jsp.tag.web.view.simplePoint_tag._jspx_meth_mango_005fsimplePoint_005f0(simplePoint_tag.java:137)
at org.apache.jsp.tag.web.view.simplePoint_tag.doTag(simplePoint_tag.java:103)
at org.apache.jsp.costumview_jsp._jspx_meth_view_005fsimplePoint_005f0(costumview_jsp.java:176)
at org.apache.jsp.costumview_jsp._jspService(costumview_jsp.java:109)
... 18 moreXID DS_337334 is a valid XID
I looked it up and checked it 3 timesI changed it for another xid even copy the original datasource to get a new xid.
for some reason the xid are not recognized.
-
The "DS" part concerns me. Are you sure you're not referencing a data source rather than a data point?
-
i use the name in the xid box
see image
-
That's a data source, Sprokkie, not a data point. Note that you are in a "data source" editing page, and there is a list of "points" at the bottom (that box with the big title that says "Points"). When the error message says that it can't find the "data point", you can assume it's probably trying to match against a data point.
-
that did the trick. thx
I located the datapoint it starts wit DP :)Now it works.
now i need to find a way to use this on a remote server
-
Ok, good.
Just a general note that XIDs for data sources only start with "DS" by default (and the same with "DP" and data points). They can otherwise have any value as long as it is unique.