2013-02-19 101 views
0

在一些我們的服務器,我們試圖訪問高級選項卡中的連接池頁面上的Glassfish(3.1.2(建立23))Glassfish的,JDBC連接池高級選項卡丟錯誤

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的聽衆,如果

class java.lang.RuntimeException 

不知道他們是相關的還是兩個獨立的問題SSL選項卡

我的錯誤在第一個問題中使用錯誤號進行了搜索,我發現的唯一一件事是從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之間的任何其他變化,改變一個其他沒有什麼區別。 在日誌文件中似乎沒有任何東西,所以我不確定在哪裏繼續尋找,或者我應該尋找什麼樣的東西。

回答

0

看起來問題是由安裝腳本(我們寫的)沒有清理現有安裝引起的。 這個問題只發生在我們試圖在現有玻璃魚的頂部安裝更新版本的glassfish。我們的安裝腳本在安裝新軟件包之前並未刪除舊的glassfish目錄,這是導致問題的原因