• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.15.0
    • 2.0.0
    • None

      Despite this error, the changes are saved indeed.

      However, when closing the tool, another error saying it can't verify if changes are saved appears (screenshot closing), hence tool cannot be closed.

          [SKINFACTORY-148] Error when saving changes

          Caroline Bayle added a comment - - edited

          Reproduced with 2.2.0, with packaged application, not with templates

          Same issue while clicking on Go-live buttons

          The tool can't be closed, no modification can be made on the skin after this error.

          Caroline Bayle added a comment - - edited Reproduced with 2.2.0, with packaged application, not with templates Same issue while clicking on Go-live buttons The tool can't be closed, no modification can be made on the skin after this error.

          Second error when closing the tool

          java.lang.NullPointerException 
              at org.ametys.plugins.skincommons.SkinLockManager.canWrite(SkinLockManager.java:63) 
              at org.ametys.plugins.skincommons.CommonSkinDAO.checkUnsaveModifications(CommonSkinDAO.java:115) 
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
              at java.lang.reflect.Method.invoke(Unknown Source) 
              at org.ametys.core.ui.ExecuteClientCallsAction._executeMethod(ExecuteClientCallsAction.java:133) 
          

          Doha Lagouilly (Inactive) added a comment - Second error when closing the tool java.lang.NullPointerException at org.ametys.plugins.skincommons.SkinLockManager.canWrite(SkinLockManager.java:63) at org.ametys.plugins.skincommons.CommonSkinDAO.checkUnsaveModifications(CommonSkinDAO.java:115) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.ametys.core.ui.ExecuteClientCallsAction._executeMethod(ExecuteClientCallsAction.java:133)

          First error for saving

          Unable to delete file: D:\Ametys-4.0M8\webapp\cms\WEB-INF\data\skins\temp\demo\resources\img\subitem.png
          java.io.IOException: Unable to delete file: D:\Ametys-4.0M8\webapp\cms\WEB-INF\data\skins\temp\demo\resources\img\subitem.png 
              at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279) 
              at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) 
              at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) 
              at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) 
              at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) 
              at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) 
              at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) 
              at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) 
              at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) 
              at org.apache.commons.io.FileUtils.moveDirectory(FileUtils.java:2756) 
              at org.ametys.plugins.skincommons.CommonSkinDAO.saveChanges(CommonSkinDAO.java:170) 
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
              at java.lang.reflect.Method.invoke(Unknown Source) 
              at org.ametys.core.ui.ExecuteClientCallsAction._executeMethod(ExecuteClientCallsAction.java:133) 
              at org.ametys.core.ui.ExecuteClientCallsAction.act(ExecuteClientCallsAction.java:120) 
              at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120) 
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) 
              at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) 
          

          Doha Lagouilly (Inactive) added a comment - First error for saving Unable to delete file: D:\Ametys-4.0M8\webapp\cms\WEB-INF\data\skins\temp\demo\resources\img\subitem.png java.io.IOException: Unable to delete file: D:\Ametys-4.0M8\webapp\cms\WEB-INF\data\skins\temp\demo\resources\img\subitem.png at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.moveDirectory(FileUtils.java:2756) at org.ametys.plugins.skincommons.CommonSkinDAO.saveChanges(CommonSkinDAO.java:170) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.ametys.core.ui.ExecuteClientCallsAction._executeMethod(ExecuteClientCallsAction.java:133) at org.ametys.core.ui.ExecuteClientCallsAction.act(ExecuteClientCallsAction.java:120) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)

            Unassigned Unassigned
            dlagouilly Doha Lagouilly (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: