java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: null

JFrog JIRA | Yoav Landman | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    User reported stack trace: STARTED Jetty XXX XXX XX XX:XX:XX EST 2010 Runing: exec /usr/bin/java -server -Xms300m -Xmx512m -Xss256k -XX:PermSize=128m -XX:MaxPermSize=128m -Djava.awt.headless=true -Djetty.home=/home/artifactory/current -Dartifactory.home=/home/artifactory/current -cp "/home/artifactory/current/artifactory.jar:/home/artifactory/current/lib/artifactory-config-2.2.1.jar:/home/artifactory/current/lib/artifactory-log-2.2.1.jar:/home/artifactory/current/lib/artifactory-traffic-2.2.1.jar:/home/artifactory/current/lib/commons-io-1.4.jar:/home/artifactory/current/lib/google-collections-1.0.jar:/home/artifactory/current/lib/jetty-6.1.22.jar:/home/artifactory/current/lib/jetty-ajp-6.1.22.jar:/home/artifactory/current/lib/jetty-util-6.1.22.jar:/home/artifactory/current/lib/logback-classic-0.9.18.jar:/home/artifactory/current/lib/logback-core-0.9.18.jar:/home/artifactory/current/lib/servlet-api-2.5-20081211.jar:/home/artifactory/current/lib/slf4j-api-1.5.10.jar:/home/artifactory/current/lib/wrapper.jar" org.artifactory.standalone.main.Main /home/artifactory/current/etc/jetty.xml Determining artifactory.home... Looking for '-Dartifactory.home=<path>' vm parameter... Found vm parameter value: /home/artifactory/current. Using artifactory.home at '/home/artifactory/current'. Could not start the Jetty server: java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: null 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

    JFrog JIRA | 7 years ago | Yoav Landman
    java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: null
  2. 0

    User reported stack trace: STARTED Jetty XXX XXX XX XX:XX:XX EST 2010 Runing: exec /usr/bin/java -server -Xms300m -Xmx512m -Xss256k -XX:PermSize=128m -XX:MaxPermSize=128m -Djava.awt.headless=true -Djetty.home=/home/artifactory/current -Dartifactory.home=/home/artifactory/current -cp "/home/artifactory/current/artifactory.jar:/home/artifactory/current/lib/artifactory-config-2.2.1.jar:/home/artifactory/current/lib/artifactory-log-2.2.1.jar:/home/artifactory/current/lib/artifactory-traffic-2.2.1.jar:/home/artifactory/current/lib/commons-io-1.4.jar:/home/artifactory/current/lib/google-collections-1.0.jar:/home/artifactory/current/lib/jetty-6.1.22.jar:/home/artifactory/current/lib/jetty-ajp-6.1.22.jar:/home/artifactory/current/lib/jetty-util-6.1.22.jar:/home/artifactory/current/lib/logback-classic-0.9.18.jar:/home/artifactory/current/lib/logback-core-0.9.18.jar:/home/artifactory/current/lib/servlet-api-2.5-20081211.jar:/home/artifactory/current/lib/slf4j-api-1.5.10.jar:/home/artifactory/current/lib/wrapper.jar" org.artifactory.standalone.main.Main /home/artifactory/current/etc/jetty.xml Determining artifactory.home... Looking for '-Dartifactory.home=<path>' vm parameter... Found vm parameter value: /home/artifactory/current. Using artifactory.home at '/home/artifactory/current'. Could not start the Jetty server: java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: null 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

    JFrog JIRA | 7 years ago | Yoav Landman
    java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: null
  3. 0

    GitHub comment 589#2668538

    GitHub | 5 years ago | bstansberry
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.commons.io.FileUtils.copyURLToFile()
    2. Commons IO
      FileUtils.copyURLToFile
      1. org.apache.commons.io.FileUtils.copyURLToFile(FileUtils.java:952)
      1 frame
    3. org.artifactory.common
      ArtifactoryHome.<init>
      1. org.artifactory.common.ArtifactoryHome.initAndLoadSystemPropertyFile(ArtifactoryHome.java:339)
      2. org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:167)
      3. org.artifactory.common.ArtifactoryHome.<init>(ArtifactoryHome.java:77)
      4. org.artifactory.common.ArtifactoryHome.<init>(ArtifactoryHome.java:67)
      4 frames
    4. org.artifactory.standalone
      Main.main
      1. org.artifactory.standalone.main.Main.main(Main.java:58)
      1 frame