Restarting Jenkins solved it for me but you can also try the answer 
provided here;

https://groups.google.com/forum/#!msg/jenkinsci-users/Qj17COl6Ij8/gUM5yHzvXSoJ


On Thursday, 9 June 2011 16:03:37 UTC+3, Jacob Robertson wrote:
>
> Once a week, our server admin team restarts our hudson machine (for
> server maintenance), and I don't think there's any way for me to get
> around that.  What we've been seeing for a while is that Hudson gets
> in an error state, and can't recover - we are forced to restart the
> Hudson service.  This appears to be because the "activeDirectory" bean
> can't be instantiated, and I'm guessing it's because AD itself hasn't
> quite become available on the machine yet.  So it's a timing issue
> with all the services (including the Hudson service) coming up at the
> same time. (Full stack trace below)
>
> Does anyone have any suggestions on how a Hudson admin might fix this
> problem, knowing that the server admins may not be willing or able to
> do much from their side?
> We're currently on Version 1.368 - if there was a good chance that
> upgrading to a newer version would help with this problem, then we
> would do that.
>
> org.jvnet.hudson.reactor.ReactorException:
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'activeDirectory': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class
> [hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider]:
> Constructor threw exception; nested exception is
> com4j.ExecutionException: com4j.ComException: 8007054b Failed to
> MkParseDisplayName : The specified domain either does not exist or
> could not be contacted. : .\com4j.cpp:196
>  at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
>  at hudson.model.Hudson.executeReactor(Hudson.java:696)
>  at hudson.model.Hudson.(Hudson.java:613)
>  at hudson.model.Hudson.(Hudson.java:553)
>  at hudson.WebAppMain$2.run(WebAppMain.java:222)
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'activeDirectory': Instantiation of bean
> failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class
> [hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider]:
> Constructor threw exception; nested exception is
> com4j.ExecutionException: com4j.ComException: 8007054b Failed to
> MkParseDisplayName : The specified domain either does not exist or
> could not be contacted. : .\com4j.cpp:196
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:917)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:873)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:514)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>  at 
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
>  at 
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
>  at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
>  at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
>  at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:413)
>  at 
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)
>  at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
>  at 
> hudson.util.spring.DefaultRuntimeSpringConfiguration.getApplicationContext(DefaultRuntimeSpringConfiguration.java:94)
>  at 
> hudson.util.spring.BeanBuilder.createApplicationContext(BeanBuilder.java:388)
>  at 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm.createSecurityComponents(ActiveDirectorySecurityRealm.java:97)
>  at 
> hudson.security.SecurityRealm.getSecurityComponents(SecurityRealm.java:359)
>  at hudson.security.HudsonFilter.reset(HudsonFilter.java:134)
>  at hudson.model.Hudson.setSecurityRealm(Hudson.java:1775)
>  at hudson.model.Hudson$13.run(Hudson.java:2173)
>  at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
>  at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
>  at hudson.model.Hudson$3.runTask(Hudson.java:678)
>  at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
>  at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
>  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>  at java.lang.Thread.run(Unknown Source)
> Caused by: org.springframework.beans.BeanInstantiationException: Could
> not instantiate bean class
> [hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider]:
> Constructor threw exception; nested exception is
> com4j.ExecutionException: com4j.ComException: 8007054b Failed to
> MkParseDisplayName : The specified domain either does not exist or
> could not be contacted. : .\com4j.cpp:196
>  at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:98)
>  at 
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
>  at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:911)
>  ... 27 more
> Caused by: com4j.ExecutionException: com4j.ComException: 8007054b
> Failed to MkParseDisplayName : The specified domain either does not
> exist or could not be contacted. : .\com4j.cpp:196
>  at com4j.ComThread.execute(ComThread.java:189)
>  at com4j.Task.execute(Task.java:23)
>  at com4j.COM4J.getObject(COM4J.java:224)
>  at 
> hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider.(ActiveDirectoryAuthenticationProvider.java:48)
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
>  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
> Source)
>  at java.lang.reflect.Constructor.newInstance(Unknown Source)
>  at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83)
>  ... 29 more
> Caused by: com4j.ComException: 8007054b Failed to MkParseDisplayName :
> The specified domain either does not exist or could not be contacted.
> : .\com4j.cpp:196
>  at com4j.Native.getObject(Native Method)
>  at com4j.COM4J$GetObjectTask.call(COM4J.java:239)
>  at com4j.COM4J$GetObjectTask.call(COM4J.java:227)
>  at com4j.Task.invoke(Task.java:44)
>  at com4j.ComThread.run0(ComThread.java:149)
>  at com4j.ComThread.run(ComThread.java:125)
> Page generated: Jun 2, 2011 8:38:46 AMHudson ver. 1.368
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0577a56d-4f22-4702-b689-d9e76e8cfe2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to