2016-05-10 35 views
1

我最近爲WebSphere應用程序實現了LTPA(LDAP)身份驗證。因爲我已經看到試圖使Web服務調用的端點在不同的域時出現以下錯誤:無法反序列化此上下文中的主題,原因:SecurityName爲null

<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
<soapenv:Fault> 
    <faultcode>soapenv:Server</faultcode> 
    <faultstring>java.io.IOException: Unable to deserialize the Subjects in this Context, cause: SecurityName is null</faultstring> 
</soapenv:Fault> 

錯誤是間歇性的,迄今我還沒有能夠可靠地重現它。 網上有類似的問題記錄,但這些似乎提供了一些關於給出的錯誤的更多信息 - 我一直無法找到任何關於這個特定錯誤的信息。

任何人都可以提出什麼問題可能在這裏?

回答

0

這裏的問題其實很簡單。錯誤消息Unable to deserialize the Subjects in this Context, cause: SecurityName is null意味着WebSphere試圖反序列化先前保存的安全上下文。該過程失敗,因爲使用LTPA令牌進行認證需要參數,如SecurityName。此錯誤消息也應記錄在SystemOut.log文件中,通常間隔爲1或2分鐘。

正確解決錯誤需要有關您的服務器環境的更多信息。假設它是WAS-ND設置,可以關閉節點並使用syncNode.sh命令手動同步配置。這應該可以解決問題。

相關問題