2015-03-25 125 views
0

我試圖從Java連接Cognos 10.2.1並獲取報告。我得到下面的錯誤。每次運行java代碼時都不會發生這種情況。 日誌還說,試圖獲取cognos端口的java代碼是拋出錯誤。有人請幫忙!無法從java連接Cognos 10.2.1

faultCode: Client 
faultSubcode: 
faultString: CM-REQ-4342 An error occurred with the client. 
faultActor: 
faultNode: 
faultDetail: 
{http://developer.cognos.com/schemas/bibus/3/}exception: 
<severity>error</severity> 
<errorCode>caf</errorCode> 
<ns1:message> 
<messageString>CM-CAM-4005 Unable to authenticate. Check your security directory server connection and confirm the credentials entered at login.</messageString> 
<detail> 
<exception xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="bus:CAMException"> 
<severity xsi:type="bus:severityEnum">error</severity> 
<errorCode>-38</errorCode> 
<errorCodeString xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace" xsi:type="xsd:string">camAuthUnrecoverable</errorCodeString> 
<messages soapenc:arrayType="bus:message[1]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="SOAP-ENC:Array"> 
<item xsi:type="bus:message"> 
<messageString xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace" xsi:type="xsd:string">com.openpages.security.auth.AuthenticationException: 500:Login failed with response 500</messageString> 
</item> 
</messages> 
<promptInfo xsi:type="bus:promptInfo"> 
<captions soapenc:arrayType="xsd:string[1]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="SOAP-ENC:Array"> 
    <item xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace"  xsi:type="xsd:string">com.openpages.security.auth.AuthenticationException: 500:Login failed with response 500</item> 
    </captions> 
    </promptInfo> 
    </exception> 
    </detail> 

在此先感謝。

回答

0

這是相當不言自明的。您需要根據您的名稱空間進行身份驗證,或啓用匿名訪問。