Foren

Unable to Upgrade - DLFE-1.pdf NoSuchFileException

thumbnail
Lisa Simpson, geändert vor 10 Jahren.

Unable to Upgrade - DLFE-1.pdf NoSuchFileException

Junior Member Beiträge: 25 Beitrittsdatum: 22.10.13 Neueste Beiträge
I am attempting to upgrade from 5.2.3 to 6.0.??? CE. I've been working my way through each version and documenting as I go. I'm currently on 6.0.3. I've worked through a LOT of issues so far but now the upgrade is barfing on the "Upgrade Document Library" step because it cannot file DLFE-1.pdf. I have no idea where to get this file or how to supply it to the server so that will continue the upgrade.



INFO [UpgradeProcess:108] Upgrading com.liferay.portal.upgrade.v6_0_0.UpgradeDocumentLibrary
ERROR [MainServlet:196] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.documentlibrary.NoSuchFileException: DLFE-1.pdf
com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.documentlibrary.NoSuchFileException: DLFE-1.pdf
at com.liferay.portal.events.StartupAction.run(StartupAction.java:53)
at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1159)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:193)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.documentlibrary.NoSuchFileException: DLFE-1.pdf
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:114)
at com.liferay.portal.upgrade.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:80)
at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:37)
at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:73)
at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:40)
at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:94)
at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:117)
at com.liferay.portal.events.StartupAction.run(StartupAction.java:47)
... 29 more
Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.documentlibrary.NoSuchFileException: DLFE-1.pdf
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:114)
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:130)
at com.liferay.portal.upgrade.UpgradeProcess_6_0_0.doUpgrade(UpgradeProcess_6_0_0.java:48)
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:111)
... 36 more
Caused by: com.liferay.documentlibrary.NoSuchFileException: DLFE-1.pdf
at com.liferay.documentlibrary.util.JCRHook.updateFile(JCRHook.java:779)
at com.liferay.documentlibrary.util.HookProxyImpl.updateFile(HookProxyImpl.java:212)
at com.liferay.documentlibrary.util.SafeFileNameHookWrapper.updateFile(SafeFileNameHookWrapper.java:341)
at com.liferay.documentlibrary.service.impl.DLServiceImpl.updateFile(DLServiceImpl.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:65)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy150.updateFile(Unknown Source)
at com.liferay.documentlibrary.service.DLServiceUtil.updateFile(DLServiceUtil.java:165)
at com.liferay.portal.upgrade.v6_0_0.UpgradeDocumentLibrary.doUpgrade(UpgradeDocumentLibrary.java:128)
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:111)
... 39 more
Stopping the server due to unexpected startup errors
thumbnail
Victor Zorin, geändert vor 10 Jahren.

RE: Unable to Upgrade - DLFE-1.pdf NoSuchFileException

Liferay Legend Beiträge: 1228 Beitrittsdatum: 14.04.08 Neueste Beiträge
Check links listed in this thread: https://www.liferay.com/community/forums/-/message_boards/message/35293957.

In some migration cases we have also discovered that while file-related entries existed in the database, the actual file was not in the file repository. So before proceeding to migration from 5.2 to higher version we had to:
1. run the checks for such entries (with missing underlying files) and displaying them on screen
2. uploading such entries where possible
3. deleting those entries when re-uploading was not possible

We have created a cleaner servlet for such purpose, can probably post it for downloading.

Also, Liferay's original Document Library Verifier was not capable of doing a proper job, it was bailing out, so we had to add own Verifier, somewhere in the above links I have posted a link to our verifier jar.
thumbnail
Lisa Simpson, geändert vor 10 Jahren.

RE: Unable to Upgrade - DLFE-1.pdf NoSuchFileException

Junior Member Beiträge: 25 Beitrittsdatum: 22.10.13 Neueste Beiträge
Thanks for responding, Victor. I saw your other post and I've added that to the mix as well. It's been a super-frustrating journey in quest to upgrade this behemoth. I'm actually chronicling it in this thread in the hopes that it might help someone else out.

The fact, due to the issues, there essentially is no migration path to newer versions should be ringing alarm bells for Liferay. It's so bad that your company has developed a third party bit of 'ware to address it. That means it's not an isolated issue.
Aravinth Raj Raju, geändert vor 9 Jahren.

RE: Unable to Upgrade - DLFE-1.pdf NoSuchFileException

New Member Beitrag: 1 Beitrittsdatum: 14.01.15 Neueste Beiträge
Hi Lisa,

I'm doing a portal upgrade from Liferay 5.2.3 to Liferay 6.2 EE.
Server : Tomcat 7
Database: MSSQL 2003

We have JCR configuration for Document Library and facing the same issue on the upgrade.
Our 1st step of upgrade was portal database upgrade from Liferay 5.2.3 CE to Liferary 6.0 EE.
On this stage, we are also facing same issue as yours.

Can you please share your solution approach for same.

Thanks,
Aravinth R.