0

在我们的某些服务器上,尝试访问 Glassfish(3.1.2(内部版本 23))中连接池页面上的高级选项卡时出现错误

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.

我们还在默认或服务器配置中的 http-listeners 的 SSL 选项卡上收到错误

class java.lang.RuntimeException

不确定它们是否相关或 2 个单独的问题

我使用第一个问题中的错误号进行了搜索,唯一发现的是一个正在从 glassfish 2 更新到 glassfish 3 的人,并且某些 jvm 属性没有自动迁移。我们没有进行任何升级,所以我不认为是这样,但我还是添加了它,它没有任何区别。

另一个奇怪的事情是我们有其他没有问题的服务器。它们基本上是相同的设置,我能看到的唯一区别是它适用于多服务器设置的服务器,并且不适用于我们将所有东西放在一个盒子上的服务器(并且只是为了澄清两者场景,glassfish 仅存在于一个盒子上,只是在多服务器设置中,数据库和服务位于 glassfish 不同的机器上)

我尝试从工作服务器复制 domain.xml 并没有任何区别。唯一的变化是:

不工作版本

<protocol name="http-listener-1">
   <http timeout-seconds="250" default-virtual-server="server" max-connections="10000" 
    <compressable-mime-type="text/html,text/xml,text/plain,application/json">
    file-cache enabled="true"></file-cache>
   </http>
   <ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="">    
   </ssl>
</protocol>

工作版

<protocol name="http-listener-1">
  <http timeout-seconds="250" default-virtual-server="server" max-connections="10000" 
     compressable-mime-type="text/html,text/xml,text/plain,application/json">
     <file-cache enabled="true"></file-cache>
  </http>
</protocol>

不工作

<secure-admin enabled="true" special-admin-indicator="aaaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa">
<secure-admin-principal dn="CN=<hostname>,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"></secure-admin-principal>
<secure-admin-principal dn="CN=<hostname>-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"></secure-admin-principal>

<secure-admin enabled="true" special-admin-indicator="aaaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa">
secure-admin-principal dn="CN=<other_host>,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"></secure-admin-principal>
<secure-admin-principal dn="CN=<other-host>-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"></secure-admin-principal>

我看不到两个 domain.xmls 之间的任何其他更改,将一个更改为另一个没有任何区别。日志文件中似乎没有任何内容,所以我不确定在哪里继续寻找,或者我应该寻找什么样的东西。

4

1 回答 1

0

看起来问题是由安装脚本(我们编写的)没有清理现有安装引起的。仅当我们尝试在现有版本之上安装更新版本的 glassfish 时,才会出现该问题。我们的安装脚本在安装新软件包之前没有删除旧的 glassfish 目录,这是导致问题的原因

于 2013-03-20T11:10:20.613 回答