我正在尝试从Java连接cognos 10.2.1并获取报告。我得到以下错误。每次运行java代码时都不会发生这种情况。 日志还说,试图获取cognos端口的java代码抛出错误。有人请帮忙!
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 :(得分:0)
这是相当不言自明的。您需要对命名空间进行身份验证,或启用匿名访问。