Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-2789

module delete on windows throws exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.1 GA
    • Fix Version/s: None
    • Component/s: Stream Module
    • Labels:
      None
    • Story Points:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      used module upload for processor:payload-conversion (from XD samples)
      All worked well until I tried to delete the module.
      customModule in servers.yml was set to:
      xd:
      customModule:
      home: file://c:/project/mymodulehome

      StackTrace:

      2015-03-06 01:54:33,460 1.1.0.RELEASE ERROR qtp1891077689-37 rest.RestController
      Advice - Caught exception while handling a request
      java.lang.IllegalArgumentException: Could not delete module 'processor:payload-c
      onversion'
              at org.springframework.util.Assert.isTrue(Assert.java:65)
              at org.springframework.xd.dirt.module.ModuleDefinitionService.delete(Mod
      uleDefinitionService.java:121)
              at org.springframework.xd.dirt.rest.ModulesController.delete(ModulesCont
      roller.java:155)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.springframework.web.method.support.InvocableHandlerMethod.doInvok
      e(InvocableHandlerMethod.java:221)
              at org.springframework.web.method.support.InvocableHandlerMethod.invokeF
      orRequest(InvocableHandlerMethod.java:137)
              at org.springframework.web.servlet.mvc.method.annotation.ServletInvocabl
      eHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
              at org.springframework.web.servlet.mvc.method.annotation.RequestMappingH
      andlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:777)
              at org.springframework.web.servlet.mvc.method.annotation.RequestMappingH
      andlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:706)
              at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapt
      er.handle(AbstractHandlerMethodAdapter.java:85)
              at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch
      erServlet.java:943)
              at org.springframework.web.servlet.DispatcherServlet.doService(Dispatche
      rServlet.java:877)
              at org.springframework.web.servlet.FrameworkServlet.processRequest(Frame
      workServlet.java:966)
              at org.springframework.web.servlet.FrameworkServlet.doDelete(FrameworkSe
      rvlet.java:890)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:761)
              at org.springframework.web.servlet.FrameworkServlet.service(FrameworkSer
      vlet.java:842)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
              at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684
      )
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
      Handler.java:1496)
              at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConf
      iguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConf
      iguration.java:291)
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
      equestFilter.java:107)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
      Handler.java:1467)
              at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInterna
      l(HiddenHttpMethodFilter.java:77)
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
      equestFilter.java:107)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
      Handler.java:1467)
              at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInter
      nal(HttpPutFormContentFilter.java:87)
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
      equestFilter.java:107)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
      Handler.java:1467)
              at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilter
      Internal(WebRequestTraceFilter.java:100)
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
      equestFilter.java:107)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
      Handler.java:1467)
              at org.springframework.security.web.FilterChainProxy.doFilterInternal(Fi
      lterChainProxy.java:186)
              at org.springframework.security.web.FilterChainProxy.doFilter(FilterChai
      nProxy.java:160)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
      Handler.java:1467)
              at org.springframework.boot.actuate.autoconfigure.MetricFilterAutoConfig
      uration$MetricsFilter.doFilterInternal(MetricFilterAutoConfiguration.java:90)
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
      equestFilter.java:107)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
      Handler.java:1467)
              at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java
      :499)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
      ava:137)
              at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav
      a:557)
              at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl
      er.java:231)
              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl
      er.java:1086)
              at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
      428)
              at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle
      r.java:193)
              at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle
      r.java:1020)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
      ava:135)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper
      .java:116)
              at org.eclipse.jetty.server.Server.handle(Server.java:370)
              at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(Abstrac
      tHttpConnection.java:494)
              at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(Abstra
      ctHttpConnection.java:971)
              at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.header
      Complete(AbstractHttpConnection.java:1033)
              at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
              at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      
              at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnecti
      on.java:82)
              at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn
      dPoint.java:667)
              at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd
      Point.java:52)
              at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo
      l.java:608)
              at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool
      .java:543)
              at java.lang.Thread.run(Unknown Source)
      
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            grenfro Glenn Renfro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: