java.lang.IllegalArgumentException

Could not initialize artifactory main directory due to: null

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web21864

  • via JFrog JIRA by Yoav Landman, 1 year ago
    Could not initialize artifactory main directory due to: null
  • via JFrog JIRA by Yoav Landman, 10 months ago
    Could not initialize artifactory main directory due to: null
  • via JFrog JIRA by Richard Brosnahan, 1 year ago
    Could not initialize artifactory main directory due to: Unable to create directory /apps/artifactory-current/etc/ui
  • Stack trace

    • java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: null at org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:178) at org.artifactory.common.ArtifactoryHome.<init>(ArtifactoryHome.java:77) at org.artifactory.common.ArtifactoryHome.<init>(ArtifactoryHome.java:67) at org.artifactory.standalone.main.Main.main(Main.java:58) Caused by: java.lang.NullPointerException at org.apache.commons.io.FileUtils.copyURLToFile(FileUtils.java:952) at org.artifactory.common.ArtifactoryHome.initAndLoadSystemPropertyFile(ArtifactoryHome.java:339) at org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:167) ... 3 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.