Java com.liferay.portlet.documentlibrary.NoSuchFolderException在添加多个文件fs repo时发生?

Java com.liferay.portlet.documentlibrary.NoSuchFolderException在添加多个文件fs repo时发生?,java,liferay,liferay-6,liferay-ide,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.findByPrimaryKe

当我将多个文件添加到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
代码更改:

\webapps\ROOT\html\portlet\document\u library\add\u button.jsp

我已经从
if
语句中删除了一个条件
IsEmpty()
,以便在
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>


请提供一些代码snippet@LuckyBoy:我正在尝试使用现有的liferay代码进行更改。为了在fs repo中提供多文件上载功能。我使多文件上载菜单可用,但当我拖动文件进行上载时,出现上述异常。是否检查文件夹id是否正确传递? FastFactPublisher&com.myNewFolder.net.portlet.test.scheduler.Publisher是您的代码吗?请在调用API添加多个文件的这些类中共享代码。似乎传递给API的文件夹ID有问题。@Haris:请检查我更新的问题……一切都很适合我,但我正在尝试使用fsrepo部件来启用多个文档,但我遇到了上述异常。