Liferay私人消息portlet以及留言板portlet

时间:2014-07-25 10:31:46

标签: java java-ee liferay liferay-6

我注意到私有消息传递portlet使用MBMessageLocalServiceUtil方法getMBMessage(long id),其中id是 mbThreadId是私有消息传递portlet基本实体(UserThread)的属性。因此,当消息板条目中没有记录id时 对应于mbThreadId抛出异常

10:15:06,232 ERROR [RuntimePageImpl-2][render_portlet_jsp:132] null
com.liferay.portlet.messageboards.NoSuchMessageException: No MBMessage exists with the primary key 111020
at com.liferay.portlet.messageboards.service.persistence.MBMessagePersistenceImpl.findByPrimaryKey(MBMessagePersistenceImpl.java:19490)
at com.liferay.portlet.messageboards.service.persistence.MBMessagePersistenceImpl.findByPrimaryKey(MBMessagePersistenceImpl.java:19508)
at com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl.getMBMessage(MBMessageLocalServiceBaseImpl.java:291)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
...

这是正常行为吗?这两个portlet可以一起工作吗?

0 个答案:

没有答案