Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 73153 invoked from network); 7 Jan 2008 16:14:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jan 2008 16:14:51 -0000 Received: (qmail 4698 invoked by uid 500); 7 Jan 2008 16:14:33 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 4651 invoked by uid 500); 7 Jan 2008 16:14:33 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 4640 invoked by uid 500); 7 Jan 2008 16:14:33 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 4637 invoked by uid 99); 7 Jan 2008 16:14:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2008 08:14:33 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2008 16:14:29 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id AAD3F71420E; Mon, 7 Jan 2008 08:14:20 -0800 (PST) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 42347] - getParameter does not return parameter value when submitted as post method occassionally In-Reply-To: X-Bugzilla-Reason: AssignedTo Message-Id: <20080107161420.AAD3F71420E@brutus.apache.org> Date: Mon, 7 Jan 2008 08:14:20 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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