tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42347] - getParameter does not return parameter value when submitted as post method occassionally
Date Mon, 07 Jan 2008 16:14:20 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42347>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42347


brido02@ca.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




------- Additional Comments From brido02@ca.com  2008-01-07 08:14 -------
we are on 5.5.20 and are still seeing this not work in some cases.

In the example below the call that fails is 
"common/attrConfig/derived2?id=66644",
Ive included surrounding calls for compelteness. The debug on the client is 
also the only place on the client "derived2" is called (it was renamed to 
ensure this fact).

I dont have a solid reproduction, but Ive found if I tax the CPU to 100% I can 
see this occur somewhat "more" offen. Clearly a threading issue. I was able to 
get a trace when this failed which might offer some help on the path taken.

Requesting client (expecting a MtypeProperties[], but got a Map)

Mon Jan 07 10:37:46 EST 2008: AWT-EventQueue-0: requesting path = 
common/attrConfig/derived2?id=12845175
Mon Jan 07 10:37:46 EST 2008: AWT-EventQueue-0: requesting path = 
common/attrConfig/derived2?id=66644
Jan 7, 2008 10:37:46 AM - ClientAttributeConfig.getDerivedMtypesInt failed:
java.lang.ClassCastException: java.util.HashMap cannot be cast to 
[Lcom.aprisma.spectrum.app.util.attribute.MtypeProperties;
Mon Jan 07 10:37:46 EST 2008: AWT-EventQueue-0: requesting path = 
common/attrConfig/derived2?id=66102


AttributeConfigServlet.java (sends a Map on null "id")

            else if ( servletPath.endsWith ( "derived2" ) )
            {
                String mtypeIDStr = request.getParameter ( "id" ) ;

System.out.println( (new Date()).toString() + ": " + 
       Thread.currentThread().getName() + ": mtypeIDStr = " + mtypeIDStr );

                if ( mtypeIDStr != null && mtypeIDStr.length () > 0 )
                {
                    // response is a MtypeProperties[]
                }
                else
                {
                    // response is a Map
                }

if ( mtypeIDStr == null )
{
   new Exception().printStackTrace();
}
             }


localhost_access_log.2008-01-07.txt (with format '%h %l %u %t "%r" %s %b')
(clearly see a id=66644, but sends a large value back 29199)

138.42.248.45 - brido02 [07/Jan/2008:10:37:45 -0500] 
"GET /spectrum/common/attrConfig/derived2?id=12845175 HTTP/1.1" 200 253
138.42.248.45 - brido02 [07/Jan/2008:10:37:45 -0500] 
"GET /spectrum/common/attrConfig/derived2?id=66644 HTTP/1.1" 200 29199
138.42.248.45 - brido02 [07/Jan/2008:10:37:45 -0500] 
"GET /spectrum/common/attrConfig/derived2?id=66102 HTTP/1.1" 200 375


catalina.out

Mon Jan 07 10:37:46 EST 2008: http-80-Processor22: mtypeIDStr = 12845175
Mon Jan 07 10:37:46 EST 2008: http-80-Processor21: mtypeIDStr = null
java.lang.Exception
        at com.aprisma.spectrum.app.web.servlet.AttributeConfigServlet.doGet
(AttributeConfigServlet.java:159)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:524)
        at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
        at org.apache.catalina.valves.FastCommonAccessLogValve.invoke
(FastCommonAccessLogValve.java:495)
        at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn
ection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:619)
Mon Jan 07 10:37:46 EST 2008: http-80-Processor21: mtypeIDStr = 66102

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message