BonCode Connector, IIS 7.5 & Tomcat 8, Intermittent Generic Connector Error
<p>I have a JSP web-app hosted on IIS 7.5 &amp; Tomcat 8.0.30 via BonCode AJP13 v1.0.26 on Win 2008 R2 64 bit.</p>

<p>On the production environment, some users are getting an intermittent BonCode error:</p>

<pre><code>Generic Connector Error: Please check...
</code></pre>

<p>Has anyone got a known working configuration for BonCode 1.0.26, IIS 7.5 &amp; Tomcat 8?</p>

<p><strong>Details</strong></p>

<p>The users affected seem to be roaming laptops and home-workers that connect via a VPN
ie desktops seem unaffected.</p>

<p>There is no authentication on Tomcat / JSP web-app.</p>

<p>A single instance of Tomcat is on the same server as IIS 7.5.
ie no load-balancing etc.</p>

<p>Only plain HTTP is being used
ie not HTTPS and no associated certificates.</p>

<p><strong>Client Diagnosis</strong></p>

<ul>
<li>IE 11 Developer Tools > Network</li>
</ul>

<p>shows the generation of a HTTP 502.</p>

<ul>
<li>Fiddler</li>
</ul>

<p>shows the generation of a HTTP 502.</p>

<p><strong>Server Diagnosis</strong></p>

<ul>
<li>BonCode logs</li>
</ul>

<p>Occasionally, this is seen:</p>

<pre><code>2016-02-29 15:59:01 1.0.26 ERROR 
TCP Client level -- Server/Port:localhost/8009
Value cannot be null.
Parameter name: buffer
2016-02-29 15:59:01 One Connection raised an error
</code></pre>

<p>but usually, no related errors / warnings are being shown</p>

<ul>
<li>IIS Failed Trace Requests</li>
</ul>

<p>shows the generation of a HTTP 502 in module ‘ManagedPipelineHandler’.</p>

<ul>
<li>Tomcat logs</li>
</ul>

<p>no errors, as expected as servlet/JSP requests are not being forwarded.</p>

<p><strong>Configuration Files</strong></p>

<p>BonCode - BonCodeAJP13.settings</p>

<pre><code>&lt;Settings&gt;
  &lt;Port&gt;8009&lt;/Port&gt;
  &lt;Server&gt;localhost&lt;/Server&gt;   
  &lt;MaxConnections&gt;0&lt;/MaxConnections&gt;
  &lt;LogLevel&gt;4&lt;/LogLevel&gt;
  &lt;LogDir&gt;E:\inetpub\logs\BonCode&lt;/LogDir&gt;
  &lt;FlushThresholdTicks&gt;0&lt;/FlushThresholdTicks&gt;
  &lt;EnableRemoteAdmin&gt;False&lt;/EnableRemoteAdmin&gt;
  &lt;PacketSize&gt;65536&lt;/PacketSize&gt;
&lt;/Settings&gt;
</code></pre>

<p>Tomcat - server.xml</p>

<pre><code>...
&lt;Connector port="8009" protocol="AJP/1.3" redirectPort="8443" 
           packetSize="65536" /&gt;
...
</code></pre>

<p><strong>Notes</strong></p>

<p>I am aware that, as well as BonCode, there are these other connector options:</p>

<ul>
<li>Tomcat ISAPI</li>
<li>IIS ARR</li>
</ul>

<p>If we get no joy with BonCode, we will probably try IIS ARR next.</p>

<p>Thanks for reading.</p>