• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Vieuw.jsp error

    User help
    2
    14
    4.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sprokkie
      last edited by

      @mlohbihler said:

      Can you post your code?

      <%--
      Mango - Open Source M2M - http://mango.serotoninsoftware.com
      Copyright (C) 2006-2009 Serotonin Software Technologies Inc.
      @author Matthew Lohbihler

      This program is free software: you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published by
      the Free Software Foundation, either version 3 of the License, or
      (at your option) any later version.
      
      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU General Public License for more details.
      
      You should have received a copy of the GNU General Public License
      along with this program.  If not, see http://www.gnu.org/licenses/.
      

      --%><%@ include file="/WEB-INF/jsp/include/tech.jsp" %>
      <%@ taglib prefix="view" tagdir="/WEB-INF/tags/view" %>
      <html>
      <head>
      <link href="resources/common.css" type="text/css" rel="stylesheet"/>

      <view:init username="admin"/>

      </head>
      <body>
      <h1>Custom View Example</h1>

      <p>
      The active components of this example have been commented out. To reactivate, remove the <%-- --%> style
      comment tags (but not what is between them!) and replace the view:init username and all xid attributes with valid
      values.
      </p>
      <p>
      <b>You will receive errors if you do not provide valid attribute values!</b> Read the error messages for clues about
      what needs to be fixed. You can remove these instructions when you are done.
      </p>
      <p>
      You can create as many custom views as you want. Simply create a new JSP file in the main directory (where the
      index.jsp is).
      </p>

      <h3>A simple table of some values</h3>
      <table>
      <tr>
      <!--
      A simplePoint tag is used to display the value of a single point.
      - xid: the point to use (required)
      - disabledValue: the value to display if the point is disabled (defaults to "")
      - raw: whether the value should be fully rendered according to the text renderer, or should be provided in its
      raw form. For example, a raw numeric is does not include a suffix, a raw multistate is its integer value,
      and a raw binary is 0 or 1. (Defaults to false).
      -->
      <td align="right" style="padding-right:20px">A point value:</td>
      <td><view:simplePoint xid="DS_337334" disabledValue="(disabled)"/></td>
      </tr>
      <tr>
      <td align="right" style="padding-right:20px">A raw point value:</td>
      <td><view:simplePoint xid="DS_301245" raw="true"/></td>
      </tr>

      </table>

      <!--
      Display charts with the chart tag. Include points in the chart with the chartPoint child tag. Most attributes should
      require no explanation.
      - color: this attribute can be an HTML-style hex, or any color name in the HTML specification.
      -->
      <h3>A chart</h3>
      <view:chart duration="1" durationType="hours" width="800" height="300">
      <view:chartPoint xid="DS_3011245" color="#2468AC"/>
      </view:chart>

      </body>
      </html>

      sprokkie

      1 Reply Last reply Reply Quote 0
      • M
        mlohbihler
        last edited by

        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.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • S
          sprokkie
          last edited by

          @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 error

          DEBUG: 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

          1 Reply Last reply Reply Quote 0
          • M
            mlohbihler
            last edited by

            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.

            Best regards,
            Matthew

            1 Reply Last reply Reply Quote 0
            • M
              mlohbihler
              last edited by

              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.

              Best regards,
              Matthew

              1 Reply Last reply Reply Quote 0
              • S
                sprokkie
                last edited by

                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 more

                XID DS_337334 is a valid XID
                I looked it up and checked it 3 times

                I changed it for another xid even copy the original datasource to get a new xid.

                for some reason the xid are not recognized.

                1 Reply Last reply Reply Quote 0
                • M
                  mlohbihler
                  last edited by

                  The "DS" part concerns me. Are you sure you're not referencing a data source rather than a data point?

                  Best regards,
                  Matthew

                  1 Reply Last reply Reply Quote 0
                  • S
                    sprokkie
                    last edited by

                    i use the name in the xid box

                    see image

                    image

                    1 Reply Last reply Reply Quote 0
                    • M
                      mlohbihler
                      last edited by

                      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.

                      Best regards,
                      Matthew

                      1 Reply Last reply Reply Quote 0
                      • S
                        sprokkie
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 0
                        • M
                          mlohbihler
                          last edited by

                          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.

                          Best regards,
                          Matthew

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post