Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2189

CFCHART error "Band count exceeds non-unity number of constants."

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.2.002
    • Fix Version/s: None
    • Labels:

      Description

      I'm trying to display a chart in RAILO 4.0.2.002 final and getting the error "Band count exceeds non-unity number of constants.".

      Issue can be fixed by removing the showborder="true".

      Searching the error message returns this page: http://forums.adobe.com/thread/536804

      That's for cfimage on CF8, but mentions the cause as
      > the "border" action of the cfimage tag.

      Here's the code to test.cfm.

      <cfchart format="png" title="Web page views by total" labelformat="number" showborder="true" xaxistitle="Web page" yaxistitle="Total" scalefrom="1" scaleto="20">
      <cfchartseries type="bar" serieslabel="Views" seriescolor="blue">
      <cfloop from="1" to="10" index="i">
      <cfoutput>
      <cfchartdata item="item #i#" value="#i#">
      </cfoutput>
      </cfloop>
      </cfchartseries>
      </cfchart>

      Stack Trace

      additional
      Struct
      Cause
      string java.lang.UnsupportedOperationException
      Detail
      string
      ErrorCode
      string 0
      Extended_Info
      string
      ExtendedInfo
      string
      Message
      string Band count exceeds non-unity number of constants.
      StackTrace
      string Band count exceeds non-unity number of constants. at javax.media.jai.BorderExtenderConstant.clamp(BorderExtenderConstant.java:84):84 at javax.media.jai.BorderExtenderConstant.extend(BorderExtenderConstant.java:238):238 at javax.media.jai.PlanarImage.copyExtendedData(PlanarImage.java:2415):2415 at com.sun.media.jai.opimage.BorderOpImage.computeTile(BorderOpImage.java:220):220 at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912):912 at javax.media.jai.OpImage.getTile(OpImage.java:1139):1139 at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2356):2356 at javax.media.jai.RenderedOp.copyData(RenderedOp.java:2310):2310 at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2538):2538 at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2559):2559 at railo.runtime.img.Image.addBorder(Image.java:253):253 at railo.runtime.tag.Chart.copy(Chart.java:738):738 at railo.runtime.tag.Chart.writeOut(Chart.java:703):703 at railo.runtime.tag.Chart.chartPie(Chart.java:538):538 at railo.runtime.tag.Chart.doEndTag(Chart.java:462):462 at chart.views.views_cfm$cf.call(J:\clients\webenablr\code\webenablr_v2_0\widgets\chart\views\views.cfm:7):7 at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:801):801 at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:748):748 at renderer_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\plugins\renderer.cfc:40):40 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:275):275 at railo.runtime.ComponentImpl._call(ComponentImpl.java:608):608 at railo.runtime.ComponentImpl._call(ComponentImpl.java:490):490 at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1800):1800 at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:749):749 at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1521):1521 at basecontroller_cfc$cf._2(J:\clients\webenablr\code\webenablr_v2_0\controllers\baseController.cfc:111):111 at basecontroller_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\controllers\baseController.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.call(UDFImpl.java:284):284 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:774):774 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506 at chart.chart_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\widgets\chart\chart.cfc:54):54 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:275):275 at railo.runtime.ComponentImpl._call(ComponentImpl.java:608):608 at railo.runtime.ComponentImpl._call(ComponentImpl.java:490):490 at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1796):1796 at railo.runtime.tag.Invoke.doComponent(Invoke.java:209):209 at railo.runtime.tag.Invoke.doEndTag(Invoke.java:182):182 at model.api_cfc$cf._3(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc:621):621 at model.api_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.call(UDFImpl.java:284):284 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:774):774 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506 at model.api_cfc$cf._3(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc:559):559 at model.api_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:275):275 at railo.runtime.ComponentImpl._call(ComponentImpl.java:608):608 at railo.runtime.ComponentImpl._call(ComponentImpl.java:490):490 at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1800):1800 at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:749):749 at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1521):1521 at basecontroller_cfc$cf._1(J:\clients\webenablr\code\webenablr_v2_0\controllers\baseController.cfc:38):38 at basecontroller_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\controllers\baseController.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.call(UDFImpl.java:284):284 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:774):774 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506 at requestcontroller_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\controllers\requestController.cfc:150):150 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:275):275 at railo.runtime.ComponentImpl._call(ComponentImpl.java:608):608 at railo.runtime.ComponentImpl._call(ComponentImpl.java:490):490 at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1796):1796 at railo.runtime.tag.Invoke.doComponent(Invoke.java:209):209 at railo.runtime.tag.Invoke.doEndTag(Invoke.java:182):182 at model.api_cfc$cf._3(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc:621):621 at model.api_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.call(UDFImpl.java:284):284 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:774):774 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506 at model.api_cfc$cf._3(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc:559):559 at model.api_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:275):275 at railo.runtime.ComponentImpl._call(ComponentImpl.java:608):608 at railo.runtime.ComponentImpl._call(ComponentImpl.java:490):490 at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1800):1800 at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:749):749 at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1521):1521 at basecontroller_cfc$cf._1(J:\clients\webenablr\code\webenablr_v2_0\controllers\baseController.cfc:38):38 at basecontroller_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\controllers\baseController.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.call(UDFImpl.java:284):284 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:774):774 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506 at requestcontroller_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\controllers\requestController.cfc:55):55 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:275):275 at railo.runtime.ComponentImpl._call(ComponentImpl.java:608):608 at railo.runtime.ComponentImpl._call(ComponentImpl.java:490):490 at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1796):1796 at railo.runtime.tag.Invoke.doComponent(Invoke.java:209):209 at railo.runtime.tag.Invoke.doEndTag(Invoke.java:182):182 at model.api_cfc$cf._3(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc:621):621 at model.api_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.call(UDFImpl.java:284):284 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:774):774 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506 at model.api_cfc$cf._3(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc:559):559 at model.api_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.call(UDFImpl.java:284):284 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:774):774 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506 at model.api_cfc$cf._3(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc:395):395 at model.api_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\model\api.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.call(UDFImpl.java:284):284 at railo.runtime.ComponentImpl._call(ComponentImpl.java:607):607 at railo.runtime.ComponentImpl._call(ComponentImpl.java:490):490 at railo.runtime.ComponentImpl.call(ComponentImpl.java:1781):1781 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:723):723 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1506):1506 at application_cfc$cf._1(J:\clients\webenablr\code\webenablr_v2_0\Application.cfc:183):183 at application_cfc$cf.udfCall(J:\clients\webenablr\code\webenablr_v2_0\Application.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:103):103 at railo.runtime.type.UDFImpl._call(UDFImpl.java:371):371 at railo.runtime.type.UDFImpl.call(UDFImpl.java:284):284 at railo.runtime.ComponentImpl._call(ComponentImpl.java:607):607 at railo.runtime.ComponentImpl._call(ComponentImpl.java:490):490 at railo.runtime.ComponentImpl.call(ComponentImpl.java:1781):1781 at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:346):346 at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:190):190 at railo.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:78):78 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2255):2255 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2222):2222 at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:310):310 at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29 at javax.servlet.http.HttpServlet.service(HttpServlet.java:722):722 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225):225 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123):123 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472):472 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168):168 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98):98 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407):407 at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200):200 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585):585 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310):310 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source):-1 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source):-1 at java.lang.Thread.run(Unknown Source):-1

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                puc Pasquale Covelli
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: