SmartIntroduce-assertion when extracting a local variable on a JSP

Assertion failed: Check consistency failed for: Jspx DummyHolder
      oldFile.getNode().getTextLength() = 2929
      getContents().length() = 2886
      language = Language: JAVA_HOLDER_METHOD_TREE
java.lang.Throwable
     at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
     at
com.intellij.psi.CompositeLanguageFileViewProvider.checkConsistensy(CompositeLanguageFileViewProvider.java:172)
     at
com.intellij.psi.CompositeLanguageFileViewProvider.updateOuterLanguageElements(CompositeLanguageFileViewProvider.java:194)
     at
com.intellij.psi.CompositeLanguageFileViewProvider.c(CompositeLanguageFileViewProvider.java:154)
     at
com.intellij.psi.CompositeLanguageFileViewProvider.b(CompositeLanguageFileViewProvider.java:236)
     at
com.intellij.psi.CompositeLanguageFileViewProvider.rootChanged(CompositeLanguageFileViewProvider.java:164)
     at com.intellij.psi.impl.source.PsiFileImpl.subtreeChanged(PsiFileImpl.java:21)
     at
com.intellij.psi.impl.source.tree.RepositoryTreeElement.subtreeChanged(RepositoryTreeElement.java:10)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at com.intellij.psi.impl.source.tree.ChangeUtil$7.runInner(ChangeUtil.java:15)
     at com.intellij.pom.impl.PomTransactionBase.run(PomTransactionBase.java:41)
     at com.intellij.pom.core.impl.PomModelImpl.runTransaction(PomModelImpl.java:12)
     at com.intellij.psi.impl.source.tree.ChangeUtil.a(ChangeUtil.java:11)
     at com.intellij.psi.impl.source.tree.ChangeUtil.addChild(ChangeUtil.java:149)
     at
com.intellij.psi.impl.source.tree.CompositeElement.addChild(CompositeElement.java:168)
     at
com.intellij.psi.impl.source.tree.ChangeUtil.addChildren(ChangeUtil.java:264)
     at
com.intellij.psi.impl.source.tree.CompositeElement.addChildren(CompositeElement.java:39)
     at
com.intellij.psi.impl.source.codeStyle.CodeEditUtil.addChildren(CodeEditUtil.java:88)
     at
com.intellij.psi.impl.source.tree.CompositeElement.addInternal(CompositeElement.java:182)
     at
com.intellij.psi.impl.source.jsp.jspJava.JspCodeBlock.addInternal(JspCodeBlock.java:99)
     at
com.intellij.psi.impl.source.tree.CompositePsiElement.a(CompositePsiElement.java:110)
     at
com.intellij.psi.impl.source.tree.CompositePsiElement.addBefore(CompositePsiElement.java:103)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase$1.run(IntroduceVariableBase.java:11)
     at
com.intellij.openapi.application.impl.ApplicationImpl$9.compute(ApplicationImpl.java:2)
     at
com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:11)
     at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:434)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase$2.run(IntroduceVariableBase.java:2)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:41)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:55)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase.invokeImpl(IntroduceVariableBase.java:64)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase.a(IntroduceVariableBase.java:87)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase.invoke(IntroduceVariableBase.java:111)
     at
com.intellij.refactoring.actions.BaseRefactoringAction.actionPerformed(BaseRefactoringAction.java:23)
     at
org.intellij.plugins.smartIntroduce.utils.CompoundCommand.run(CompoundCommand.java:50)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:112)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:55)
     at
org.intellij.plugins.smartIntroduce.SmartIntroduceAction.runCommand(SmartIntroduceAction.java:137)
     at
org.intellij.plugins.smartIntroduce.SmartIntroduceAction.customExecute(SmartIntroduceAction.java:121)
     at
org.intellij.plugins.smartIntroduce.SmartIntroduceAction.actionPerformed(SmartIntroduceAction.java:72)
     at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:218)
     at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:6)
     at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:61)
     at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:41)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
     at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



java.lang.AssertionError
     at
com.intellij.psi.CompositeLanguageFileViewProvider.updateOuterLanguageElements(CompositeLanguageFileViewProvider.java:291)
     at
com.intellij.psi.CompositeLanguageFileViewProvider.c(CompositeLanguageFileViewProvider.java:154)
     at
com.intellij.psi.CompositeLanguageFileViewProvider.b(CompositeLanguageFileViewProvider.java:236)
     at
com.intellij.psi.CompositeLanguageFileViewProvider.rootChanged(CompositeLanguageFileViewProvider.java:164)
     at com.intellij.psi.impl.source.PsiFileImpl.subtreeChanged(PsiFileImpl.java:21)
     at
com.intellij.psi.impl.source.tree.RepositoryTreeElement.subtreeChanged(RepositoryTreeElement.java:10)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at com.intellij.psi.impl.source.tree.ChangeUtil$7.runInner(ChangeUtil.java:15)
     at com.intellij.pom.impl.PomTransactionBase.run(PomTransactionBase.java:41)
     at com.intellij.pom.core.impl.PomModelImpl.runTransaction(PomModelImpl.java:12)
     at com.intellij.psi.impl.source.tree.ChangeUtil.a(ChangeUtil.java:11)
     at
com.intellij.psi.impl.source.tree.ChangeUtil.replaceChild(ChangeUtil.java:80)
     at
com.intellij.psi.impl.source.tree.CompositeElement.replaceChild(CompositeElement.java:234)
     at
com.intellij.psi.impl.source.codeStyle.CodeEditUtil.replaceChild(CodeEditUtil.java:5)
     at
com.intellij.psi.impl.source.tree.CompositeElement.replaceChildInternal(CompositeElement.java:178)
     at
com.intellij.psi.impl.source.tree.CompositePsiElement.replace(CompositePsiElement.java:49)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase$1.run(IntroduceVariableBase.java:5)
     at
com.intellij.openapi.application.impl.ApplicationImpl$9.compute(ApplicationImpl.java:2)
     at
com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:11)
     at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:434)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase$2.run(IntroduceVariableBase.java:2)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:41)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:55)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase.invokeImpl(IntroduceVariableBase.java:64)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase.a(IntroduceVariableBase.java:87)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase.invoke(IntroduceVariableBase.java:111)
     at
com.intellij.refactoring.actions.BaseRefactoringAction.actionPerformed(BaseRefactoringAction.java:23)
     at
org.intellij.plugins.smartIntroduce.utils.CompoundCommand.run(CompoundCommand.java:50)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:112)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:55)
     at
org.intellij.plugins.smartIntroduce.SmartIntroduceAction.runCommand(SmartIntroduceAction.java:137)
     at
org.intellij.plugins.smartIntroduce.SmartIntroduceAction.customExecute(SmartIntroduceAction.java:121)
     at
org.intellij.plugins.smartIntroduce.SmartIntroduceAction.actionPerformed(SmartIntroduceAction.java:72)
     at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:218)
     at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:6)
     at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:61)
     at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:41)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
     at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



java.lang.AssertionError
     at
com.intellij.psi.CompositeLanguageFileViewProvider.updateOuterLanguageElements(CompositeLanguageFileViewProvider.java:291)
     at
com.intellij.psi.CompositeLanguageFileViewProvider.c(CompositeLanguageFileViewProvider.java:154)
     at
com.intellij.psi.CompositeLanguageFileViewProvider.b(CompositeLanguageFileViewProvider.java:236)
     at
com.intellij.psi.CompositeLanguageFileViewProvider.rootChanged(CompositeLanguageFileViewProvider.java:164)
     at com.intellij.psi.impl.source.PsiFileImpl.subtreeChanged(PsiFileImpl.java:21)
     at
com.intellij.psi.impl.source.tree.RepositoryTreeElement.subtreeChanged(RepositoryTreeElement.java:10)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at
com.intellij.psi.impl.source.tree.CompositeElement.subtreeChanged(CompositeElement.java:161)
     at com.intellij.psi.impl.source.tree.ChangeUtil$7.runInner(ChangeUtil.java:15)
     at com.intellij.pom.impl.PomTransactionBase.run(PomTransactionBase.java:41)
     at com.intellij.pom.core.impl.PomModelImpl.runTransaction(PomModelImpl.java:12)
     at com.intellij.psi.impl.source.tree.ChangeUtil.a(ChangeUtil.java:11)
     at
com.intellij.psi.impl.source.tree.ChangeUtil.replaceChild(ChangeUtil.java:80)
     at
com.intellij.psi.impl.source.tree.CompositeElement.replaceChild(CompositeElement.java:234)
     at
com.intellij.psi.impl.source.codeStyle.CodeEditUtil.replaceChild(CodeEditUtil.java:5)
     at
com.intellij.psi.impl.source.tree.CompositeElement.replaceChildInternal(CompositeElement.java:178)
     at
com.intellij.psi.impl.source.tree.CompositePsiElement.replace(CompositePsiElement.java:49)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase$1.run(IntroduceVariableBase.java:5)
     at
com.intellij.openapi.application.impl.ApplicationImpl$9.compute(ApplicationImpl.java:2)
     at
com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:11)
     at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:434)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase$2.run(IntroduceVariableBase.java:2)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:41)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:55)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase.invokeImpl(IntroduceVariableBase.java:64)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase.a(IntroduceVariableBase.java:87)
     at
com.intellij.refactoring.introduceVariable.IntroduceVariableBase.invoke(IntroduceVariableBase.java:111)
     at
com.intellij.refactoring.actions.BaseRefactoringAction.actionPerformed(BaseRefactoringAction.java:23)
     at
org.intellij.plugins.smartIntroduce.utils.CompoundCommand.run(CompoundCommand.java:50)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:112)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:55)
     at
org.intellij.plugins.smartIntroduce.SmartIntroduceAction.runCommand(SmartIntroduceAction.java:137)
     at
org.intellij.plugins.smartIntroduce.SmartIntroduceAction.customExecute(SmartIntroduceAction.java:121)
     at
org.intellij.plugins.smartIntroduce.SmartIntroduceAction.actionPerformed(SmartIntroduceAction.java:72)
     at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:218)
     at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:6)
     at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:61)
     at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:41)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
     at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


Please sign in to leave a comment.