尝试将图像插入(上载)到Richtext控件(也称为CKEditor)时出现异常

尝试将图像插入(上载)到Richtext控件(也称为CKEditor)时出现异常,ckeditor,xpages,lotus-domino,Ckeditor,Xpages,Lotus Domino,从今晚开始,我在尝试在XPage的CKEditor中添加上载图像时遇到了这个异常。这在以前很管用。我没有更改任何服务器,没有安装补丁包/如果已安装等。。我在使用FP1和FP2的9.0.1的多个版本上得到了这一点。我在编辑模式下的文档表单与我通过%24%24OpenDominoDocument.xsp URL加载文档的XPage相关联。服务器刚刚启动,我还做了一个项目>清理。 这是当我从磁盘中选择图像后点击上载按钮FP1/时.log文件中的错误FP2会自动触发上载事件: 20.02.15 02:2

从今晚开始,我在尝试在XPage的CKEditor中添加上载图像时遇到了这个异常。这在以前很管用。我没有更改任何服务器,没有安装补丁包/如果已安装等。。我在使用FP1和FP2的9.0.1的多个版本上得到了这一点。我在编辑模式下的文档表单与我通过%24%24OpenDominoDocument.xsp URL加载文档的XPage相关联。服务器刚刚启动,我还做了一个项目>清理。 这是当我从磁盘中选择图像后点击上载按钮FP1/时.log文件中的错误FP2会自动触发上载事件:

20.02.15 02:22: Exception Thrown
Context Path: /hp_v2.nsf
com.ibm.xsp.FacesExceptionEx: Unable to get document page name for null
at com.ibm.xsp.model.domino.DominoDocumentPageTransformer.transformPageName(DominoDocumentPageTransformer.java:69)
at com.ibm.xsp.application.ViewHandlerExImpl.convertVirtualPage(ViewHandlerExImpl.java:690)
at com.ibm.xsp.application.ViewHandlerExImpl._createViewRoot(ViewHandlerExImpl.java:490)
at com.ibm.xsp.application.ViewHandlerExImpl.createViewRoot(ViewHandlerExImpl.java:567)
at com.ibm.xsp.application.ViewHandlerExImpl.doCreateView(ViewHandlerExImpl.java:142)
at com.ibm.xsp.application.ViewHandlerEx.createView(ViewHandlerEx.java:90)
at com.ibm.xsp.application.ViewHandlerExImpl._restoreView(ViewHandlerExImpl.java:395)
at com.ibm.xsp.application.ViewHandlerExImpl.restoreView(ViewHandlerExImpl.java:358)
at com.ibm.xsp.controller.FacesControllerImpl.restoreView(FacesControllerImpl.java:220)
at com.ibm.xsp.webapp.FacesServletEx.serviceAjaxPartialView(FacesServletEx.java:194)
at com.ibm.xsp.webapp.FacesServletEx.serviceAjaxPartialViewSync(FacesServletEx.java:176)
at com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:155)
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:576)
at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(NSFComponentModule.java:1335)
at com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(ComponentModule.java:853)
at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(ComponentModule.java:796)
at com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(ComponentModule.java:565)
at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(NSFComponentModule.java:1319)
at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(NSFService.java:662)
at com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:482)
at org.openntf.domino.xsp.adapter.OpenntfHttpService.doService(OpenntfHttpService.java:89)
at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:350)
at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:306)
at com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:272)
Caused by: java.lang.NullPointerException
at com.ibm.xsp.model.domino.DominoUtils.isUNID(DominoUtils.java:435)
at com.ibm.xsp.model.domino.DominoUtils.getDocumentById(DominoUtils.java:455)
at com.ibm.xsp.model.domino.DominoUtils.getDocumentById(DominoUtils.java:472)
at com.ibm.xsp.model.domino.DominoDocumentPageTransformer.transformPageName(DominoDocumentPageTransformer.java:51)
... 26 more
我从来没有看到过——有什么想法会导致这种行为


有趣的事实:当我打开相应的.xsp(例如adminEvent.xsp)而不是使用%24%24OpenDominoDocument.xsp来打开文档时,它可以工作,因此我假设出于某种原因表单属性无法识别。

我以前有过这个。您正在使用requestParamPrefix吗


我遇到的问题是,当我使用documentId以外的非标准请求参数名称时,标准$$OpenDominoDocument.xsp页面解析程序将失败并显示此错误消息。它查找显式documentId查询参数,并尝试将其作为通用id解析,以确定应使用哪个XPages打开

我知道有点晚了。我也有同样的问题,无法在我的富文本控件中插入图像,错误未定义。问题是我的富文本控件没有链接到domino文档数据源。我将文档数据源添加到我的xpage,将我的富文本控件链接到数据源和文档上的富文本字段,它工作得非常好。希望它能帮助别人。

既不是也不是,塞尔达。不使用前缀属性,我的URL看起来很正常,比如%24%24OpenDominoDocument.xsp?documentId=9fa63726fb5314c1257deb006137e7&action=editDocumentInterest。您还可以检查视图状态是否为disabled nostate吗?我没有设置任何viewState属性,因此它可以与默认行为一起工作。我做了一些测试,发现对$$OpenDominoDocument.xsp的后续调用可能会生成相同的错误,以防它们与现有状态不匹配。这就是我认为视图状态可能被禁用的原因。您是否测试了相同的问题是否会重复以进行部分刷新,而不是插入图像?