legacy-knowledge-base
公開されました Jun. 30, 2025

NoSuchFileException: Liferay の起動時またはアップグレードツールの実行時に null/override エラーが発生します。

written-by

Ricardo Couso

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferayを起動した直後、またはアップグレードツールを実行した直後、ログにNoSuchFileException: null/overrideエラーが表示されます。
    2024-04-01 15:44:08.392 ERROR [main][DBUpgrader:110] null
    java.lang.RuntimeException: java.nio.file.NoSuchFileException: null/override
    at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:280)
    at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:196)
    at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.liferay.portal.tools.db.upgrade.client.DBUpgraderLauncher.main(DBUpgraderLauncher.java:45)
    Caused by: java.nio.file.NoSuchFileException: null/override
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:427)
    at java.nio.file.Files.newDirectoryStream(Files.java:457)
    at com.liferay.portal.bootstrap.ModuleFrameworkImpl._setUpInitialBundles(ModuleFrameworkImpl.java:1743)
    at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:402)
    at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:91)
    at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:227)
    ... 7 more

環境

  • 四半期リリース 2023.Q3、2023.Q4、2023.Q1
  • Liferay DXP 7.3

解像度

  • このエラーは、Liferayをアップグレードしたり、新しいアップデートで起動しても、/osgiフォルダが以前のアップデートに関連付けられたままの場合に発生することがあります。
  • 新しいアップデートに対応するバンドルを起動するときに、古い/osgiフォルダをポイントしないように注意してください。
    • 既存のシンボリックリンクと、module.framework.base.dirや module.framework.marketplace.dirのような関連するポータルのプロパティを確認する。
did-this-article-resolve-your-issue

legacy-knowledge-base