do their apache logs contain a sample of the url that caused this error? would be helpful to see one.
-igor On Fri, Jan 14, 2011 at 3:12 PM, Douglas Ferguson <doug...@douglasferguson.us> wrote: > Sorry about my previous title. > > I'm not sure what's causing this, but I've spoken with some of my clients, > who spawned these errors and they weren't manipulating the querystrings.. > So I'm not sure how two pagemap paramenters are getting in there.. > > D/ > > On Jan 13, 2011, at 11:40 AM, Douglas Ferguson wrote: > >> I see the stack trace below in my production logs quite often. >> >> I'm not sure what is causing it but it seems that this error need not >> happen. I.E. Why Cast this to a string when it could easily be String[] if >> somebody messes with the query string? >> >> Seem like a parameters.removeFirst() method could prevent this.. >> >> String pageMapNameEncoded = >> (String)parameters.remove(WebRequestCodingStrategy.PAGEMAP); >> if (requestParameters.getPageMapName() == null) >> { >> requestParameters.setPageMapName(pageMapNameEncoded); >> } >> >> >>> >>> >>> [Ljava.lang.String; cannot be cast to java.lang.String >>> java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to >>> java.lang.String >>> at >>> org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:91) >>> at >>> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:537) >>> at >>> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:191) >>> at >>> org.apache.wicket.protocol.https.HttpsRequestCycleProcessor.resolve(HttpsRequestCycleProcessor.java:219) >>> at >>> com.conducive.wicket.PRManagerApplication$8.resolve(PRManagerApplication.java:709) >>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) >>> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) >>> at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) >>> at >>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484) >>> at >>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:317) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) >>> at >>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) >>> at >>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) >>> at >>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >>> at >>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) >>> at >>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) >>> at >>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) >>> at >>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) >>> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) >>> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) >>> at >>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) >>> at >>> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) >>> at >>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) >>> at java.lang.Thread.run(Unknown Source) >>> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org