Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Resin

Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2013, 05:55 PM
vassilev vassilev is offline
Junior Member
 
Join Date: Dec 2013
Posts: 1
Default Resin 4 & request parameters - doubled

The problem appears only with GET requests. I have used Resin 4.0.38.

In first case:
http://localhost/?x=my_value

index.jsp:
Code:
request.getParameterValues("x")
returns array with two values - [my_value, my_value]

In second case, when url is:
http://localhost/index.jsp?x=my_value

everything is ok and I receive the array only with one value - [my_value]

in first case the stacktrace is:
java.lang.Thread.getStackTrace(Thread.java:1588)
_jsp._index__jsp._jspService(_index__jsp.java:138)
_jsp._index__jsp._jspService(_index__jsp.java:95)
com.caucho.jsp.JavaPage.service(JavaPage.java:64)
com.caucho.jsp.Page.pageservice(Page.java:548)
com.caucho.server.dispatch.PageFilterChain.doFilte r(PageFilterChain.java:194)
com.caucho.server.webapp.DispatchFilterChain.doFil ter(DispatchFilterChain.java:131)
com.caucho.server.dispatch.ServletInvocation.servi ce(ServletInvocation.java:289)
com.caucho.server.webapp.RequestDispatcherImpl.for ward(RequestDispatcherImpl.java:298)
com.caucho.server.webapp.RequestDispatcherImpl.dis patch(RequestDispatcherImpl.java:141)
com.caucho.server.dispatch.RewriteDispatchFilterCh ain.doFilter(RewriteDispatchFilterChain.java:91)
com.caucho.server.webapp.WebAppFilterChain.doFilte r(WebAppFilterChain.java:156)
com.caucho.server.webapp.AccessLogFilterChain.doFi lter(AccessLogFilterChain.java:95)
com.caucho.server.dispatch.ServletInvocation.servi ce(ServletInvocation.java:289)
com.caucho.server.http.HttpRequest.handleRequest(H ttpRequest.java:838)
com.caucho.network.listen.TcpSocketLink.dispatchRe quest(TcpSocketLink.java:1346)
com.caucho.network.listen.TcpSocketLink.handleRequ est(TcpSocketLink.java:1302)
com.caucho.network.listen.TcpSocketLink.handleRequ estsImpl(TcpSocketLink.java:1286)
com.caucho.network.listen.TcpSocketLink.handleRequ ests(TcpSocketLink.java:1194)
com.caucho.network.listen.TcpSocketLink.handleAcce ptTaskImpl(TcpSocketLink.java:993)
com.caucho.network.listen.ConnectionTask.runThread (ConnectionTask.java:117)
com.caucho.network.listen.ConnectionTask.run(Conne ctionTask.java:93)
com.caucho.network.listen.SocketLinkThreadLauncher .handleTasks(SocketLinkThreadLauncher.java:169)
com.caucho.network.listen.TcpSocketAcceptThread.ru n(TcpSocketAcceptThread.java:61)
com.caucho.env.thread2.ResinThread2.runTasks(Resin Thread2.java:173)
com.caucho.env.thread2.ResinThread2.run(ResinThrea d2.java:118)

in the second case:
java.lang.Thread.getStackTrace(Thread.java:1588)
_jsp._index__jsp._jspService(_index__jsp.java:138)
_jsp._index__jsp._jspService(_index__jsp.java:95)
com.caucho.jsp.JavaPage.service(JavaPage.java:64)
com.caucho.jsp.Page.pageservice(Page.java:548)
com.caucho.server.dispatch.PageFilterChain.doFilte r(PageFilterChain.java:194)
com.caucho.server.webapp.WebAppFilterChain.doFilte r(WebAppFilterChain.java:156)
com.caucho.server.webapp.AccessLogFilterChain.doFi lter(AccessLogFilterChain.java:95)
com.caucho.server.dispatch.ServletInvocation.servi ce(ServletInvocation.java:289)
com.caucho.server.http.HttpRequest.handleRequest(H ttpRequest.java:838)
com.caucho.network.listen.TcpSocketLink.dispatchRe quest(TcpSocketLink.java:1346)
com.caucho.network.listen.TcpSocketLink.handleRequ est(TcpSocketLink.java:1302)
com.caucho.network.listen.TcpSocketLink.handleRequ estsImpl(TcpSocketLink.java:1286)
com.caucho.network.listen.TcpSocketLink.handleRequ ests(TcpSocketLink.java:1194)
com.caucho.network.listen.TcpSocketLink.handleAcce ptTaskImpl(TcpSocketLink.java:993)
com.caucho.network.listen.ConnectionTask.runThread (ConnectionTask.java:117)
com.caucho.network.listen.ConnectionTask.run(Conne ctionTask.java:93)
com.caucho.network.listen.SocketLinkThreadLauncher .handleTasks(SocketLinkThreadLauncher.java:169)
com.caucho.network.listen.TcpSocketAcceptThread.ru n(TcpSocketAcceptThread.java:61)
com.caucho.env.thread2.ResinThread2.runTasks(Resin Thread2.java:173)
com.caucho.env.thread2.ResinThread2.run(ResinThrea d2.java:118)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:35 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.