Uploaded image for project: 'ACE'
  1. ACE
  2. ACE-269

Target no longer resolves after randomly adding/removing bundles.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • None
    • None
    • UI
    • None
    • Windows 7, With authentication enabled (all config filed adapted, login d/f)

    Description

      If you deploy a clean agent (I used the ace launcher) on a clean server (I used the ace devserver), the target appears and resolves. However, if I deploy the Amdatu kitchensink on it, including the local and web demo, it no longer does. Even after I then detach all bundles, distributions and features from the target, the target won't resolve.

      I managed to do this 2 out of 2 times, using the method explained above. The first time I got no exceptions, but the second time I got a giant list of the same exception over and over again, being:

      2012.05.01 10:22:32 WARNING - Bundle: org.apache.felix.http.jetty - /deployment/defaultTargetID/versions/38.0.0 - java.lang.RuntimeException: org.mortbay.jetty.EofException
      at org.apache.ace.deployment.servlet.DeploymentServlet.tryClose(DeploymentServlet.java:243)
      at org.apache.ace.deployment.servlet.DeploymentServlet.handlePackageDelivery(DeploymentServlet.java:218)
      at org.apache.ace.deployment.servlet.DeploymentServlet.doGet(DeploymentServlet.java:100)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at org.apache.ace.deployment.servlet.DeploymentServlet.service(DeploymentServlet.java:132)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
      at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
      at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
      at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
      at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:326)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      Caused by: org.mortbay.jetty.EofException
      at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:789)
      at org.mortbay.jetty.HttpConnection.flushResponse(HttpConnection.java:693)
      at org.mortbay.jetty.HttpConnection$Output.close(HttpConnection.java:997)
      at org.apache.ace.deployment.servlet.DeploymentServlet.tryClose(DeploymentServlet.java:238)
      ... 27 more
      Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
      at sun.nio.ch.SocketDispatcher.write0(Native Method)
      at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
      at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:69)
      at sun.nio.ch.IOUtil.write(IOUtil.java:26)
      at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
      at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:169)
      at org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:221)
      at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:723)
      ... 30 more

      2012.05.01 10:22:32 WARNING - Bundle: org.apache.ace.deployment.servlet - Exception trying to close stream after request. - org.mortbay.jetty.EofException
      at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:789)
      at org.mortbay.jetty.HttpConnection.flushResponse(HttpConnection.java:693)
      at org.mortbay.jetty.HttpConnection$Output.close(HttpConnection.java:997)
      at org.apache.ace.deployment.servlet.DeploymentServlet.tryClose(DeploymentServlet.java:238)
      at org.apache.ace.deployment.servlet.DeploymentServlet.handlePackageDelivery(DeploymentServlet.java:218)
      at org.apache.ace.deployment.servlet.DeploymentServlet.doGet(DeploymentServlet.java:100)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at org.apache.ace.deployment.servlet.DeploymentServlet.service(DeploymentServlet.java:132)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
      at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
      at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
      at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
      at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:326)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
      at sun.nio.ch.SocketDispatcher.write0(Native Method)
      at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
      at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:69)
      at sun.nio.ch.IOUtil.write(IOUtil.java:26)
      at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
      at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:169)
      at org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:221)
      at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:723)
      ... 30 more

      If I stop the agent and restart it with a cleaned cache (that is, I removed the folder named felix-cache) it works again.

      NOTE: When adding/removing bundles, I did this in a 'bulk-way'. I selected multiple bundles and provisioned/deprovisioned (I did not remove the bundles entirely from the view) them, instead of one by one.

      I got this exception in the target console. However, I'm not sure if it is related, since I'm not sure when it was thrown (sorry for that)
      Exception in thread "Apache Felix DeploymentAdmin - ExplodingOutputtingInputStream" java.lang.NullPointerException
      at org.apache.felix.deploymentadmin.ExplodingOutputtingInputStream.run(ExplodingOutputtingInputStream.java:116)
      at java.lang.Thread.run(Thread.java:662)

      Attachments

        Activity

          People

            jajans J.W. Janssen
            matthijsh Matthijs Hendriks
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: