有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

无法从java连接Cognos 10.2.1

我正在尝试从Java连接Cognos10.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>

提前谢谢


共 (1) 个答案

  1. # 1 楼答案

    这是不言而喻的。您需要根据名称空间进行身份验证,或者启用匿名访问