Hi, We have recently migrated from WebObjects 5.2.3 (Apache 1.3) to 5.4 (Apache 2.2) and have run into WebObjects 500 errors.
I started getting 'Amount Read didn’t match content-length' errors intermittently in web instance log, and this results in a 'Page Can not be displayed' error on the web browser. This happens randomly on various pages when a link/submit/cancel buttons are clicked...and can be recreated (although not in same number of steps) by going to those pages and clicking on various links. After going through some topics that talk about similar issues I changed the configuration settings as follows. 1. Retries = 4 (I've tried values like 10,20 but does not seems to make much of a difference) 2. Connection pool size = 0 3. Send, recv, conn timeout = 100,300, 100 (started out with 30,60,30 and gradually increased it as it seemed to have reduced the frequency of the error) 4. Send/Recv buffers = 120000/120000 (again started with 64000 but increased it as it reduced the frequency of the error) 5. Dormant = 0 6. Load balancing scheme = Load Average (Have tried all options including 'Default') 7. Life Beat Interval = 30 I've even tried the code fixes (related to handling malformed cookies) suggested by Chuck Hill/Ricardo. The pages are not large in size and do not use WOUpload. I have even got the errors when I wait a few seconds after the page loads (and sleep messages are logged in the web instance log) and then click on any links/buttons. Please let me know if you have any suggestions/solutions. Environment: WebObjects 5.4 JDK : 1.5 OS: Solaris 10 Web server: Apache 2.2.11 WebObjects HTTP adaptor version: 4.5.1 I have 5 instances configured but am only running instance 2. Web instance Log: ------------------------------------ [2009-3-18 15:2:36 CDT] <WorkerThread0> <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request: com.webobjects.foundation.NSForwardException [java.io.IOException] Connection reset by peer: Amount read didn't match content-length:java.io.IOException: Connection reset by peer: Amount read didn't match content-length [2009-3-18 15:2:36 CDT] <WorkerThread0> com.webobjects.foundation.NSForwardException [java.io.IOException] Connection reset by peer: Amount read didn't match content-length:java.io.IOException: Connection reset by peer: Amount read didn't match content-length at com.webobjects.appserver._private.WOInputStreamData._extractBytesFromInputStream(WOInputStreamData.java:128) at com.webobjects.appserver._private.WOInputStreamData.bytesNoCopy(WOInputStreamData.java:147) at com.webobjects.foundation.NSData._bytesNoCopy(NSData.java:506) at com.webobjects.appserver.WOMessage.contentString(WOMessage.java:735) at com.webobjects.appserver.WORequest.getFormValuesFromURLEncoding(WORequest.java:1252) at com.webobjects.appserver.WORequest.formValues(WORequest.java:1343) at com.webobjects.appserver.WORequest._hasFormValues(WORequest.java:1182) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:198) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332) at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369) at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1678) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:595) Caused by: java.io.IOException: Connection reset by peer: Amount read didn't match content-length at com.webobjects.appserver._private.WONoCopyPushbackInputStream.read(WONoCopyPushbackInputStream.java:174) at com.webobjects.appserver._private.WOInputStreamData._extractBytesFromInputStream(WOInputStreamData.java:114) ... 15 more ------------------------------------ WebObjects.log contents: ------------------------------------ Info: Sending request to instance number 2, port 2002 Info: Trying to contact Web:2 on (2002) Info: attempting to connect to myservername on port 2002 Info: Web:2 on (2002) connected [pooled: No] Error: sendBuffers(): send error: Invalid argument Error: error sending request Error: Failed to send request Info: Marking instance 2 dead Warn: Marking myservername:2 unresponsive Debug: connectionAttempts = 1, retries = 4 Info: Reading configuration from http://myservername:1085/WebObjects/wotaskd.woa/wa/woconfig Info: attempting to connect to myservername on port 1085 Info: Preparing to read config for host: myservername Info: New response: HTTP/1.0 200 Apple WebObjects Info: loadaverage: could not select instance Info: tr_selectInstance(): scheduler failed to select instance. Info: No new instance located for failover Error: Request handling error: No instance available Debug: <WebObjects Apache Module> new translate: /woapp/WebObjects/Web Info: <WebObjects Apache Module> new request: /woapp/WebObjects/Web Debug: App Name: Web (3) Info: V4 URL: /woapp/WebObjects/Web Info: loadaverage: selected instance at index 1 Info: Selected new app instance at index 1 Debug: Composed URL to '/woapp/WebObjects/Web.woa/2' Info: New request is GET /woapp/WebObjects/Web.woa/2 HTTP/1.1 Info: Sending request to instance number 2, port 2002 Info: Trying to contact Web:2 on (2002) Info: attempting to connect to myservername on port 2002 Info: Web:2 on (2002) connected [pooled: No] Info: Request GET /woapp/WebObjects/Web.woa/2 HTTP/1.1 sent, awaiting response Debug: ac_readConfiguration(): skipped reading config Info: New response: HTTP/1.1 200 Apple WebObjects Info: Web 2 load avg = 6 Info: received ->200 Apple ------------------------------------ Thanks for any help you can give. Thanks and Regards, Mukesh. _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-deploy mailing list (Webobjects-deploy@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com This email sent to arch...@mail-archive.com