You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Rohan Kalyan <rk...@indygosoft.com> on 2008/03/24 06:53:10 UTC

Migration of Tapestry 4.0.2 to 4.1.5. Please help!!!

Hi all,

we are  working on migration of tapestry4.0.2 to 4.1.5
We are using Tapesrtry 4.1.5 jars(tapestry-annotations-4.1.5.jar ,
tapestry-contrib-4.1.5.jar, tapestry-framework-4.1.5.jar,
tapestry-portlet-4.1.5.jar) and ognl-2.7.2.jar

we've changed
                   1. Ajax directlink to directlink
                   2. AjaxForm to Form
                   3. added a method in IpropertySelectionModel
(isDisabled() )
                   4. changed tacos dialog to dojo dialog

now we are getting some exceptions for the code which was running fine in
tapestry 4.0.2


Error converting value for {'Unscheduled'}: Unable to convert from type
java.util.Arrays$ArrayList to java.util.ArrayList. No type converter for
java.util.Arrays$ArrayList is available.

 [ +/- ] Exception: Error converting value for {'Unscheduled'}: Unable to
convert from type java.util.Arrays$ArrayList to java.util.ArrayList. No type
converter for java.util.Arrays$ArrayList is
available.<http://localhost:8080/dentaprise/#>
org.apache.tapestry.BindingException  binding: ExpressionBinding[Home
{'Unscheduled'}]  component: $Home_0@3c1[Home]  location: context:/Home.html,
line 44
39   <li><a jwcid="@PageLink" page="ListAppointment">Search</a> for an
appointment</li> 40    <li><a jwcid="@PageLink" page="ListClient">Search</a>
for a patient</li> 41    <li>View and edit <a jwcid="@PageLink"
page="admin/ListInsurancePlan">insurance plans</a></li> 42    <li>Manage
your <a jwcid="@ExternalLink" page="admin/EditSetup"
parameters="Home">setup</a> and practices</li> 43   </ul> 44    <span
jwcid="@AppointmentList" statusList="ognl:{'Unscheduled'}"/> 45      </div>
46      </span> 47      </div> 48    </body> 49</html>       [ +/- ]
Exception: Unable to convert from type java.util.Arrays$ArrayList to
java.util.ArrayList. No type converter for java.util.Arrays$ArrayList is
available. <http://localhost:8080/dentaprise/#>
org.apache.hivemind.ApplicationRuntimeException  Stack Trace:

   - org.apache.tapestry.coerce.ValueConverterImpl.coerceValue(
   ValueConverterImpl.java:105)
   - $ValueConverter_118caa27475.coerceValue($ValueConverter_118caa27475.java)

   - org.apache.tapestry.binding.AbstractBinding.getObject(
   AbstractBinding.java:88)
   - $AppointmentList_17.getStatusList($AppointmentList_17.java)
   - com.dentaprise.component.AppointmentList.pageBeginRender(
   AppointmentList.java:133)
   - org.apache.tapestry.AbstractPage.firePageBeginRender(
   AbstractPage.java:409)
   - org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:244)
   - org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:400)

   -
   org.apache.tapestry.services.impl.DefaultResponseBuilder.renderResponse
   (DefaultResponseBuilder.java:159)
   -
   org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(
   ResponseRendererImpl.java:33)
   - $ResponseRenderer_118caa274a7.renderResponse($ResponseRenderer_118caa274a7.java)

   - org.apache.tapestry.engine.HomeService.service(HomeService.java:68)
   - $IEngineService_118caa27516.service($IEngineService_118caa27516.java)

   - org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
   EngineServiceOuterProxy.java:72)
   - org.apache.tapestry.engine.AbstractEngine.service(
   AbstractEngine.java:241)
   - org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
   InvokeEngineTerminator.java:54)
   - $WebRequestServicer_118caa274f1.service($WebRequestServicer_118caa274f1.java)

   - $WebRequestServicer_118caa274ed.service($WebRequestServicer_118caa274ed.java)

   -
   org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service
   (WebRequestServicerPipelineBridge.java:61)
   - $ServletRequestServicer_118caa274d3.service($ServletRequestServicer_118caa274d3.java)

   - org.apache.tapestry.request.DecodedRequestInjector.service(
   DecodedRequestInjector.java:55)
   - $ServletRequestServicerFilter_118caa274cf.service($ServletRequestServicerFilter_118caa274cf.java)

   - $ServletRequestServicer_118caa274d5.service($ServletRequestServicer_118caa274d5.java)

   - org.apache.tapestry.multipart.MultipartDecoderFilter.service(
   MultipartDecoderFilter.java:52)
   - $ServletRequestServicerFilter_118caa274cd.service($ServletRequestServicerFilter_118caa274cd.java)

   - $ServletRequestServicer_118caa274d5.service($ServletRequestServicer_118caa274d5.java)

   - org.apache.tapestry.services.impl.SetupRequestEncoding.service(
   SetupRequestEncoding.java:53)
   - $ServletRequestServicerFilter_118caa274d1.service($ServletRequestServicerFilter_118caa274d1.java)

   - $ServletRequestServicer_118caa274d5.service($ServletRequestServicer_118caa274d5.java)

   - $ServletRequestServicer_118caa274c7.service($ServletRequestServicer_118caa274c7.java)

   - org.apache.tapestry.ApplicationServlet.doService(
   ApplicationServlet.java:126)
   - org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:103)

   - javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   - javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   - org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
   ApplicationFilterChain.java:252)
   - org.apache.catalina.core.ApplicationFilterChain.doFilter(
   ApplicationFilterChain.java:173)
   - org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   FilterChainProxy.java:265)
   - org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(
   FilterSecurityInterceptor.java:107)
   - org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(
   FilterSecurityInterceptor.java:72)
   - org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   FilterChainProxy.java:275)
   - org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(
   ExceptionTranslationFilter.java:110)
   - org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   FilterChainProxy.java:275)
   -
   org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter
   (SecurityContextHolderAwareRequestFilter.java:81)
   - org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   FilterChainProxy.java:275)
   - org.acegisecurity.ui.AbstractProcessingFilter.doFilter(
   AbstractProcessingFilter.java:229)
   - org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   FilterChainProxy.java:275)
   -
   org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter
   (HttpSessionContextIntegrationFilter.java:286)
   - org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
   FilterChainProxy.java:275)
   - org.acegisecurity.util.FilterChainProxy.doFilter(
   FilterChainProxy.java:149)
   - org.acegisecurity.util.FilterToBeanProxy.doFilter(
   FilterToBeanProxy.java:98)
   - org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
   ApplicationFilterChain.java:202)
   - org.apache.catalina.core.ApplicationFilterChain.doFilter(
   ApplicationFilterChain.java:173)
   -
   org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal
   (OpenSessionInViewFilter.java:174)
   - org.springframework.web.filter.OncePerRequestFilter.doFilter(
   OncePerRequestFilter.java:76)
   - org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
   ApplicationFilterChain.java:202)
   - org.apache.catalina.core.ApplicationFilterChain.doFilter(
   ApplicationFilterChain.java:173)
   - org.apache.catalina.core.StandardWrapperValve.invoke(
   StandardWrapperValve.java:213)
   - org.apache.catalina.core.StandardContextValve.invoke(
   StandardContextValve.java:178)
   - org.apache.catalina.core.StandardHostValve.invoke(
   StandardHostValve.java:126)
   - org.apache.catalina.valves.ErrorReportValve.invoke(
   ErrorReportValve.java:105)
   - org.apache.catalina.core.StandardEngineValve.invoke(
   StandardEngineValve.java:107)
   - org.apache.catalina.connector.CoyoteAdapter.service(
   CoyoteAdapter.java:148)
   - org.apache.coyote.http11.Http11Processor.process(
   Http11Processor.java:869)
   -
   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
   (Http11BaseProtocol.java:664)
   - org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
   PoolTcpEndpoint.java:527)
   - org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
   LeaderFollowerWorkerThread.java:80)
   - org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
   ThreadPool.java:684)
   - java.lang.Thread.run(Thread.java:595)

