IBM FileNet:com.filenet.api.exception.EngineRuntimeException:FNRCT0042E:TRANSPORT_WSI_NETWORK_ERROR

问题描述

尝试使用以下查询查询 FileNet 时

选择 d.To,d.Cc,d.[From],d.Subject,d.[ReceivedOn],d.[SentOn],d.DocumentTitle,d.MimeType,d.StorageLocation,d.ContentSize,d.DateContentLastAccessed,d.Creator,d.LastModifier,d.DateLastModified,d.Name,d.Id,d.DateCreated FROM Document d WHERE [ICCFrom] LIKE '%xyz@gmail.com%' AND [ICCMailDate] > 20210101T235959Z

String query ="以上查询语句";
SearchSQL sql = new SearchSQL(查询);
SearchScope scope = new SearchScope(objectStore);
IndependentObjectSet s = scope.fetchObjects(sql,pageSize,null,true); > // 获取页面迭代器 PageIterator iterator = s.pageIterator();

我收到以下错误日志。

[信息] 2021-05-06 10.04.19.856 [Thread-158] [1571783] filenet_error.api.com.filenet.apiimpl.util.SessionHandle 177- 处理 executeSearch 请求时发生异常。这 搜索请求正在重试 (1) 次,共 (1) 次。 javax.net.ssl.SSLException: Connection reset at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_272] 在 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_272]

由:javax.net.ssl.SSLException:连接重置在 sun.security.ssl.Alert.createSSLException(Alert.java:127) ~[?:1.8.0_272]

禁止:java.net.SocketException: Broken pipe(写入失败) 在 java.net.SocketOutputStream.socketWrite0(本机方法) ~[?:1.8.0_272]

[调试] 2021-05-06 10.04.19.858 [Thread-158] [1571783] filenet_tracing.api.detail.com.filenet.apiimpl.util.SessionHandle 180- com.filenet.api.exception.EngineRuntimeException:FNRCT0042E:TRANSPORT_WSI_NETWORK_ERROR:发生网络错误时 处理 Web 服务请求或响应。查看嵌套异常 具体细节。有关详细信息,请参阅完整的堆栈跟踪。信息: 连接重置持续时间 300,265 毫秒。

下面是我用来获取 Objectstore 实例的 java 代码。

// Get the connection
Connection conn = Factory.Connection.getConnection(uri);
// Get the user context
UserContext uc = UserContext.get();
uc.pushSubject(UserContext.createSubject(conn,username,password,getJAASStanzaName(configuration)));
// Get the default domain
Domain domain = Factory.Domain.getInstance(conn,null);
// Get an object store
objectStore = Factory.ObjectStore.fetchInstance(domain,configuration.getConfiguration(Configuration.OBJECT_STORE_NAME),null);`

谁能帮我解决这个问题。?

解决方法

  1. 默认情况下,WebSphere 在 9443 上绑定 SSL 端口,请检查端口。
  2. 检查协议,我的意思是连接 URL 应该像 https://host:9443/wsi/FNCEWS40SOAP,尝试使用浏览器连接
  3. 检查 JAAS 节名称,它放在 jaas.conf.WSI 中
  4. 检查 VM 参数,它应该包含指向 jaas.conf.WSI 的链接

-Djava.security.auth.login.config="c:\Program Files\IBM\FileNet\CEClient\config\samples\jaas.conf.WSI"

non-Windows

-Djava.security.auth.login.config="/opt/IBM/FileNet/CEClient/config/samples/jaas.conf.WSI"

链接到文档 Creating a Runtime Configuration

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...