« Return to Thread: Error upgrading: Host may not be null
Yoav Landman wrote:Thanks for the additional information.
It looks like there's a problem with importing the proxy definition from the
original config (looks like it is being mistakenly taken as an NTLM proxy).
You can work around it by removing the proxy definition and the references
to it by remote repos, in the import_artifactory.config.xml file (and you'd
have to define the proxy again once the import is finished).
I created http://issues.jfrog.org/jira/browse/RTFACT-1950 and we'll fix
that.
Thanks,
Yoav
On Wed, Jul 1, 2009 at 9:36 PM, blair_boost
<mailtome200420032002@yahoo.com>wrote:
>
> Got the same error while trying to upgrade from 1.2.5u1 to 2.0.6
> The stack trace
> java.lang.RuntimeException: java.lang.IllegalArgumentException: Host may
> not
> be null
> at
>
> org.artifactory.config.CentralConfigServiceImpl.reloadConfiguration(CentralConfigServiceImpl.java:267)
> at
>
> org.artifactory.config.CentralConfigServiceImpl.importFrom(CentralConfigServiceImpl.java:217)
> 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:585)
> at
>
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
> at
>
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
> at $Proxy16.importFrom(Unknown Source)
> at
>
> org.artifactory.spring.ArtifactoryApplicationContext.importFrom(ArtifactoryApplicationContext.java:255)
> at
>
> org.artifactory.rest.system.ImportResource.activateImport(ImportResource.java:62)
> 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:585)
> at
>
> com.sun.jersey.impl.model.method.dispatch.EntityParamDispatchProvider$VoidOutInvoker._dispatch(EntityParamDispatchProvider.java:119)
> at
>
> com.sun.jersey.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:85)
> at
>
> com.sun.jersey.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:123)
> at
> com.sun.jersey.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:88)
> at
>
> com.sun.jersey.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
> at
>
> com.sun.jersey.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
> at
>
> com.sun.jersey.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
> at
>
> com.sun.jersey.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
> at
>
> com.sun.jersey.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:722)
> at
>
> com.sun.jersey.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:692)
> at
>
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:344)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
> at
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124)
> at
> org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:154)
> at
> org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:74)
> at
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
> at
>
> org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:190)
> at
>
> org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:135)
> at
>
> org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:120)
> at
> org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:90)
> at
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
> at
>
> org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:51)
> at
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
> at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
> at
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> at
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:324)
> at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
> at
>
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
> at
>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> at
>
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
> Caused by: java.lang.IllegalArgumentException: Host may not be null
> at
> org.apache.commons.httpclient.NTCredentials.<init>(NTCredentials.java:84)
> at
>
> org.artifactory.util.HttpClientUtils.configureProxy(HttpClientUtils.java:43)
> at org.artifactory.repo.HttpRepo.createHttpClient(HttpRepo.java:259)
> at org.artifactory.repo.HttpRepo.init(HttpRepo.java:81)
> at
>
> org.artifactory.repo.service.RepositoryServiceImpl.rebuildRepositories(RepositoryServiceImpl.java:224)
> 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:585)
> at
>
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
> at
>
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
> at
> org.artifactory.jcr.lock.LockingAdvice.invoke(LockingAdvice.java:78)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
> at
>
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> at $Proxy13.rebuildRepositories(Unknown Source)
> at
>
> org.artifactory.repo.service.RepositoryServiceImpl.reload(RepositoryServiceImpl.java:192)
> at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
>
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
> at
>
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
> at $Proxy13.reload(Unknown Source)
> at
>
> org.artifactory.spring.ArtifactoryApplicationContext.reload(ArtifactoryApplicationContext.java:181)
> at
>
> org.artifactory.config.CentralConfigServiceImpl.reloadConfiguration(CentralConfigServiceImpl.java:263)
> ... 54 more
>
> freddy33 wrote:
> >
> > Thanks for that, we will try to reproduce it.
> >
> > On Wed, Jun 24, 2009 at 3:46 PM, Fabio Vigo <fpicaro@gmail.com> wrote:
> >
> >>
> >> I'm running on Linux RedHat AS 4.5, Java 1.5.0_16 x64.
> >>
> >> Files attached.
> >>
> >>
> >> freddy33 wrote:
> >> >
> >> > I suspect some hostname localhost issue.
> >> > Can you send us the full stack trace?
> >> > Which operating system and JDK version are you using?
> >> > Can you send us the file
> >> > "/java/artifactory-2.0.6/etc/import_artifactory.config.xml" and the
> >> > artifactory.config.xml under dumpExport folder (privately if you wish)
> >> ?
> >> >
> >> > Thanks.
> >> >
> >> > On Wed, Jun 24, 2009 at 12:36 AM, Fabio Vigo <fpicaro@gmail.com>
> wrote:
> >> >
> >> >>
> >> >> Hi, didn't find this issue in the history.
> >> >>
> >> >> I'm trying to upgrade from version 1.2.5 to 2.0.6 according to the
> >> >> manual.
> >> >> Excuted artadmin dump $ARTIFACTORY_HOME from old version and - after
> a
> >> >> fresh
> >> >> install of 2.0.6 - artadmin import dumpExport --user admin --password
> >> >> password. The error mentioned occurs: Reloading configuration from
> >> >> /java/artifactory-2.0.6/etc/import_artifactory.config.xml
> >> >> 500 : Received uncaugth exception
> >> >> java.lang.RuntimeException: java.lang.IllegalArgumentException: Host
> >> may
> >> >> not
> >> >> be null
> >> >>
> >> >> Does someone have any clue?
> >> >>
> >> >> Thanks in advance.
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/Error-upgrading%3A-Host-may-not-be-null-tp24174914p24174914.html
> >> >> Sent from the Artifactory-Users mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >>
> >> >>
> >>
> ------------------------------------------------------------------------------
> >> >> _______________________________________________
> >> >> Artifactory-users mailing list
> >> >> Artifactory-users@lists.sourceforge.net
> >> >> https://lists.sourceforge.net/lists/listinfo/artifactory-users
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > JFrog Ltd
> >> > 5 Habonim st., P.O.Box 8187
> >> > Netanya, Israel 42504.
> >> > Tel: +972 9 8941444
> >> > Fax: +972 9 8659977
> >> > http://www.jfrog.org/
> >> > http://freddy33.blogspot.com/
> >> > http://nothingisinfinite.blogspot.com/
> >> >
> >> >
> >>
> ------------------------------------------------------------------------------
> >> >
> >> > _______________________________________________
> >> > Artifactory-users mailing list
> >> > Artifactory-users@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/artifactory-users
> >> >
> >> >
> >> http://www.nabble.com/file/p24184097/import_artifactory.config.xml
> >> import_artifactory.config.xml
> >> http://www.nabble.com/file/p24184097/artifactory.log artifactory.log
> >> http://www.nabble.com/file/p24184097/artifactory.config.xml
> >> artifactory.config.xml
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Error-upgrading%3A-Host-may-not-be-null-tp24174914p24184097.html
> >> Sent from the Artifactory-Users mailing list archive at Nabble.com.
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> _______________________________________________
> >> Artifactory-users mailing list
> >> Artifactory-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/artifactory-users
> >>
> >
> >
> >
> > --
> > JFrog Ltd
> > 5 Habonim st., P.O.Box 8187
> > Netanya, Israel 42504.
> > Tel: +972 9 8941444
> > Fax: +972 9 8659977
> > http://www.jfrog.org/
> > http://freddy33.blogspot.com/
> > http://nothingisinfinite.blogspot.com/
> >
> >
> ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > Artifactory-users mailing list
> > Artifactory-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/artifactory-users
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Error-upgrading%3A-Host-may-not-be-null-tp24174914p24294972.html
> Sent from the Artifactory-Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Artifactory-users mailing list
> Artifactory-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
Artifactory-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/artifactory-users
« Return to Thread: Error upgrading: Host may not be null
| Free embeddable forum powered by Nabble | Forum Help |