------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


thanks in advance,
-- 
Rohan Kalyan
Indygo - www.indygosoft.com

Re: Migration of Tapestry 4.0.2 to 4.1.5. Please help!!!

Posted by Alejandro Scandroli <al...@gmail.com>.
Hi Rohan

Like Steve said in a previous email about this same subject
(http://article.gmane.org/gmane.comp.java.tapestry.user/59751), it's
likely that you have an accessor hardcoded to get/set a
java.util.ArrayList.  Taking a closer look at your exception I guess
the issue is in the "statusList" accesors in the AppointmentList
component. Based on the "statusList" ognl expression the accesor
should be something like:

@Parameter
public abstract List<String> getStatusList();

Check to see if you're explicitly using the ArrayList class instead of
the List interface.


--
Alejandro Scandroli - http://weblog.amneris.es/
Amneris: We build process-driven web applications.
http://www.amneris.es


On Mon, Mar 24, 2008 at 6:53 AM, Rohan Kalyan <rk...@indygosoft.com> wrote:
> Hi all,
>
>  we are  working on migration of tapestry4.0.2 to 4.1.5
>  We are using Tapesrtry 4.1.5 jars(tapestry-annotations-4.1.5.jar ,
>  tapestry-contrib-4.1.5.jar, tapestry-framework-4.1.5.jar,
>  tapestry-portlet-4.1.5.jar) and ognl-2.7.2.jar
>
>  we've changed
>                    1. Ajax directlink to directlink
>                    2. AjaxForm to Form
>                    3. added a method in IpropertySelectionModel
>  (isDisabled() )
>                    4. changed tacos dialog to dojo dialog
>
>  now we are getting some exceptions for the code which was running fine in
>  tapestry 4.0.2
>
>
>  Error converting value for {'Unscheduled'}: Unable to convert from type
>  java.util.Arrays$ArrayList to java.util.ArrayList. No type converter for
>  java.util.Arrays$ArrayList is available.
>
>   [ +/- ] Exception: Error converting value for {'Unscheduled'}: Unable to
>  convert from type java.util.Arrays$ArrayList to java.util.ArrayList. No type
>  converter for java.util.Arrays$ArrayList is
>  available.<http://localhost:8080/dentaprise/#>
>  org.apache.tapestry.BindingException  binding: ExpressionBinding[Home
>  {'Unscheduled'}]  component: $Home_0@3c1[Home]  location: context:/Home.html,
>  line 44
>  39   <li><a jwcid="@PageLink" page="ListAppointment">Search</a> for an
>  appointment</li> 40    <li><a jwcid="@PageLink" page="ListClient">Search</a>
>  for a patient</li> 41    <li>View and edit <a jwcid="@PageLink"
>  page="admin/ListInsurancePlan">insurance plans</a></li> 42    <li>Manage
>  your <a jwcid="@ExternalLink" page="admin/EditSetup"
>  parameters="Home">setup</a> and practices</li> 43   </ul> 44    <span
>  jwcid="@AppointmentList" statusList="ognl:{'Unscheduled'}"/> 45      </div>
>  46      </span> 47      </div> 48    </body> 49</html>       [ +/- ]
>  Exception: Unable to convert from type java.util.Arrays$ArrayList to
>  java.util.ArrayList. No type converter for java.util.Arrays$ArrayList is
>  available. <http://localhost:8080/dentaprise/#>
>  org.apache.hivemind.ApplicationRuntimeException  Stack Trace:
>
>   (....)
>  thanks in advance,
>  --
>  Rohan Kalyan
>  Indygo - www.indygosoft.com
>

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