click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian A. (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CLK-229) Namespace clash with jsp causes ClassCastException
Date Sun, 20 Sep 2009 17:18:16 GMT

     [ https://issues.apache.org/jira/browse/CLK-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adrian A. closed CLK-229.
-------------------------

    Resolution: Cannot Reproduce

Due to refactorings of code to XmlConfigService, this problem does not appear in Click anymore.

> Namespace clash with jsp causes ClassCastException
> --------------------------------------------------
>
>                 Key: CLK-229
>                 URL: https://issues.apache.org/jira/browse/CLK-229
>             Project: Click
>          Issue Type: Bug
>          Components: core
>         Environment: Click 1.3 and 1.4 dev
>            Reporter: David Frizelle
>            Assignee: Adrian A.
>            Priority: Minor
>
> When a jsp file exists in the same directory with a similar name to a .htm file a ClassCastException
is thrown.
> 581: /**
> 582: * Return an array public fields for the given page class.
> 583: *
> 584: * @param pageClass the page class
> 585: * @return an array public fields for the given page class
> 586: */
> 587: Field[] getPageFieldArray(Class pageClass) {
> 588: Object object = pageByClassMap.get(pageClass);
> 589:
> 590: if (object != null) {
> 591: ClickApp.PageElm page = (ClickApp.PageElm) object;
> 592: return page.getFieldArray();
> 593:
> 594: } else {
> 595: return null;
> 596: }
> 597: }
> 598:
> 599: /**
> 600: * Return Map of public fields for the given page class.
> 601: *
> java.lang.ClassCastException
> 	at net.sf.click.ClickApp.getPageFieldArray(ClickApp.java:591)
> 	at net.sf.click.ClickServlet.processPageFields(ClickServlet.java:1345)
> 	at net.sf.click.ClickServlet.initPage(ClickServlet.java:893)
> 	at net.sf.click.ClickServlet.createPage(ClickServlet.java:819)
> 	at net.sf.click.ClickServlet.handleRequest(ClickServlet.java:357)
> 	at net.sf.click.ClickServlet.doGet(ClickServlet.java:280)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> 	at net.sf.click.extras.cayenne.DataContextFilter.doFilter(DataContextFilter.java:237)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
> 	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
> 	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
> 	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
> 	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
> 	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
> 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
> 	at java.lang.Thread.run(Unknown Source)

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


Mime
View raw message