java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Artifactory start normally when calling from root /opt/artifactory/bin/artifactory.sh but not when started as service like service artifactory start or using ./artifactoryctl start I get always the same error in consoleout.log Runing: exec /usr/lib/jvm/java-6-sun/bin/java-server -Xms1g -Xmx1g -Xss256k -XX:PermSize=128m -XX:MaxPermSize=128m -XX:NewSize=384m -XX:MaxNewSize=384m -Djava.io.tmpdir=/opt/artifactory/tmp -Djava.awt.headless=true -Djetty.home=/opt/artifactory -Dartifactory.home=/opt/artifactory -cp "/opt/artifactory/artifactory.jar:/opt/artifactory/lib/jetty-ajp-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-continuation-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-http-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-io-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-security-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-server-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-servlet-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-util-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-webapp-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-xml-7.0.2.v20100331.jar:/opt/artifactory/lib/mysql-connector-java-5.1.13.jar:/opt/artifactory/lib/servlet-api-2.5.jar:/opt/artifactory/lib/wrapper.jar" org.artifactory.standalone.main.Main /opt/artifactory/etc/jetty.xml Starting jetty from configuration file /opt/artifactory/etc/jetty.xml 2010-12-08 12:41:37.386:INFO::Logging to StdErrLog::DEBUG=false via org.eclipse.jetty.util.log.StdErrLog 2010-12-08 12:41:37.573:INFO::jetty-7.0.2.v20100331 2010-12-08 12:41:37.625:WARN::Failed startup of context WebAppContext@7b2be1bd@7b2be1bd/artifactory,null,/opt/artifactory/webapps/artifactory.war java.lang.IllegalArgumentException: Bad temp directory: /opt/artifactory/tmp/JettyContext6073078177889746240 at org.eclipse.jetty.webapp.WebAppContext.setTempDirectory(WebAppContext.java:894) at org.eclipse.jetty.webapp.WebInfConfiguration.setTempDirectory(WebInfConfiguration.java:357) at org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:300) at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:43) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:347) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92) at org.eclipse.jetty.server.Server.doStart(Server.java:230) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.artifactory.standalone.main.Main.main(Main.java:75) 2010-12-08 12:41:37.630:INFO::Opened /var/log/artifactory/2010_12_08.request.log 2010-12-08 12:41:37.671:INFO::Started SelectChannelConnector@0.0.0.0:8081 2010-12-08 12:54:48.945:INFO::Graceful shutdown SelectChannelConnector@0.0.0.0:8081 2010-12-08 12:54:48.946:INFO::Graceful shutdown WebAppContext@7b2be1bd@7b2be1bd/artifactory,null,/opt/artifactory/webapps/artifactory.war
    via by Richard Grossman,
  • Artifactory start normally when calling from root /opt/artifactory/bin/artifactory.sh but not when started as service like service artifactory start or using ./artifactoryctl start I get always the same error in consoleout.log Runing: exec /usr/lib/jvm/java-6-sun/bin/java-server -Xms1g -Xmx1g -Xss256k -XX:PermSize=128m -XX:MaxPermSize=128m -XX:NewSize=384m -XX:MaxNewSize=384m -Djava.io.tmpdir=/opt/artifactory/tmp -Djava.awt.headless=true -Djetty.home=/opt/artifactory -Dartifactory.home=/opt/artifactory -cp "/opt/artifactory/artifactory.jar:/opt/artifactory/lib/jetty-ajp-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-continuation-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-http-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-io-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-security-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-server-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-servlet-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-util-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-webapp-7.0.2.v20100331.jar:/opt/artifactory/lib/jetty-xml-7.0.2.v20100331.jar:/opt/artifactory/lib/mysql-connector-java-5.1.13.jar:/opt/artifactory/lib/servlet-api-2.5.jar:/opt/artifactory/lib/wrapper.jar" org.artifactory.standalone.main.Main /opt/artifactory/etc/jetty.xml Starting jetty from configuration file /opt/artifactory/etc/jetty.xml 2010-12-08 12:41:37.386:INFO::Logging to StdErrLog::DEBUG=false via org.eclipse.jetty.util.log.StdErrLog 2010-12-08 12:41:37.573:INFO::jetty-7.0.2.v20100331 2010-12-08 12:41:37.625:WARN::Failed startup of context WebAppContext@7b2be1bd@7b2be1bd/artifactory,null,/opt/artifactory/webapps/artifactory.war java.lang.IllegalArgumentException: Bad temp directory: /opt/artifactory/tmp/JettyContext6073078177889746240 at org.eclipse.jetty.webapp.WebAppContext.setTempDirectory(WebAppContext.java:894) at org.eclipse.jetty.webapp.WebInfConfiguration.setTempDirectory(WebInfConfiguration.java:357) at org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:300) at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:43) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:347) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92) at org.eclipse.jetty.server.Server.doStart(Server.java:230) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.artifactory.standalone.main.Main.main(Main.java:75) 2010-12-08 12:41:37.630:INFO::Opened /var/log/artifactory/2010_12_08.request.log 2010-12-08 12:41:37.671:INFO::Started SelectChannelConnector@0.0.0.0:8081 2010-12-08 12:54:48.945:INFO::Graceful shutdown SelectChannelConnector@0.0.0.0:8081 2010-12-08 12:54:48.946:INFO::Graceful shutdown WebAppContext@7b2be1bd@7b2be1bd/artifactory,null,/opt/artifactory/webapps/artifactory.war
    via by Richard Grossman,
  • Registering resources in Dropwizard
    via Stack Overflow by Amith Gopal
    ,
  • error with Jetty 7 and jetty-web.xml
    via by Steven Parkes,
  • Solr upstart script using start-stop-daemon
    via by Unknown author,
  • IllegalArgumentException
    via GitHub by AmenRa666
    ,
    • java.lang.IllegalArgumentException: Bad temp directory: /opt/artifactory/tmp/JettyContext6073078177889746240 at org.eclipse.jetty.webapp.WebAppContext.setTempDirectory(WebAppContext.java:894) at org.eclipse.jetty.webapp.WebInfConfiguration.setTempDirectory(WebInfConfiguration.java:357) at org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:300) at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:43) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:347) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92) at org.eclipse.jetty.server.Server.doStart(Server.java:230) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.artifactory.standalone.main.Main.main(Main.java:75)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,