We're updating the issue view to help you get more done. 

OpenOffice DisposedException prevents all subsequent OpenOffice document generation

Description

From a 1.9-SNAPSHOT error report:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 com.sun.star.lang.DisposedException: java_remote_bridge com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge@30f9c796 is disposed at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.checkDisposed(java_remote_bridge.java:699) at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:620) at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:146) at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:123) at com.sun.proxy.$Proxy21.queryInterface(Unknown Source) at com.sun.star.uno.UnoRuntime.queryInterface(UnoRuntime.java:149) at com.sun.star.uno.UnoRuntime.queryInterface(UnoRuntime.java:177) at org.openvpms.report.openoffice.OpenOfficeDocument.close(OpenOfficeDocument.java:383) at org.openvpms.report.openoffice.OpenOfficeIMReport.create(OpenOfficeIMReport.java:369) at org.openvpms.report.openoffice.OpenOfficeIMReport.generate(OpenOfficeIMReport.java:247) at org.openvpms.web.component.im.report.Reporter.getDocument(Reporter.java:141) at org.openvpms.web.component.im.report.Reporter.getDocument(Reporter.java:123) at org.openvpms.web.component.im.doc.DocumentGenerator.generate(DocumentGenerator.java:226) at org.openvpms.web.component.im.doc.DocumentGenerator.generate(DocumentGenerator.java:237) at org.openvpms.web.component.im.doc.DocumentGenerator.generate(DocumentGenerator.java:203) at org.openvpms.web.component.im.doc.DocumentGenerator.generate(DocumentGenerator.java:185) at org.openvpms.web.component.im.doc.DocumentGenerator.generate(DocumentGenerator.java:174) at org.openvpms.web.component.im.doc.DocumentActEditor.generateDoc(DocumentActEditor.java:309) at org.openvpms.web.component.im.doc.DocumentActEditor.onTemplateUpdate(DocumentActEditor.java:289) at org.openvpms.web.component.im.doc.DocumentActEditor.access$100(DocumentActEditor.java:52) at org.openvpms.web.component.im.doc.DocumentActEditor$2.modified(DocumentActEditor.java:186) at org.openvpms.web.component.property.ModifiableListeners.notifyListeners(ModifiableListeners.java:92) at org.openvpms.web.component.edit.Editors.onModified(Editors.java:397) at org.openvpms.web.component.edit.Editors$1.modified(Editors.java:100) at org.openvpms.web.component.property.ModifiableListeners.notifyListeners(ModifiableListeners.java:92) at org.openvpms.web.component.property.AbstractProperty.refresh(AbstractProperty.java:543) at org.openvpms.web.component.property.IMObjectProperty.setValue(IMObjectProperty.java:126) at org.openvpms.web.component.im.edit.AbstractIMObjectReferenceEditor.updateProperty(AbstractIMObjectReferenceEditor.java:227) at org.openvpms.web.component.im.edit.AbstractSelectorPropertyEditor.updateProperty(AbstractSelectorPropertyEditor.java:251) at org.openvpms.web.component.im.edit.AbstractSelectorPropertyEditor.setObject(AbstractSelectorPropertyEditor.java:149) at org.openvpms.web.component.im.edit.AbstractSelectorPropertyEditor.onSelected(AbstractSelectorPropertyEditor.java:209) at org.openvpms.web.component.im.edit.AbstractSelectorPropertyEditor.onSelected(AbstractSelectorPropertyEditor.java:221) at org.openvpms.web.component.im.edit.AbstractSelectorPropertyEditor$1.selected(AbstractSelectorPropertyEditor.java:106) at org.openvpms.web.component.im.select.IMObjectSelector.onSelected(IMObjectSelector.java:337) at org.openvpms.web.component.im.select.IMObjectSelector$4.onClose(IMObjectSelector.java:313) at org.openvpms.web.echo.event.WindowPaneListener.windowPaneClosing(WindowPaneListener.java:37) at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:154) at org.openvpms.web.echo.dialog.PopupWindow.fireWindowClosing(PopupWindow.java:229) at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:795) at org.openvpms.web.echo.dialog.PopupDialog.userClose(PopupDialog.java:281) at org.openvpms.web.echo.dialog.PopupWindow.close(PopupWindow.java:156) at org.openvpms.web.echo.dialog.PopupDialog.close(PopupDialog.java:455) at org.openvpms.web.component.im.query.BrowserDialog.close(BrowserDialog.java:270) at org.openvpms.web.echo.dialog.PopupDialog.onOK(PopupDialog.java:342) at org.openvpms.web.component.im.query.BrowserDialog.onOK(BrowserDialog.java:250) at org.openvpms.web.component.im.query.BrowserDialog.onSelected(BrowserDialog.java:291) at org.openvpms.web.component.im.query.BrowserDialog$2.selected(BrowserDialog.java:233) at org.openvpms.web.component.im.query.AbstractBrowser.notifySelected(AbstractBrowser.java:111) at org.openvpms.web.component.im.query.AbstractTableBrowser.onSelect(AbstractTableBrowser.java:357) at org.openvpms.web.component.im.query.AbstractTableBrowser.access$000(AbstractTableBrowser.java:48) at org.openvpms.web.component.im.query.AbstractTableBrowser$1.onAction(AbstractTableBrowser.java:248) at org.openvpms.web.echo.event.ActionListener.actionPerformed(ActionListener.java:40) at nextapp.echo2.app.Table.fireActionEvent(Table.java:332) at nextapp.echo2.app.Table.processInput(Table.java:586) at org.openvpms.web.echo.table.KeyTable.processInput(KeyTable.java:131) at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:471) at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273) at org.openvpms.web.echo.servlet.SpringWebContainerServlet.process(SpringWebContainerServlet.java:178) at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.openvpms.web.echo.servlet.Log4JMDCUserFilter.doFilter(Log4JMDCUserFilter.java:58) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source)

This reportedly prevents subsequent document generation and probably printing as well.
The workaround is to restart Tomcat. Killing the OpenOffice processes is not sufficient

Environment

OpenOffice 4.1.2

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Components

Fix versions

Affects versions

1.8
1.9

Priority

Minor