title: Glassfish, JDBC Connection pool advanced tab throwing error
body: <p>On some of our servers, we are getting errors when trying to access the advanced tab on the connection pools page in Glassfish (3.1.2 (build 23))</p>
  
  <pre><code>type Exception report
  
  message
  descriptionThe server encountered an internal error () that prevented it from 
  fulfilling this request.
  
  exception
  java.lang.IllegalStateException: PWC3991: getOutputStream() has already been called for 
  this response note The full stack traces of the exception and its root causes are 
  available in the GlassFish Server Open Source Edition 3.1.2 logs.
  </code></pre>
  
  <p>We are also getting errors on the SSL tab of the http-listeners in default or server config</p>
  
  <pre><code>class java.lang.RuntimeException
  </code></pre>
  
  <p>Not sure if they are related or 2 seperate problems</p>
  
  <p>I did a search using the error number in the first problem and the only thing I found was a guy that was updating from glassfish 2 to glassfish 3 and some jvm property wasn't migrated automatically. We aren't doing any upgrades, so I didn't think it was that, but I added it anyway and it didn't make a difference.</p>
  
  <p>The other strange thing is that we have other servers that have no problems. They are basically the same setup, the only difference that I can see is that it works on the servers that are multi-server setups, and don't work on the servers where we have everything on one box (and just to clarify in both scenarios, glassfish only exists on one box, it is only that in the multi server setup, the DB, and services are on different machines from the glassfish)</p>
  
  <p>I have tried copying the domain.xml from a working server and it doesn't make any difference.
  The only changes were:</p>
  
  <p>Not working version</p>
  
  <pre><code>&lt;protocol name="http-listener-1"&gt;
     &lt;http timeout-seconds="250" default-virtual-server="server" max-connections="10000" 
      &lt;compressable-mime-type="text/html,text/xml,text/plain,application/json"&gt;
      file-cache enabled="true"&gt;&lt;/file-cache&gt;
     &lt;/http&gt;
     &lt;ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname=""&gt;    
     &lt;/ssl&gt;
  &lt;/protocol&gt;
  </code></pre>
  
  <p>working version</p>
  
  <pre><code>&lt;protocol name="http-listener-1"&gt;
    &lt;http timeout-seconds="250" default-virtual-server="server" max-connections="10000" 
       compressable-mime-type="text/html,text/xml,text/plain,application/json"&gt;
       &lt;file-cache enabled="true"&gt;&lt;/file-cache&gt;
    &lt;/http&gt;
  &lt;/protocol&gt;
  </code></pre>
  
  <p>and </p>
  
  <p>not working</p>
  
  <pre><code>&lt;secure-admin enabled="true" special-admin-indicator="aaaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa"&gt;
  &lt;secure-admin-principal dn="CN=&lt;hostname&gt;,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"&gt;&lt;/secure-admin-principal&gt;
  &lt;secure-admin-principal dn="CN=&lt;hostname&gt;-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"&gt;&lt;/secure-admin-principal&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;secure-admin enabled="true" special-admin-indicator="aaaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa"&gt;
  secure-admin-principal dn="CN=&lt;other_host&gt;,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"&gt;&lt;/secure-admin-principal&gt;
  &lt;secure-admin-principal dn="CN=&lt;other-host&gt;-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"&gt;&lt;/secure-admin-principal&gt;
  </code></pre>
  
  <p></p>
  
  <p>I can't see any other changes between the two domain.xmls, and changing one to the other made no difference. 
  There doesn't appear to be anything in the log files, so I am unsure where to continue looking, or what kind of things I should be looking for.</p>