com.intellij.util.IncorrectOperationException: Cannot modify a read-only file 'C:\Users\Irina.Petrovskaya\IdeaProjects\gitTests\diffTest\src\spring-config.xml'.

YouTrack | 2 months ago
  1. 0

    Spring: Generate | property action in read-only spring xml configuration files causes exception

    YouTrack | 2 months ago
    com.intellij.util.IncorrectOperationException: Cannot modify a read-only file 'C:\Users\Irina.Petrovskaya\IdeaProjects\gitTests\diffTest\src\spring-config.xml'.
  2. 0

    Using [MyBatis] Generate Properties in mapper xml <resultMap>

    GitHub | 2 years ago | crtab
    com.intellij.util.IncorrectOperationException: Element cannot be added
  3. 0

    Element cannot be added: Element cannot be added

    GitHub | 3 years ago | natros
    com.intellij.util.IncorrectOperationException: Element cannot be added
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring webflow: attempt to create exception-handler bean fails if the target spring config is read-only

    YouTrack | 5 years ago
    com.intellij.util.IncorrectOperationException: Cannot modify a read-only file 'C:\Documents and Settings\Irina.Petrovskaya\IdeaProjects\SpringWebflow\newTests\jpa&mvc&webflow\web\WEB-INF\applicationContext.xml'.
  6. 0

    IncorrectOperationException on attempt to invoke Add Security Filter quickfix

    YouTrack | 4 years ago
    com.intellij.util.IncorrectOperationException: Cannot modify a read-only file 'C:\Users\Irina.Petrovskaya\.m2\repository\org\springframework\spring-web\3.2.0.RELEASE\spring-web-3.2.0.RELEASE.jar!\META-INF\web-fragment.xml'.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.intellij.util.IncorrectOperationException

      Cannot modify a read-only file 'C:\Users\Irina.Petrovskaya\IdeaProjects\gitTests\diffTest\src\spring-config.xml'.

      at com.intellij.psi.impl.CheckUtil.checkWritable()
    2. IDEA
      DomInvocationHandler.invoke
      1. com.intellij.psi.impl.CheckUtil.checkWritable(CheckUtil.java:47)
      2. com.intellij.psi.impl.source.tree.CompositePsiElement.addAfter(CompositePsiElement.java:161)
      3. com.intellij.util.xml.impl.DomInvocationHandler.a(DomInvocationHandler.java:820)
      4. com.intellij.util.xml.impl.DomInvocationHandler.addCollectionChild(DomInvocationHandler.java:787)
      5. com.intellij.util.xml.impl.AddChildInvocation.invoke(AddChildInvocation.java:43)
      6. com.intellij.util.xml.impl.DomInvocationHandler.invoke(DomInvocationHandler.java:681)
      6 frames
    3. com.intellij.spring
      SpringBeanImpl$$EnhancerByJetBrainsMainCglib$$2bef2e3f.addProperty
      1. com.intellij.spring.model.xml.beans.impl.SpringBeanImpl$$EnhancerByJetBrainsMainCglib$$2bef2e3f.addProperty(<generated>)
      1 frame
    4. IntelliJ spring module
      SpringPropertiesGenerateProvider$1.run
      1. com.intellij.spring.model.actions.generate.SpringPropertiesGenerateProvider$1.run(SpringPropertiesGenerateProvider.java:82)
      1 frame
    5. IDEA
      WriteCommandAction.execute
      1. com.intellij.openapi.command.WriteCommandAction$Simple.run(WriteCommandAction.java:182)
      2. com.intellij.openapi.application.RunResult.run(RunResult.java:35)
      3. com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:109)
      4. com.intellij.openapi.command.WriteCommandAction$4.run(WriteCommandAction.java:157)
      5. com.intellij.openapi.command.impl.CoreCommandProcessor.a(CoreCommandProcessor.java:141)
      6. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:119)
      7. com.intellij.openapi.command.WriteCommandAction.doExecuteCommand(WriteCommandAction.java:160)
      8. com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:104)
      9. com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:82)
      9 frames
    6. IntelliJ spring module
      SpringPropertiesGenerateProvider.generate
      1. com.intellij.spring.model.actions.generate.SpringPropertiesGenerateProvider.doGenerate(SpringPropertiesGenerateProvider.java:85)
      2. com.intellij.spring.model.actions.generate.SpringPropertiesGenerateProvider.generate(SpringPropertiesGenerateProvider.java:65)
      3. com.intellij.spring.model.actions.generate.SpringPropertiesGenerateProvider.generate(SpringPropertiesGenerateProvider.java:34)
      3 frames
    7. DSL
      AbstractDomGenerateProvider.generate
      1. com.intellij.util.xml.actions.generate.AbstractDomGenerateProvider.generate(AbstractDomGenerateProvider.java:52)
      1 frame
    8. Openapi
      GenerateDomElementAction$1.invoke
      1. com.intellij.util.xml.ui.actions.generate.GenerateDomElementAction$1.lambda$invoke$0(GenerateDomElementAction.java:60)
      2. com.intellij.util.xml.ui.actions.generate.GenerateDomElementAction$1.invoke(GenerateDomElementAction.java:73)
      2 frames
    9. IDEA
      AbstractPopup.a
      1. com.intellij.codeInsight.actions.CodeInsightAction.lambda$null$0(CodeInsightAction.java:64)
      2. com.intellij.codeInsight.actions.CodeInsightAction.lambda$actionPerformedImpl$1(CodeInsightAction.java:70)
      3. com.intellij.openapi.command.impl.CoreCommandProcessor.a(CoreCommandProcessor.java:149)
      4. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:109)
      5. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
      6. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
      7. com.intellij.codeInsight.actions.CodeInsightAction.actionPerformedImpl(CodeInsightAction.java:60)
      8. com.intellij.codeInsight.actions.CodeInsightAction.actionPerformed(CodeInsightAction.java:41)
      9. com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:199)
      10. com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:91)
      11. com.intellij.openapi.application.TransactionGuardImpl.submitTransactionAndWait(TransactionGuardImpl.java:159)
      12. com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:213)
      13. com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep.performAction(PopupFactoryImpl.java:874)
      14. com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep.a(PopupFactoryImpl.java:862)
      15. com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:204)
      16. com.intellij.ui.popup.AbstractPopup.a(AbstractPopup.java:1392)
      16 frames
    10. Java RT
      EventQueue.dispatchEvent
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      3. java.awt.EventQueue.access$500(EventQueue.java:97)
      4. java.awt.EventQueue$3.run(EventQueue.java:709)
      5. java.awt.EventQueue$3.run(EventQueue.java:703)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      8 frames
    11. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.j(IdeEventQueue.java:838)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:674)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
      3 frames
    12. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames