AMorg.springframework.web.util.NestedServletException

tip

Ant scp task has an attribute called trust. If set to false (default) the host you connect to has to be set in the knownhosts file (you might have to create it) Another way is to explicitly set "trust = true". Check the documentation: https://goo.gl/G5680x

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 35#102391948
    via GitHub by rgwch
    ,
  • test
    via GitHub by door43app
    ,
    • AMorg.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException: Cannot clone or checkout repository at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)[spring-webmvc-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)[spring-webmvc-4.3.0.RC2.jar!/:4.3.0.RC2] at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)[javax.servlet-api-3.1.0.jar!/:3.1.0] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)[spring-webmvc-4.3.0.RC2.jar!/:4.3.0.RC2] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[javax.servlet-api-3.1.0.jar!/:3.1.0] at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)[spring-boot-1.4.0.M3.jar!/:1.4.0.M3] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:104)[spring-boot-actuator-1.4.0.M3.jar!/:1.4.0.M3] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:107)[spring-boot-actuator-1.4.0.M3.jar!/:1.4.0.M3] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)[undertow-core-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)[undertow-core-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)[undertow-core-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:285)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:264)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:175)[undertow-servlet-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)[undertow-core-1.3.22.Final.jar!/:1.3.22.Final] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:802)[undertow-core-1.3.22.Final.jar!/:1.3.22.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_91] Caused by: java.lang.IllegalStateException: Cannot clone or checkout repository at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.refresh(JGitEnvironmentRepository.java:158)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.getLocations(JGitEnvironmentRepository.java:121)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.getLocations(MultipleJGitEnvironmentRepository.java:111)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] at org.springframework.cloud.config.server.environment.AbstractScmEnvironmentRepository.findOne(AbstractScmEnvironmentRepository.java:40)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] at org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.findOne(MultipleJGitEnvironmentRepository.java:140)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] at org.springframework.cloud.config.server.environment.EnvironmentEncryptorEnvironmentRepository.findOne(EnvironmentEncryptorEnvironmentRepository.java:53)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] at org.springframework.cloud.config.server.environment.EnvironmentController.labelled(EnvironmentController.java:107)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] at org.springframework.cloud.config.server.environment.EnvironmentController.defaultLabel(EnvironmentController.java:96)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)[spring-web-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)[spring-webmvc-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)[spring-webmvc-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)[spring-webmvc-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)[spring-webmvc-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)[spring-webmvc-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)[spring-webmvc-4.3.0.RC2.jar!/:4.3.0.RC2] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)[spring-webmvc-4.3.0.RC2.jar!/:4.3.0.RC2] ... 56 more Caused by: org.eclipse.jgit.api.errors.TransportException: git@SERVER:USER/REPOSITORY: timeout: socket is not established at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.cloneToBasedir(JGitEnvironmentRepository.java:282)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.copyRepository(JGitEnvironmentRepository.java:255)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.createGitClient(JGitEnvironmentRepository.java:240)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.refresh(JGitEnvironmentRepository.java:146)[spring-cloud-config-server-1.1.0.RELEASE.jar!/:1.1.0.RELEASE] ... 76 more Caused by: org.eclipse.jgit.errors.TransportException: git@SERVER:USER/REPOSITORY: timeout: socket is not established at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:159)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:136)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1115)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] ... 82 more Caused by: com.jcraft.jsch.JSchException: timeout: socket is not established at com.jcraft.jsch.Util.createSocket(Util.java:389)[jsch-0.1.50.jar!/:na] at com.jcraft.jsch.Session.connect(Session.java:215)[jsch-0.1.50.jar!/:na] at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)[org.eclipse.jgit-3.5.3.201412180710-r.jar!/:3.5.3.201412180710-r] ... 89 more

    Users with the same issue

    jf-ast
    10 times, last one,
    abrazeneb
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    97 more bugmates