Hello! i'm using intellij 14 and i'm got that error when i try do generate java docs for any EJB bean, it works for any other class but not for beans,
class declaration sample:
@Stateless
@Local({ProcessamentoTransacaoServicoLocal.class})
@Remote({ProcessamentoTransacaoServicoRemote.class})
public class ProcessamentoTransacaoServicoEJB extends SPGCrudServicoEJB implements ProcessamentoTransacaoServicoLocal, ProcessamentoTransacaoServicoRemote {
Exception:
Document is locked by write PSI operations. Use PsiDocumentManager.doPostponedOperationsAndUnblockDocument() to commit PSI changes to the document.
java.lang.RuntimeException: Document is locked by write PSI operations. Use PsiDocumentManager.doPostponedOperationsAndUnblockDocument() to commit PSI changes to the document.
at com.intellij.psi.impl.source.PostprocessReformattingAspect.beforeDocumentChanged(PostprocessReformattingAspect.java:282)
at com.intellij.psi.impl.PsiDocumentManagerImpl.beforeDocumentChangeOnUnlockedDocument(PsiDocumentManagerImpl.java:123)
at com.intellij.psi.impl.PsiDocumentManagerBase.beforeDocumentChange(PsiDocumentManagerBase.java:636)
at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:88)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:68)
at com.sun.proxy.$Proxy18.beforeDocumentChange(Unknown Source)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:746)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:714)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:601)
at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:554)
at com.intellij.psi.formatter.DocumentBasedFormattingModel.replaceWhiteSpace(DocumentBasedFormattingModel.java:134)
at com.intellij.formatting.FormatProcessor.a(FormatProcessor.java:411)
at com.intellij.formatting.FormatProcessor.access$2400(FormatProcessor.java:40)
at com.intellij.formatting.FormatProcessor$ApplyChangesState.doIteration(FormatProcessor.java:1442)
at com.intellij.formatting.FormatProcessor$State.iteration(FormatProcessor.java:1268)
at com.intellij.formatting.FormatProcessor.a(FormatProcessor.java:327)
at com.intellij.formatting.FormatProcessor.performModifications(FormatProcessor.java:314)
at com.intellij.formatting.FormatProcessor.performModifications(FormatProcessor.java:303)
at com.intellij.formatting.FormatterImpl.adjustLineIndentsForRange(FormatterImpl.java:382)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$6.doPerform(CodeStyleManagerImpl.java:380)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerRunnable.perform(CodeStyleManagerRunnable.java:112)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.adjustLineIndent(CodeStyleManagerImpl.java:377)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformatNewlyAddedElement(CodeStyleManagerImpl.java:312)
at com.github.setial.intellijjavadocs.operation.impl.JavaDocWriterImpl$WriteCommandActionImpl.run(JavaDocWriterImpl.java:100)
at com.intellij.openapi.application.RunResult.run(RunResult.java:38)
at com.intellij.openapi.command.WriteCommandAction$2$1.run(WriteCommandAction.java:114)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:974)
at com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:111)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:108)
at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:80)
at com.github.setial.intellijjavadocs.operation.impl.JavaDocWriterImpl.write(JavaDocWriterImpl.java:55)
at com.github.setial.intellijjavadocs.action.JavaDocGenerateAction.processElement(JavaDocGenerateAction.java:98)
at com.github.setial.intellijjavadocs.action.JavaDocsGenerateAction.actionPerformed(JavaDocsGenerateAction.java:45)
at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:739)
at com.intellij.ui.popup.AbstractPopup$18.run(AbstractPopup.java:1343)
at com.intellij.openapi.wm.impl.FocusManagerImpl.a(FocusManagerImpl.java:651)
at com.intellij.openapi.wm.impl.FocusManagerImpl.g(FocusManagerImpl.java:632)
at com.intellij.openapi.wm.impl.FocusManagerImpl.e(FocusManagerImpl.java:602)
at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:60)
at com.intellij.openapi.wm.impl.FocusManagerImpl$IdleRunnable.runEdt(FocusManagerImpl.java:108)
at com.intellij.openapi.util.EdtRunnable$1.run(EdtRunnable.java:28)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:748)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:577)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Hello! i'm using intellij 14 and i'm got that error when i try do generate java docs for any EJB bean, it works for any other class but not for beans,
class declaration sample: @Stateless @Local({ProcessamentoTransacaoServicoLocal.class}) @Remote({ProcessamentoTransacaoServicoRemote.class}) public class ProcessamentoTransacaoServicoEJB extends SPGCrudServicoEJB implements ProcessamentoTransacaoServicoLocal, ProcessamentoTransacaoServicoRemote {
Exception:
Document is locked by write PSI operations. Use PsiDocumentManager.doPostponedOperationsAndUnblockDocument() to commit PSI changes to the document. java.lang.RuntimeException: Document is locked by write PSI operations. Use PsiDocumentManager.doPostponedOperationsAndUnblockDocument() to commit PSI changes to the document. at com.intellij.psi.impl.source.PostprocessReformattingAspect.beforeDocumentChanged(PostprocessReformattingAspect.java:282) at com.intellij.psi.impl.PsiDocumentManagerImpl.beforeDocumentChangeOnUnlockedDocument(PsiDocumentManagerImpl.java:123) at com.intellij.psi.impl.PsiDocumentManagerBase.beforeDocumentChange(PsiDocumentManagerBase.java:636) at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:88) at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34) at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:68) at com.sun.proxy.$Proxy18.beforeDocumentChange(Unknown Source) at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:746) at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:714) at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:601) at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:554) at com.intellij.psi.formatter.DocumentBasedFormattingModel.replaceWhiteSpace(DocumentBasedFormattingModel.java:134) at com.intellij.formatting.FormatProcessor.a(FormatProcessor.java:411) at com.intellij.formatting.FormatProcessor.access$2400(FormatProcessor.java:40) at com.intellij.formatting.FormatProcessor$ApplyChangesState.doIteration(FormatProcessor.java:1442) at com.intellij.formatting.FormatProcessor$State.iteration(FormatProcessor.java:1268) at com.intellij.formatting.FormatProcessor.a(FormatProcessor.java:327) at com.intellij.formatting.FormatProcessor.performModifications(FormatProcessor.java:314) at com.intellij.formatting.FormatProcessor.performModifications(FormatProcessor.java:303) at com.intellij.formatting.FormatterImpl.adjustLineIndentsForRange(FormatterImpl.java:382) at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$6.doPerform(CodeStyleManagerImpl.java:380) at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerRunnable.perform(CodeStyleManagerRunnable.java:112) at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.adjustLineIndent(CodeStyleManagerImpl.java:377) at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformatNewlyAddedElement(CodeStyleManagerImpl.java:312) at com.github.setial.intellijjavadocs.operation.impl.JavaDocWriterImpl$WriteCommandActionImpl.run(JavaDocWriterImpl.java:100) at com.intellij.openapi.application.RunResult.run(RunResult.java:38) at com.intellij.openapi.command.WriteCommandAction$2$1.run(WriteCommandAction.java:114) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:974) at com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:111) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99) at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:108) at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:80) at com.github.setial.intellijjavadocs.operation.impl.JavaDocWriterImpl.write(JavaDocWriterImpl.java:55) at com.github.setial.intellijjavadocs.action.JavaDocGenerateAction.processElement(JavaDocGenerateAction.java:98) at com.github.setial.intellijjavadocs.action.JavaDocsGenerateAction.actionPerformed(JavaDocsGenerateAction.java:45) at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:739) at com.intellij.ui.popup.AbstractPopup$18.run(AbstractPopup.java:1343) at com.intellij.openapi.wm.impl.FocusManagerImpl.a(FocusManagerImpl.java:651) at com.intellij.openapi.wm.impl.FocusManagerImpl.g(FocusManagerImpl.java:632) at com.intellij.openapi.wm.impl.FocusManagerImpl.e(FocusManagerImpl.java:602) at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:60) at com.intellij.openapi.wm.impl.FocusManagerImpl$IdleRunnable.runEdt(FocusManagerImpl.java:108) at com.intellij.openapi.util.EdtRunnable$1.run(EdtRunnable.java:28) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744) at java.awt.EventQueue.access$400(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.awt.EventQueue$3.run(EventQueue.java:691) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.awt.EventQueue.dispatchEvent(EventQueue.java:714) at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:748) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:577) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)