Bug 32998 - Error in communication between Apache and Tomcat through AJP
Summary: Error in communication between Apache and Tomcat through AJP
Status: RESOLVED WONTFIX
Alias: None
Product: Tomcat Connectors
Classification: Unclassified
Component: Common (show other bugs)
Version: unspecified
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-07 21:15 UTC by Nitin Sood
Modified: 2008-10-05 03:08 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin Sood 2005-01-07 21:15:56 UTC
We are using Apache version 2.0.46 with Tomcat version 4.1.29. The name of web 
server is TAAPPST1.xpn.xerox.com and the ajp connector is configured on port 
8009. Apache is running on port 80 and Tomcat is running on port 8080.

Apache hangs on irregular intervals and it needs to be restarted.

Here are the errors visible in Apache error logs:-

[Thu Dec 16 13:14:38 2004] [error] workerEnv.processCallbacks() Error reading 
reply 
[Thu Dec 16 13:14:38 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000 
[Thu Dec 16 13:14:38 2004] [error] Error ajp_process_callback - write failed 
[Thu Dec 16 13:14:38 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3 
[Thu Dec 16 13:14:38 2004] [error] Error ajp_process_callback - write failed 
[Thu Dec 16 13:14:38 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3 
[Thu Dec 16 13:14:38 2004] [error] ajp13.service() Error  forwarding 
ajp13:taappst1.xpn.xerox.com:8009 1 0 
[Thu Dec 16 13:14:38 2004] [error] mod_jk.handler() Error connecting to tomcat 
3 
[Thu Dec 16 13:14:38 2004] [error] Error ajp_process_callback - write failed 
[Thu Dec 16 13:14:38 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3 
[Thu Dec 16 13:14:38 2004] [error] Error ajp_process_callback - write failed 
[Thu Dec 16 13:14:38 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3 
[Thu Dec 16 13:14:38 2004] [error] ajp13.service() Error  forwarding 
ajp13:taappst1.xpn.xerox.com:8009 1 0 
[Thu Dec 16 13:14:38 2004] [error] mod_jk.handler() Error connecting to tomcat 
3 
[Thu Dec 16 13:15:36 2004] [error] channelSocket.receive(): Error receiving 
message body -1 0 
[Thu Dec 16 13:15:36 2004] [error] workerEnv.processCallbacks() Error reading 
reply 
[Thu Dec 16 13:15:36 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000 
[Thu Dec 16 13:15:37 2004] [error] channelSocket.receive(): Error receiving 
message body -1 0 
[Thu Dec 16 13:15:37 2004] [error] workerEnv.processCallbacks() Error reading 
reply 
[Thu Dec 16 13:15:37 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000 
[Thu Dec 16 13:15:37 2004] [error] Error ajp_process_callback - write failed 
[Thu Dec 16 13:15:37 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3 
[Thu Dec 16 13:15:37 2004] [error] Error ajp_process_callback - write failed 
[Thu Dec 16 13:15:37 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3 
[Thu Dec 16 13:15:37 2004] [error] ajp13.service() Error  forwarding 
ajp13:taappst1.xpn.xerox.com:8009 1 0 
[Thu Dec 16 13:15:37 2004] [error] mod_jk.handler() Error connecting to tomcat 
3 
[Thu Dec 16 13:15:37 2004] [error] Error ajp_process_callback - write failed 
[Thu Dec 16 13:15:37 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3 
[Thu Dec 16 13:15:37 2004] [error] Error ajp_process_callback - write failed 
[Thu Dec 16 13:15:37 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3 
[Thu Dec 16 13:15:37 2004] [error] ajp13.service() Error  forwarding 
ajp13:taappst1.xpn.xerox.com:8009 1 0 
[Thu Dec 16 13:15:37 2004] [error] mod_jk.handler() Error connecting to tomcat 
3 
[Thu Dec 16 13:21:06 2004] [error] ajp13.service() Error sending initial post -
1 0 0
Comment 1 Nitin Sood 2005-01-07 23:42:51 UTC
For another customer running on Solaris server also, we are getting similar 
errors.

The configuration of this server is :


Apache: 2.0.48 
JDK:  j2sdk1.4.1_05 
Tomcat:  jakarta-tomcat-4.1.27 

Here also the restart of Apache, Tomcat was required to solve the issue

[Wed May 05 17:28:10 2004] [notice] caught SIGTERM, shutting down
[Wed May 05 17:28:16 2004] [error] env.createBean2(): Error getting factory for 
[level] (null)
[Wed May 05 17:28:16 2004] [error] config.update(): Can't create level
[Wed May 05 17:28:16 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.2 
configured -- resuming normal operations
[Wed May 05 17:28:16 2004] [error] mod_jk child init 1 0
[Wed May 05 17:41:53 2004] [error] [client 172.30.240.20] File does not 
exist: /myapps/employ4/apache/htdocs/emlpoy4
[Wed May 12 19:23:02 2004] [error] channelSocket.receive(): Error receiving 
message body -1 131
[Wed May 12 19:23:02 2004] [error] workerEnv.processCallbacks() Error reading 
reply
[Wed May 12 19:23:02 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000
[Wed May 12 19:23:20 2004] [error] channelSocket.receive(): Error receiving 
message body -1 131
[Wed May 12 19:23:20 2004] [error] workerEnv.processCallbacks() Error reading 
reply
[Wed May 12 19:23:20 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000
[Wed May 12 19:23:20 2004] [error] channelSocket.open() connect failed 
172.27.204.44:8009 146 Connection refused 
[Wed May 12 19:23:20 2004] [error] ajp13.connect() failed 
ajp13:172.27.204.44:8009
[Wed May 12 19:23:20 2004] [error] ajp13.service() failed to connect endpoint 
errno=146 Connection refused
[Wed May 12 19:23:20 2004] [error] ajp13.service() Error  forwarding 
ajp13:172.27.204.44:8009 1 1
[Wed May 12 19:23:20 2004] [error] mod_jk.handler() Error connecting to tomcat 
120000
[Wed May 12 19:40:07 2004] [error] channelSocket.open() connect failed 
172.27.204.44:8009 146 Connection refused 
[Wed May 12 19:40:07 2004] [error] ajp13.connect() failed 
ajp13:172.27.204.44:8009
[Wed May 12 19:40:07 2004] [error] ajp13.service() failed to connect endpoint 
errno=146 Connection refused
[Wed May 12 19:40:07 2004] [error] ajp13.service() Error  forwarding 
ajp13:172.27.204.44:8009 1 1
[Wed May 12 19:40:07 2004] [error] mod_jk.handler() Error connecting to tomcat 
120000
[Wed May 12 19:40:09 2004] [error] channelSocket.open() connect failed 
172.27.204.44:8009 146 Connection refused 
[Wed May 12 19:40:09 2004] [error] ajp13.connect() failed 
ajp13:172.27.204.44:8009
[Wed May 12 19:40:09 2004] [error] ajp13.service() failed to connect endpoint 
errno=146 Connection refused
[Wed May 12 19:40:09 2004] [error] ajp13.service() Error  forwarding 
ajp13:172.27.204.44:8009 1 1
[Wed May 12 19:40:09 2004] [error] mod_jk.handler() Error connecting to tomcat 
120000
[Wed May 12 19:40:11 2004] [error] channelSocket.open() connect failed 
172.27.204.44:8009 146 Connection refused 
[Wed May 12 19:40:11 2004] [error] ajp13.connect() failed 
ajp13:172.27.204.44:8009
[Wed May 12 19:40:11 2004] [error] ajp13.service() failed to connect endpoint 
errno=146 Connection refused
[Wed May 12 19:40:11 2004] [error] ajp13.service() Error  forwarding 
ajp13:172.27.204.44:8009 1 1
[Wed May 12 19:40:11 2004] [error] mod_jk.handler() Error connecting to tomcat 
120000
[Wed May 12 19:40:40 2004] [error] channelSocket.open() connect failed 
172.27.204.44:8009 146 Connection refused 
[Wed May 12 19:40:40 2004] [error] ajp13.connect() failed 
ajp13:172.27.204.44:8009
[Wed May 12 19:40:40 2004] [error] ajp13.service() failed to connect endpoint 
errno=146 Connection refused
[Wed May 12 19:40:40 2004] [error] ajp13.service() Error  forwarding 
ajp13:172.27.204.44:8009 1 1
[Wed May 12 19:40:40 2004] [error] mod_jk.handler() Error connecting to tomcat 
120000
[Wed May 12 19:43:49 2004] [error] channelSocket.receive(): Error receiving 
message body -1 131
[Wed May 12 19:43:49 2004] [error] workerEnv.processCallbacks() Error reading 
reply
[Wed May 12 19:43:49 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000
[Wed May 12 19:44:06 2004] [error] channelSocket.receive(): Error receiving 
message body -1 131
[Wed May 12 19:44:06 2004] [error] workerEnv.processCallbacks() Error reading 
reply
[Wed May 12 19:44:06 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000
[Wed May 12 19:44:06 2004] [error] Error ajp_process_callback - write failed
[Wed May 12 19:44:06 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3
[Wed May 12 19:44:06 2004] [error] Error ajp_process_callback - write failed
[Wed May 12 19:44:06 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3
[Wed May 12 19:44:06 2004] [error] ajp13.service() Error  forwarding 
ajp13:172.27.204.44:8009 1 0
[Wed May 12 19:44:06 2004] [error] mod_jk.handler() Error connecting to tomcat 3
[Wed May 12 19:44:15 2004] [error] Error ajp_process_callback - write failed
[Wed May 12 19:44:15 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3
[Wed May 12 19:44:15 2004] [error] Error ajp_process_callback - write failed
[Wed May 12 19:44:15 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3
[Wed May 12 19:44:15 2004] [error] ajp13.service() Error  forwarding 
ajp13:172.27.204.44:8009 1 0
[Wed May 12 19:44:15 2004] [error] mod_jk.handler() Error connecting to tomcat 3
[Wed May 12 19:44:17 2004] [error] Error ajp_process_callback - write failed
[Wed May 12 19:44:17 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3
[Wed May 12 19:44:17 2004] [error] Error ajp_process_callback - write failed
[Wed May 12 19:44:17 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3
[Wed May 12 19:44:17 2004] [error] ajp13.service() Error  forwarding 
ajp13:172.27.204.44:8009 1 0
[Wed May 12 19:44:17 2004] [error] mod_jk.handler() Error connecting to tomcat 3
[Thu May 13 08:15:43 2004] [error] channelSocket.open() connect failed 
172.27.204.44:8009 146 Connection refused 
[Thu May 13 08:15:43 2004] [error] ajp13.connect() failed 
ajp13:172.27.204.44:8009
[Thu May 13 08:15:43 2004] [error] ajp13.service() failed to connect endpoint 
errno=146 Connection refused
[Thu May 13 08:15:43 2004] [error] ajp13.service() Error  forwarding 
ajp13:172.27.204.44:8009 1 1
[Thu May 13 08:15:43 2004] [error] mod_jk.handler() Error connecting to tomcat 
120000
[Thu May 13 08:16:01 2004] [error] [client 172.30.21.204] File does not 
exist: /myapps/employ4/apache/htdocs/favicon.ico
[Thu May 13 10:37:19 2004] [error] channelSocket.open() connect failed 
172.27.204.44:8009 146 Connection refused 
[Thu May 13 10:37:19 2004] [error] ajp13.connect() failed 
ajp13:172.27.204.44:8009
[Thu May 13 10:37:19 2004] [error] ajp13.service() failed to connect endpoint 
errno=146 Connection refused
[Thu May 13 10:37:19 2004] [error] ajp13.service() Error  forwarding 
ajp13:172.27.204.44:8009 1 1
[Thu May 13 10:37:19 2004] [error] mod_jk.handler() Error connecting to tomcat 
120000
[Thu May 13 10:57:47 2004] [error] Error ajp_process_callback - write failed
[Thu May 13 10:57:47 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3
[Thu May 13 10:57:47 2004] [error] Error ajp_process_callback - write failed
[Thu May 13 10:57:47 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3
[Thu May 13 10:57:47 2004] [error] ajp13.service() Error  forwarding 
ajp13:172.27.204.44:8009 1 0
[Thu May 13 10:57:47 2004] [error] mod_jk.handler() Error connecting to tomcat 3
[Fri May 14 04:37:35 2004] [error] channelSocket.receive(): Error receiving 
message body -1 131
[Fri May 14 04:37:35 2004] [error] workerEnv.processCallbacks() Error reading 
reply
[Fri May 14 04:37:35 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000
[Fri May 14 04:37:37 2004] [error] channelSocket.receive(): Error receiving 
message body -1 131
[Fri May 14 04:37:37 2004] [error] workerEnv.processCallbacks() Error reading 
reply
[Fri May 14 04:37:37 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000
[Fri May 14 09:52:12 2004] [error] channelSocket.receive(): Error receiving 
message body -1 131
[Fri May 14 09:52:12 2004] [error] workerEnv.processCallbacks() Error reading 
reply
[Fri May 14 09:52:12 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000
[Fri May 14 09:53:27 2004] [error] channelSocket.receive(): Error receiving 
Comment 2 Justin Prosser 2005-01-20 01:51:37 UTC
I see this for connections made to Apache after restarting Tomcat but not restarting Apache.  They 
resolve shortly after Tomcat is up and running again.  A restart (graceful) of Apache also immediately 
clears the errors.  This is with Apache 1.3.33, mod_jk 1.2.8, Tomcat 5.5.4.
Comment 3 Mladen Turk 2005-03-17 13:12:29 UTC
Those are all related to mod_jk2.
mod_jk2 is not supported any more, please use mod_jk.