Xpage扩展库休息服务返回:http 200错误请求,无法读取未读标记(Xpage Extension Library Rest Service return: http 200 Bad Reque

编程入门 行业动态 更新时间:2024-10-11 13:23:35
Xpage扩展库休息服务返回:http 200错误请求,无法读取未读标记(Xpage Extension Library Rest Service return: http 200 Bad Request, Unable to read Unread Marks)

我编写了一个Xpage扩展库休息服务,它工作到今天,在我的开发环境中它工作但不生产(相同的文档):这里ajax联系休息服务时的响应:

{ "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 " }

我不知道出了什么问题。 它只是停止工作

I coded an Xpage extension library rest service, and it worked until today, in my development enviroment it worked but not in prodution (same documents): Here the response when ajax contact rest service:

{ "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 " }

I have no idea what going wrong. It just stop working

最满意答案

您是否使用提供的示例之一来获取documentCollection? 如果没有,您的生产数据库是否有未读标记? 您的REST调用是否具有访问权限/您的数据库是否允许通过REST进行匿名访问?

你的错误在这里:在lotus.domino.local.ViewEntry.getRead(未知来源)

NotesViewEntry类的此方法查找用户名,以便知道是否返回一个布尔值,告知是否已读取该条目。 如果未指定用户,则返回当前用户,可能是服务器或在REST服务中进行身份验证的用户。

此外,我发现这个http://www-10.lotus.com/ldd/nd8forum.nsf/5f27803bba85d8e285256bf10054620d/2f8ee50784b70b06852577dc0050efeb?OpenDocument说未读标记在某些版本中不起作用,但我无法验证它。

如果您可以删除调用getRead()的行并运行它,那将为您确认。

干杯,布莱恩

Are you using one of the provided examples to just get a documentCollection? If not, are unread marks on for your production database? Does your REST call have access/does your database allow anonymous access via REST if not?

Your error is here: at lotus.domino.local.ViewEntry.getRead(Unknown Source)

This method of the NotesViewEntry class looks for the user name in order to know whether to return a boolean telling if the entry has been read. If no user is specified, it returns for the current user, and that may be the server or who is authenticated in the REST service.

Also, I find this http://www-10.lotus.com/ldd/nd8forum.nsf/5f27803bba85d8e285256bf10054620d/2f8ee50784b70b06852577dc0050efeb?OpenDocument saying unread marks are not working in some releases, but I've not been able to verify it.

If you can remove the line calling for getRead() and run it, that will confirm for you.

Cheers, Brian

更多推荐

java,com,ibm,domino,xsp,电脑培训,计算机培训,IT培训"/> <meta name="descr

本文发布于:2023-08-03 23:28:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1402374.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标记   错误   Extension   Rest   Library

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!