java.nio.channels.ClosedChannelException

40 views
Skip to first unread message

Tomáš Fecko

unread,
Mar 10, 2016, 7:15:56 AM3/10/16
to fabric3
I'm getting too often this exception:

SEVERE:
org.fabric3.api.host.Fabric3Exception: java.nio.channels.ClosedChannelException
        at org.fabric3.monitor.appender.file.FileAppender.write(FileAppender.java:70)
        at org.fabric3.monitor.impl.destination.DefaultMonitorDestination.write(DefaultMonitorDestination.java:87)
        at org.fabric3.monitor.impl.destination.DefaultMonitorDestination.write(DefaultMonitorDestination.java:81)
        at org.fabric3.monitor.impl.destination.MonitorDestinationRegistryImpl.write(MonitorDestinationRegistryImpl.java:84)
        at org.fabric3.monitor.impl.router.RingBufferDestinationRouterImpl.send(RingBufferDestinationRouterImpl.java:193)
        at org.fabric3.monitor.impl.proxy.JDKMonitorHandler.invoke(JDKMonitorHandler.java:86)
        at com.sun.proxy.$Proxy94.logDebug(Unknown Source)
        at org.librade.gui.web2.frontend.WebAdminUI.init(WebAdminUI.java:64)
        at com.vaadin.ui.UI.doInit(UI.java:682)
        at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:214)
        at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:74)
        at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41)
        at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1409)
        at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:364)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)
        at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)
        at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)
        at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
        at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)
        at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
        at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
        at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
        at org.librade.gui.web2.frontend.LibradeGuiceFilter.doFilter(LibradeGuiceFilter.java:24)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1667)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1114)
        at org.fabric3.container.web.jetty.ManagedWebAppContext.doHandle(ManagedWebAppContext.java:86)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1048)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
        at org.fabric3.transport.jetty.impl.ExecutionContextHandler.handle(ExecutionContextHandler.java:35)
        at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:169)
        at org.fabric3.transport.jetty.management.ManagedStatisticsHandler.handle(ManagedStatisticsHandler.java:49)
        at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:56)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
        at org.eclipse.jetty.server.Server.handle(Server.java:517)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:302)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:245)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.nio.channels.ClosedChannelException
        at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:110)
        at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:199)
        at org.fabric3.monitor.appender.file.FileAppender.write(FileAppender.java:65)
        ... 53 more

Jim Marino

unread,
Mar 11, 2016, 8:47:59 AM3/11/16
to fabric3
Hi Tomas,

Do you see if the channel is closed for some reason prior to writing? If not, I wonder if we should catch and attempt to re-open it.

Jim


--
You received this message because you are subscribed to the Google Groups "fabric3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric3+u...@googlegroups.com.
To post to this group, send email to fab...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabric3/d33dcea8-c646-47a5-854a-71eb8b292ee2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tomáš Fecko

unread,
Mar 11, 2016, 9:58:07 AM3/11/16
to fabric3
no, only this, nothing indicate, what's wrong...
This happens only when web composite tries to use the monitor, which is get from other composite.
Reply all
Reply to author
Forward
0 new messages