{"action":"created","issue":{"url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/207","labels_url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/207/comments","events_url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/207/events","html_url":"https://github.com/Alfresco/alfresco-sdk/issues/207","id":40265216,"number":207,"title":"Add/Edit tags doesn't work with spring-loaded","user":{"login":"bhagyas","id":750003,"avatar_url":"https://avatars.githubusercontent.com/u/750003?v=3","gravatar_id":"","url":"https://api.github.com/users/bhagyas","html_url":"https://github.com/bhagyas","followers_url":"https://api.github.com/users/bhagyas/followers","following_url":"https://api.github.com/users/bhagyas/following{/other_user}","gists_url":"https://api.github.com/users/bhagyas/gists{/gist_id}","starred_url":"https://api.github.com/users/bhagyas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhagyas/subscriptions","organizations_url":"https://api.github.com/users/bhagyas/orgs","repos_url":"https://api.github.com/users/bhagyas/repos","events_url":"https://api.github.com/users/bhagyas/events{/privacy}","received_events_url":"https://api.github.com/users/bhagyas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Alfresco/alfresco-sdk/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"mindthegab","id":961272,"avatar_url":"https://avatars.githubusercontent.com/u/961272?v=3","gravatar_id":"","url":"https://api.github.com/users/mindthegab","html_url":"https://github.com/mindthegab","followers_url":"https://api.github.com/users/mindthegab/followers","following_url":"https://api.github.com/users/mindthegab/following{/other_user}","gists_url":"https://api.github.com/users/mindthegab/gists{/gist_id}","starred_url":"https://api.github.com/users/mindthegab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindthegab/subscriptions","organizations_url":"https://api.github.com/users/mindthegab/orgs","repos_url":"https://api.github.com/users/mindthegab/repos","events_url":"https://api.github.com/users/mindthegab/events{/privacy}","received_events_url":"https://api.github.com/users/mindthegab/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Alfresco/alfresco-sdk/milestones/3","html_url":"https://github.com/Alfresco/alfresco-sdk/milestones/2.1.0","labels_url":"https://api.github.com/repos/Alfresco/alfresco-sdk/milestones/3/labels","id":726395,"number":3,"title":"2.1.0","description":"","creator":{"login":"mindthegab","id":961272,"avatar_url":"https://avatars.githubusercontent.com/u/961272?v=3","gravatar_id":"","url":"https://api.github.com/users/mindthegab","html_url":"https://github.com/mindthegab","followers_url":"https://api.github.com/users/mindthegab/followers","following_url":"https://api.github.com/users/mindthegab/following{/other_user}","gists_url":"https://api.github.com/users/mindthegab/gists{/gist_id}","starred_url":"https://api.github.com/users/mindthegab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindthegab/subscriptions","organizations_url":"https://api.github.com/users/mindthegab/orgs","repos_url":"https://api.github.com/users/mindthegab/repos","events_url":"https://api.github.com/users/mindthegab/events{/privacy}","received_events_url":"https://api.github.com/users/mindthegab/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":0,"state":"open","created_at":"2014-07-20T14:38:10Z","updated_at":"2015-02-18T18:33:08Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2014-08-14T15:18:52Z","updated_at":"2015-03-03T12:18:42Z","closed_at":null,"body":"Alfresco Tag/Tagging functionality gets broken when spring loaded is used.\r\n\r\nThe error can be traced to SerializationUtils.java: deserialize method.\r\n\r\nThe above method throws an exception indicating its unable to find the `org.alfresco.service.cmr.repository.NodeRef` class."},"comment":{"url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/comments/76935250","html_url":"https://github.com/Alfresco/alfresco-sdk/issues/207#issuecomment-76935250","issue_url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/207","id":76935250,"user":{"login":"skopf","id":5469536,"avatar_url":"https://avatars.githubusercontent.com/u/5469536?v=3","gravatar_id":"","url":"https://api.github.com/users/skopf","html_url":"https://github.com/skopf","followers_url":"https://api.github.com/users/skopf/followers","following_url":"https://api.github.com/users/skopf/following{/other_user}","gists_url":"https://api.github.com/users/skopf/gists{/gist_id}","starred_url":"https://api.github.com/users/skopf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skopf/subscriptions","organizations_url":"https://api.github.com/users/skopf/orgs","repos_url":"https://api.github.com/users/skopf/repos","events_url":"https://api.github.com/users/skopf/events{/privacy}","received_events_url":"https://api.github.com/users/skopf/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T12:18:42Z","updated_at":"2015-03-03T12:18:42Z","body":"I can also reproduce this problem. It is a general issue of spring-loaded in combination with Alfresco.\r\n\r\nI get this Exception in a JUnit test with the following stacktrace:\r\n```\r\nCaused by: org.alfresco.error.AlfrescoRuntimeException: 02030394 Failed to deserialize\r\n\tat org.alfresco.util.SerializationUtils.deserialize(SerializationUtils.java:234)\r\n\tat org.alfresco.util.SerializationUtils.deserialize(SerializationUtils.java:273)\r\n\tat org.alfresco.util.ValueProtectingMap.protectValue(ValueProtectingMap.java:110)\r\n\tat org.alfresco.util.ValueProtectingMap.cloneMap(ValueProtectingMap.java:153)\r\n\tat org.alfresco.util.ValueProtectingMap.cloneMap(ValueProtectingMap.java:258)\r\n\tat org.alfresco.util.ValueProtectingMap.keySet(ValueProtectingMap.java:426)\r\n\tat org.alfresco.repo.rule.ruletrigger.OnPropertyUpdateRuleTrigger.havePropertiesBeenModified(OnPropertyUpdateRuleTrigger.java:126)\r\n\tat org.alfresco.repo.rule.ruletrigger.OnPropertyUpdateRuleTrigger.onUpdateProperties(OnPropertyUpdateRuleTrigger.java:261)\r\n\tat sun.reflect.GeneratedMethodAccessor737.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)\r\n\tat org.alfresco.repo.policy.JavaBehaviour$JavaMethodInvocationHandler.invoke(JavaBehaviour.java:174)\r\n\tat com.sun.proxy.$Proxy86.onUpdateProperties(Unknown Source)\r\n\tat sun.reflect.GeneratedMethodAccessor715.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)\r\n\tat org.alfresco.repo.policy.PolicyFactory$MultiHandler.invoke(PolicyFactory.java:354)\r\n\tat org.alfresco.repo.policy.$Proxy234.onUpdateProperties(Unknown Source)\r\n\tat org.alfresco.repo.node.AbstractNodeServiceImpl.invokeOnUpdateProperties(AbstractNodeServiceImpl.java:465)\r\n\tat org.alfresco.repo.node.db.DbNodeServiceImpl.addAspectsAndProperties(DbNodeServiceImpl.java:548)\r\n\tat org.alfresco.repo.node.db.DbNodeServiceImpl.addAspectsAndProperties(DbNodeServiceImpl.java:445)\r\n\tat org.alfresco.repo.node.db.DbNodeServiceImpl.addAspect(DbNodeServiceImpl.java:783)\r\n```\r\n\r\nThis problem is caused by this code line:\r\n```java\r\n    @SuppressWarnings(\"unchecked\")\r\n    public static <S extends Serializable> S protectValue(S value, Set<Class<?>> immutableClasses)\r\n    {\r\n        if (!mustProtectValue(value, immutableClasses))\r\n        {\r\n            return value;\r\n        }\r\n        // We have to clone it\r\n        // No worries about the return type; it has to be the same as we put into the serializer\r\n        return (S) SerializationUtils.deserialize(SerializationUtils.serialize(value));\r\n    }\r\n```\r\n\r\nEven configuring spring-loaded to exclude the entire org.alfresco.service namespace does not help. I will debug spring-loaded and identify the root cause....."}}