1

私は Xpage 拡張ライブラリのレスト サービスをコーディングしましたが、今日まで機能していました。開発環境では機能しましたが、本番環境では機能しませんでした (同じドキュメント)。

 {
    "code":400,
    "text":"Bad Request",
    "message":"Unable to read Unread Marks",
    "type":"text",
    "data":"com.ibm.domino.services.ServiceException: 
    at com.ibm.domino.services.rest.das.view.RestViewNavigatorFactory$NOINavigator.getRead(RestViewNavigatorFactory.java:175)
    at com.ibm.domino.services.rest.das.view.RestViewItemFileService.writeSystemColumns(RestViewItemFileService.java:359)
    at com.ibm.domino.services.rest.das.view.RestViewItemFileService.writeEntryAsJson(RestViewItemFileService.java:308)
    at com.ibm.domino.services.rest.das.view.RestViewItemFileService.renderServiceJSONGet(RestViewItemFileService.java:280)
    at com.ibm.domino.services.rest.das.view.RestViewItemFileService.renderService(RestViewItemFileService.java:77)
    at com.ibm.domino.services.HttpServiceEngine.processRequest(HttpServiceEngine.java:167)
    at com.ibm.xsp.extlib.component.rest.UIBaseRestService._processAjaxRequest(UIBaseRestService.java:242)
    at com.ibm.xsp.extlib.component.rest.UIBaseRestService.processAjaxRequest(UIBaseRestService.java:219)
    at com.ibm.xsp.util.AjaxUtilEx$1.invokeContextCallback(AjaxUtilEx.java:194)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:862)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:878)
    at com.ibm.xsp.component.UIDataPanelBase.invokeOnComponent(UIDataPanelBase.java:416)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:878)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:878)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:878)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:878)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:878)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:878)
    at com.ibm.xsp.component.UIViewRootEx.invokeOnComponent(UIViewRootEx.java:1552)
    at com.ibm.xsp.util.AjaxUtilEx.renderAjaxPartialLifecycle(AjaxUtilEx.java:188)
    at com.ibm.xsp.webapp.FacesServletEx.renderAjaxPartial(FacesServletEx.java:225)
    at com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:170)
    at com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:160)
    at com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:138)
    at com.ibm.xsp.webapp.DesignerFacesServlet.service(DesignerFacesServlet.java:103)
    at com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(ComponentModule.java:583)
    at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(NSFComponentModule.java:1281)
    at com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(ComponentModule.java:854)
    at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(ComponentModule.java:803)
    at com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(ComponentModule.java:572)
    at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(NSFComponentModule.java:1265)
    at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:658)
    at com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:481)
    at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:341)
    at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:297)
    at com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:272)
Caused by: NotesException: Unable to read Unread Marks
    at lotus.domino.local.ViewEntry.getRead(Unknown Source)
    at com.ibm.domino.services.rest.das.view.RestViewNavigatorFactory$NOINavigator.getRead(RestViewNavigatorFactory.java:173)
    ... 35 more
"
}   

何がうまくいかないのかわかりません。それはちょうど動作を停止します

4

1 に答える 1

0

提供されている例の1つを使用して、documentCollectionを取得していますか?そうでない場合は、本番データベースに未読のマークが付いていますか?あなたのREST呼び出しはアクセスを持っていますか/データベースはアクセスを許可していませんか?そうでない場合、RESTを介した匿名アクセスを許可しますか?

エラーはここにあります:lotus.domino.local.ViewEntry.getRead(Unknown Source)

NotesViewEntryクラスのこのメソッドは、エントリが読み取られたかどうかを示すブール値を返すかどうかを知るために、ユーザー名を検索します。ユーザーが指定されていない場合は、現在のユーザーに戻ります。これは、サーバーまたはRESTサービスで認証されたユーザーである可能性があります。

また、このhttp://www-10.lotus.com/ldd/nd8forum.nsf/5f27803bba85d8e285256bf10054620d/2f8ee50784b70b06852577dc0050efeb?OpenDocumentには、未読マークが一部のリリースで機能していないと記載されていますが、確認できませんでした。

getRead()を呼び出す行を削除して実行できる場合は、それで確認できます。

乾杯、ブライアン

于 2013-03-06T20:32:00.290 に答える