tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcelo Lotif (JIRA)" <...@tapestry.apache.org>
Subject [jira] Created: (TAPESTRY-2088) ClassNotFoundException when passing an int[] parameter to a component
Date Fri, 25 Jan 2008 16:04:10 GMT
ClassNotFoundException when passing an int[] parameter to a component
---------------------------------------------------------------------

                 Key: TAPESTRY-2088
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2088
             Project: Tapestry
          Issue Type: Bug
    Affects Versions: 5.0.9
         Environment: Windows XP, Eclipse and Jetty
            Reporter: Marcelo Lotif
            Priority: Minor
             Fix For: 5.0.10


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:

# 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[]

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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message