com.liferay.portlet.documentlibrary.NoSuchFolderException同时添加多个文件fs repo?

时间:2015-05-21 07:35:13

标签: java liferay liferay-6 liferay-ide

当我将多个文件添加到liferay fs存储库时,我收到以下错误。请指教。感谢。

com.liferay.portlet.documentlibrary.NoSuchFolderException: No DLFolder exists with the primary key 11375
        at com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistenceImpl.findByPrimaryKey(DLFolderPersistenceImpl.java:9527)
        at com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistenceImpl.findByPrimaryKey(DLFolderPersistenceImpl.java:9545)
        at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeLocalServiceImpl.getFileEntryTypesPrimaryFolderId(DLFileEntryTypeLocalServiceImpl.java:587)
        at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeLocalServiceImpl.getFolderFileEntryTypes(DLFileEntryTypeLocalServiceImpl.java:303)
        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
        at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
        at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
        at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeServiceImpl.getFolderFileEntryTypes(DLFileEntryTypeServiceImpl.java:125)
        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
        at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
        at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
        at com.liferay.portlet.documentlibrary.service.DLFileEntryTypeServiceUtil.getFolderFileEntryTypes(DLFileEntryTypeServiceUtil.java:121) 14:15:00,003 INFO  [FastFactPublisher:21] Entering method receive(Message) with parameter :: message = {destinationName=liferay/scheduler_dispatch, response=null, respo nseDestinationName=null, responseId=null, payload=null, values={JOB_NAME=com.myNewFolder.net.portlet.test.scheduler.Publisher, EXCEPTIONS_MAX_SIZE=0, GROU P_NAME=com.dominos.intranet.portlet.fastfacts.scheduler.FastFactPublisher, DESTINATION_NAME=liferay/scheduler_dispatch, PORTLET_ID=admin_WAR_por tlet, JOB_STATE=com.liferay.portal.kernel.scheduler.JobState@659804d0, companyId=0, MESSAGE_LISTENER_CLASS_NAME=com.myNewFolder.net.portlet.fastfacts.scheduler. tPublisher, RECEIVER_KEY=com.dominos.intranet.portlet.facts.scheduler.Publisher.com.myNewFolder.net.portlet.facts.scheduler.Publisher, MESSAGE_ LISTENER_UUID=0066aad0-0c4b-4770-81df-7fdb82f00785}} 14:15:00,017 INFO  [Publisher:32] Exiting method receive(Message) with return type void

代码更改:

\ web应用\ ROOT \ HTML \门户\ document_library \ add_button.jsp

我已从IsEmpty()语句中删除了条件if,以便在fsrepo中启用多个文档上传选项。这肯定启用多文档菜单,我能够拖动部分中的文件,但一旦我拖动我得到错误,并且看不到右侧角落中需要出现的保存部分。

<c:if test="<%= ((folder == null) || folder.isSupportsMultipleUpload()) && hasAddDocumentPermission  %>">
        <portlet:renderURL var="editFileEntryURL">
            <portlet:param name="struts_action" value="/document_library/upload_multiple_file_entries" />
            <portlet:param name="redirect" value="<%= currentURL %>" />
            <portlet:param name="backURL" value="<%= currentURL %>" />
            <portlet:param name="repositoryId" value="<%= String.valueOf(repositoryId) %>" />
            <portlet:param name="folderId" value="<%= String.valueOf(folderId) %>" />
        </portlet:renderURL>

        <aui:nav-item href="<%= editFileEntryURL %>" label="multiple-documents" />
    </c:if>

0 个答案:

没有答案