ava.lang.IllegalStateException: Jenkins has not been started, or was already shut down

GitHub | dcsobral | 5 months ago
  1. 0

    GitHub comment 14#239369116

    GitHub | 5 months ago | dcsobral
    ava.lang.IllegalStateException: Jenkins has not been started, or was already shut down
  2. 0

    I'm trying to change the 'AutoGrowNestedPaths' globally using a @ControllerAdvice as: {code} import org.springframework.web.bind.WebDataBinder; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.InitBinder; @ControllerAdvice public class DisableAutoGrowNestedPaths { @InitBinder public void initBinder(WebDataBinder binder) { binder.setAutoGrowNestedPaths(false); } } {code} but I get this exception: {code} ava.lang.IllegalStateException: DataBinder is already initialized - call setAutoGrowNestedPaths before other configuration methods at org.springframework.util.Assert.state(Assert.java:384) at org.springframework.validation.DataBinder.setAutoGrowNestedPaths(DataBinder.java:196) at org.mycom.web.DisableAutoGrowNestedPaths.initBinder(GlobalTest.java:13) 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:597) at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132) at org.springframework.web.method.annotation.InitBinderDataBinderFactory.initBinder(InitBinderDataBinderFactory.java:62) at org.springframework.web.bind.support.DefaultDataBinderFactory.createBinder(DefaultDataBinderFactory.java:52) at org.springframework.web.method.annotation.ModelFactory.updateBindingResult(ModelFactory.java:222) at org.springframework.web.method.annotation.ModelFactory.updateModel(ModelFactory.java:206) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.getModelAndView(RequestMappingHandlerAdapter.java:814) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:723) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:660) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:804) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:789) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:170) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:90) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:90) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:90) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:680) 500.jsp {code} Note that when I move this @InitBinder to a controller I get the same exception. I'm using a Java config setup using WebMvcConfigurerAdapter with only basic configurations. On a related note I wonder if there is a better way to set the 'AutoGrowNestedPaths' globally, e.g. in my WebConfig.java WebMvcConfigurerAdapter?

    Spring JIRA | 4 years ago | Marcel Overdijk
    ava.lang.IllegalStateException: DataBinder is already initialized - call setAutoGrowNestedPaths before other configuration methods
  3. 0

    MapLockTest failures

    GitHub | 1 year ago | hasancelik
    ava.lang.IllegalStateException: Instances haven't been shut down: [HazelcastInstance{name='_hzInstance_4065_dev', node=Address[127.0.0.1]:9026}]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Fail to user ButterKnife in Android Studio and Android 5.0

    Stack Overflow | 1 year ago | Zil Mike
    java.lang.RuntimeException: Unable to bind views for com.quinn.githubknife.ui.activity.MainActivity

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. ava.lang.IllegalStateException

      Jenkins has not been started, or was already shut down

      at jenkins.model.Jenkins.getActiveInstance()
    2. jenkins.model
      Jenkins.getActiveInstance
      1. jenkins.model.Jenkins.getActiveInstance(Jenkins.java:760)
      1 frame
    3. com.cloudbees.plugins
      CredentialsProvider.lookupCredentials
      1. com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:384)
      2. com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:360)
      2 frames
    4. org.jenkinsci.plugins
      JvctbPerformer$1.invoke
      1. org.jenkinsci.plugins.jvctb.config.CredentialsHelper.getAllCredentials(CredentialsHelper.java:50)
      2. org.jenkinsci.plugins.jvctb.config.CredentialsHelper.findCredentials(CredentialsHelper.java:41)
      3. org.jenkinsci.plugins.jvctb.perform.JvctbPerformer.doPerform(JvctbPerformer.java:80)
      4. org.jenkinsci.plugins.jvctb.perform.JvctbPerformer$1.invoke(JvctbPerformer.java:149)
      5. org.jenkinsci.plugins.jvctb.perform.JvctbPerformer$1.invoke(JvctbPerformer.java:136)
      5 frames
    5. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2772)
      1 frame
    6. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:153)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:50)
      3. hudson.remoting.Request$2.run(Request.java:332)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      4 frames
    7. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3 frames
    8. Hudson :: Remoting Layer
      Engine$1$1.run
      1. hudson.remoting.Engine$1$1.run(Engine.java:85)
      1 frame
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame