Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xpages XPage Dojo DateTextBox NotSerializableException_Xpages_Xpages Extlib - Fatal编程技术网

Xpages XPage Dojo DateTextBox NotSerializableException

Xpages XPage Dojo DateTextBox NotSerializableException,xpages,xpages-extlib,Xpages,Xpages Extlib,我有一个包含dojo DateTextBox的xpage。如果我保存文档,一切正常。但是,如果我重新打开该文档,会出现以下异常: Unexpected runtime error The runtime has encountered an unexpected error. Error source Page Name:/OfferAccount.xsp Exception java.io.NotSerializableException: lotus.domino.local.DateTi

我有一个包含dojo DateTextBox的xpage。如果我保存文档,一切正常。但是,如果我重新打开该文档,会出现以下异常:

Unexpected runtime error
The runtime has encountered an unexpected error.
Error source
Page Name:/OfferAccount.xsp

Exception
java.io.NotSerializableException: lotus.domino.local.DateTime
lotus.domino.local.DateTime

Stack Trace:

com.ibm.xsp.FacesExceptionEx: java.io.NotSerializableException: lotus.domino.local.DateTime
    com.ibm.xsp.application.AbstractStateManager.saveSerializedView(AbstractStateManager.java:121)
    com.ibm.xsp.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:152)
    com.ibm.xsp.application.ViewHandlerExImpl._saveViewState(ViewHandlerExImpl.java:445)
    com.ibm.xsp.application.ViewHandlerExImpl.saveViewState(ViewHandlerExImpl.java:439)
    com.ibm.xsp.application.ViewHandlerExImpl._renderView(ViewHandlerExImpl.java:323)
    com.ibm.xsp.application.ViewHandlerExImpl.renderView(ViewHandlerExImpl.java:335)
以下是我的xpage中DateTextBox的代码:

<xe:djDateTextBox
id="periodOfInsuranceBeginn" value="#{offerAccount.d_offerPolicyBegin}">
<xe:this.defaultValue><![CDATA[#{javascript:var today:NotesDateTime = 
session.createDateTime(@Today());   
return I18n.parseDate(today.getDateOnly());}]]></xe:this.defaultValue>
<xp:this.converter>
<xp:convertDateTime type="date" dateStyle="short">
</xp:convertDateTime>
</xp:this.converter>
</xe:djDateTextBox>

如果使用dateTime类型的EditBox,也会发生此异常

有什么想法吗?
谢谢Mario,代码中似乎使用了Notes对象(NotesDateTime)。Notes对象不可序列化。将它们存储为Java日期,如果您访问它们,则将它们转换回NotesDateTime对象。

什么是OfferCount?数据源,还是您的bean?