Tapestry
  1. Tapestry
  2. TAPESTRY-2088

ClassNotFoundException when passing an int[] parameter to a component

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.9
    • Fix Version/s: 5.0.10
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP, Eclipse and Jetty

      Description

      I was using a PieChart component based on the tips from the wiki (http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage) and when i switched to T5.0.9 i got this error:

      1. org.apache.tapestry.ioc.internal.util.TapestryException
        java.lang.ClassNotFoundException: int[]

      location
      classpath:br/com/javasoftware/erp/pages/consultas/CstEstoque.tml, line 42, column 26
      37 <br/><br/>
      38 </center>
      39 <center>
      40 <t:piechart width="400" height="300"
      41 labels="pieLabels" values="pieValues"
      42 popup="popupSize" />
      43 <table t:type="grid" source="resumoList" row="resumoItem"
      44 remove="iduniq,datcad,conta_pc,tipoimposto" reorder="descri, total" >
      45 <t:parameter name="totalCell" >
      46 <span t:type="OutputLocale" value="resumoItem.total"
      47 format="literal:currency" />

      1. java.lang.ClassNotFoundException
        int[]

      the popup parameter is an int[] parameter:

      /** width and height of the popup chart, if omitted, javascript for popup chart is omitted from output*/
      @Parameter
      private int[] _popup;

      and i defined it on my class like this:

      public int[] getpopupSize(){
      return new int[]

      {800,600}

      ;
      }

      Is important to say that this component was functioning since the 5.0.5 version. This is the full stack trace:

      An unexpected application exception has occurred.

      • org.apache.tapestry.ioc.internal.util.TapestryException
        java.lang.ClassNotFoundException: int[]

      location
      classpath:br/com/javasoftware/erp/pages/consultas/CstEstoque.tml, line 42, column 26
      37 <br/><br/>
      38 </center>
      39 <center>
      40 <t:piechart width="400" height="300"
      41 labels="pieLabels" values="pieValues"
      42 popup="popupSize" />
      43 <table t:type="grid" source="resumoList" row="resumoItem"
      44 remove="iduniq,datcad,conta_pc,tipoimposto" reorder="descri, total" >
      45 <t:parameter name="totalCell" >
      46 <span t:type="OutputLocale" value="resumoItem.total"
      47 format="literal:currency" />

      • java.lang.ClassNotFoundException
        int[]

      Stack trace
      o java.lang.Class.forName0(Native Method)
      o java.lang.Class.forName(Class.java:242)
      o org.apache.tapestry.internal.services.ComponentClassCacheImpl.forName(ComponentClassCacheImpl.java:50)
      o org.apache.tapestry.internal.structure.PageResourcesImpl.toClass(PageResourcesImpl.java:56)
      o org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.readParameter(InternalComponentResourcesImpl.java:222)
      o br.com.javasoftware.erp.components.PieChart._$read_parameter_popup(PieChart.java)
      o br.com.javasoftware.erp.components.PieChart.beginRender(PieChart.java:86)
      o br.com.javasoftware.erp.components.PieChart.beginRender(PieChart.java)
      o org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run(ComponentPageElementImpl.java:327)
      o org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:863)
      o org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100(ComponentPageElementImpl.java:53)
      o org.apache.tapestry.internal.structure.ComponentPageElementImpl$10.render(ComponentPageElementImpl.java:331)
      o org.apache.tapestry.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:58)
      o org.apache.tapestry.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:63)
      o org.apache.tapestry.services.TapestryModule$19.renderMarkup(TapestryModule.java:1298)
      o org.apache.tapestry.services.TapestryModule$23.renderMarkup(TapestryModule.java:1406)
      o org.apache.tapestry.services.TapestryModule$22.renderMarkup(TapestryModule.java:1387)
      o org.apache.tapestry.services.TapestryModule$21.renderMarkup(TapestryModule.java:1369)
      o org.apache.tapestry.services.TapestryModule$20.renderMarkup(TapestryModule.java:1351)
      o org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:55)
      o org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:57)
      o org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:57)
      o org.apache.tapestry.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:66)
      o org.apache.tapestry.services.TapestryModule$13.service(TapestryModule.java:926)
      o br.com.javasoftware.erp.services.AppModule$1.service(AppModule.java:83)
      o br.com.javasoftware.erp.services.AppModule$2.service(AppModule.java:121)
      o org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
      o org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:518)
      o org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.java:493)
      o org.apache.tapestry.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:53)
      o org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79)
      o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93)
      o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84)
      o org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
      o org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106)
      o org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java:906)
      o org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:164)
      o org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
      o org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
      o org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
      o org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
      o org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
      o org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
      o org.mortbay.http.HttpServer.service(HttpServer.java:909)
      o org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
      o org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
      o org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
      o org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
      o org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
      o org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568454 ] jira [ 12591505 ]
        Mark Thomas made changes -
        Workflow jira [ 12422071 ] Default workflow, editable Closed status [ 12568454 ]
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Marcelo Lotif created issue -

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Marcelo Lotif
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development