When using proxy plugin, it can not send request to backend server and shows error:
No backend server available for connection: timed out after 10 seconds or idempotent set to OFF

 Check plugin log, it shows error:

Mon Oct 15 19:39:21 2012 <610013502903531> parseJVMID: Parsing JVMID '2032779470!ede-dev-app!7813!7713'
Mon Oct 15 19:39:21 2012 <610013502903531> parseJVMID: Actually parsing '2032779470!ede-dev-app!7813!7713'
Mon Oct 15 19:39:21 2012 <610013502903531> parseJVMID: could not resolve hostname 'ede-dev-app'. Returning NULL from parseJVMID
Mon Oct 15 19:39:21 2012 <610013502903531> ### Got a new Server List of length 0 ###
Mon Oct 15 19:39:21 2012 <610013502903531> canRecycle: conn=1 status=200 isKA=1 clen=356 isCTE=0
Mon Oct 15 19:39:21 2012 <610013502903531> closeConn: pooling for '10.136.140.21/7813'
Mon Oct 15 19:39:21 2012 <610013502903531> closeConn: cannot recycle connection to '10.136.140.21/7813', no matching entry in list!

In config.xml, it defines listen address as DNSname, like:

 <server>
   <name>maKa0201</name>
   .......
   <machine>ede-dev-app</machine>
   <listen-port>7813</listen-port>
   <cluster>caKa02</cluster>
    ......
   <listen-address>ede-dev-app</listen-address>
    .......
 </server>
 Or it defines cluster address as comma-separated list of DNS names of the cluster members, like:



<cluster>
   ....
   <cluster-address>ede-dev-app:8001,ede-dev-app:8002</cluster-address>
   ....
 </cluster>
 In http.conf, it defines WebLogicCluster to numeric IP, like

<LocationMatch "/ffservices/">
Order Allow,Deny
Allow from all
SetHandler weblogic-handler
WebLogicCluster 10.136.140.21:7812,10.136.140.21:7813
Debug ALL
DebugConfigInfo ON
WLLogFile /web/app/logs/http-wlproxy.log
</LocationMatch>

Cause

 Plugin WebLogicCluster was defined by using numeric IP, while server listen address was defined by using DNS. When Proxy plugin get DNS server list from backend server, it could not resolve hostname.

Solution

 1. Add numeric IP /DNS name mapping in host list (/etc/hosts) for Apache machine.
 Or
2. Change weblogic server listen address/Cluster address from DNSname to numeric IP.
 Or
3. Qualify the DNS name by DNSserver.

0 Comments