<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic In sdk-3 how to test a customized class in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25338#M10972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a platform module,i try to update it to sdk-3 but can't test it on the maven build (only on maven), it work on "real" alfresco server.&lt;/P&gt;&lt;P&gt;i have a need to customise an existing alfresco java class (well i did'nt find any other way). On sdk-2 i could test it with the "virtualClasspath" and "searchVirtualFirst=true" but in sdk-3 it's said we don't need it, but i don't understand how to do it !&lt;/P&gt;&lt;P&gt;The module &lt;EM&gt;DO&lt;/EM&gt; work, if i (simply) copy the jar file on an existing alfresco instance in a VM it work.On sdk-2 it work to.&lt;/P&gt;&lt;P&gt;But if i try it with sdk-3 the class used seem to be the original alfresco...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try with hotswapagent (extraclasspath) and without but whatever is new class do work flawessly with a simple "mvn compile", but not the customized class. I did a lot "googleling" but find nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do someone know how to be sure a custom class can be read priorisise an existing class on maven sdk-3 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: i too try to make it in amp and not an jar, same think...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2017 08:08:34 GMT</pubDate>
    <dc:creator>renogarfield</dc:creator>
    <dc:date>2017-09-01T08:08:34Z</dc:date>
    <item>
      <title>In sdk-3 how to test a customized class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25338#M10972</link>
      <description>Hello,I have a platform module,i try to update it to sdk-3 but can't test it on the maven build (only on maven), it work on "real" alfresco server.i have a need to customise an existing alfresco java class (well i did'nt find any other way). On sdk-2 i could test it with the "virtualClasspath" and "</description>
      <pubDate>Fri, 01 Sep 2017 08:08:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25338#M10972</guid>
      <dc:creator>renogarfield</dc:creator>
      <dc:date>2017-09-01T08:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: In sdk-3 how to test a customized class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25339#M10973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;You will have to share more information in order to get any useful response from the community.&lt;/P&gt;&lt;P&gt;What exactly are you trying to test?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 17:56:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25339#M10973</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-09-04T17:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: In sdk-3 how to test a customized class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25340#M10974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have an maven all in one project,&lt;/P&gt;&lt;P&gt;in this project i have a module with a modified ScripNode.java class (alfresco java class).&lt;/P&gt;&lt;P&gt;if i run the project with the sdk-3 maven create a jar archive who is with the unpackaged platform war, so it is not compatible with the "true" jar of alfresco.&lt;/P&gt;&lt;P&gt;for exemple if i manualy rename the jar on aa-module it work (read before in linux). and in 'production' i can choose the tomcat classpath so it's okay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on sdk-2 we could use the context-repo.xml of runner and change "virtualClasspath", on sdk-3 we can't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it's clearer, i'm sorry i'm not fluent in english.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 08:15:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25340#M10974</guid>
      <dc:creator>renogarfield</dc:creator>
      <dc:date>2017-09-05T08:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: In sdk-3 how to test a customized class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25341#M10975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, if I understood it well, what you have is a problem with the order the jar file is loaded?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why does that import to you? If you are extending a OOTB class, then you should be using the extension mechanism to "replace" the implementation class for you, and not try to ovewrite the jar file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just trying to give you some idea, but I am afraid I could not understand your problem exactly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 00:59:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25341#M10975</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-09-06T00:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: In sdk-3 how to test a customized class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25342#M10976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well i'm not sure what you call "extension mechanism", may be i don't do it correctly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this module i change the bean who do the labelpolicy , i have this :&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="serialVersionLabelPolicy" class="xx.xx.xx.updated.UpdatedVersionLabelPolicy"&amp;nbsp; /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that what you implit ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i do is extend the update mecanisme of the node with a public ScriptNode checkin(String history, boolean majorVersion, String customLabel) function.&lt;/P&gt;&lt;P&gt;basicly what i shoud do is to say 'don't use scriptnode use MY scriptnode implementation' but i don't know how to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 08:19:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25342#M10976</guid>
      <dc:creator>renogarfield</dc:creator>
      <dc:date>2017-09-06T08:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: In sdk-3 how to test a customized class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25343#M10977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that is exactly what I wanted to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, share here the name of the context.xml file you are using to define that bean, the path you are using, and also, the full bean configuration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 17:44:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25343#M10977</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-09-06T17:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: In sdk-3 how to test a customized class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25344#M10978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well... there is no context bean for ScriptNode and that what not working...&lt;/P&gt;&lt;P&gt;bootstrap-context.xml&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;beans xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xsi:schemaLocation="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans/spring-beans-3.0.xsd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- import du modèle pour l'envoi de message --&amp;gt; &lt;BR /&gt; &amp;lt;bean id="${project.artifactId}_dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap"&amp;gt;&lt;BR /&gt; &amp;lt;property name="models"&amp;gt;&lt;BR /&gt; &amp;lt;list&amp;gt; &lt;BR /&gt; &amp;lt;value&amp;gt;alfresco/module/${project.artifactId}/model/updatedModel.xml&amp;lt;/value&amp;gt; &lt;BR /&gt; &amp;lt;/list&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;!-- &amp;lt;property name="labels"&amp;gt;&lt;BR /&gt; &amp;lt;list&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;alfresco/module/${project.artifactId}/messages/updatedModel&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;alfresco/module/${project.artifactId}/messages/updatedAction&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;/list&amp;gt; &lt;BR /&gt; &amp;lt;/property&amp;gt; --&amp;gt; &lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;!-- remplace la classe par defaut de la gestion des versions --&amp;gt;&lt;BR /&gt; &amp;lt;!-- apparement il ne peut y avoir qu'un seul "versionLabel" donc on le change --&amp;gt;&lt;BR /&gt; &amp;lt;bean id="serialVersionLabelPolicy" class="fr.gouv.dgfip.venezia.updated.UpdatedVersionLabelPolicy" /&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and webscript-context.xml&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;!--&lt;BR /&gt; Licensed to the Apache Software Foundation (ASF) under one or more&lt;BR /&gt; contributor license agreements. See the NOTICE file distributed with&lt;BR /&gt; this work for additional information regarding copyright ownership.&lt;BR /&gt; The ASF licenses this file to You under the Apache License, Version 2.0&lt;BR /&gt; (the "License"); you may not use this file except in compliance with&lt;BR /&gt; the License. You may obtain a copy of the License at&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt; Unless required by applicable law or agreed to in writing, software&lt;BR /&gt; distributed under the License is distributed on an "AS IS" BASIS,&lt;BR /&gt; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;BR /&gt; See the License for the specific language governing permissions and&lt;BR /&gt; limitations under the License.&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;beans xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xsi:schemaLocation="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans/spring-beans-3.0.xsd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="updated-utils" parent="baseJavaScriptExtension" class="fr.gouv.dgfip.venezia.updated.UpdatedUtils"&amp;gt;&lt;BR /&gt; &amp;lt;property name="extensionName" value="updatedUtils" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="behaviourFilter" ref="policyBehaviourFilter" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="nodeService" ref="nodeService" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="permissionService" ref="permissionService" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;!-- script downloadSite --&amp;gt;&lt;BR /&gt; &amp;lt;bean id="webscript.updated.downloadFile.get" &lt;BR /&gt; class="fr.gouv.dgfip.venezia.updated.UpdatedDownloadFile" &lt;BR /&gt; parent="webscript.org.alfresco.content.content.get"&amp;gt;&lt;BR /&gt; &amp;lt;property name="repository" ref="repositoryHelper" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="serviceRegistry" ref="ServiceRegistry" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="contentService" ref="contentService" /&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/beans&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;if i use the "normal" api/upload i see that the serialVersion do work :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;[renaud] $ curl --noproxy renoven2 -k -u admin:admin -X POST -F filedata=@a -F "overwrite=true" -F "uploaddirectory=/" -F "siteId=topinenbourg" -F "containerid=documentLibrary" "http://localhost:8080/alfresco/service/api/upload"&lt;BR /&gt;{&lt;BR /&gt; "nodeRef": "workspace://SpacesStore/7a2d1bf3-57bb-44bc-9d1a-478ddf835ebf",&lt;BR /&gt; "fileName": "a",&lt;BR /&gt; "status":&lt;BR /&gt; {&lt;BR /&gt; "code": 200,&lt;BR /&gt; "name": "OK",&lt;BR /&gt; "description": "File uploaded successfully"&lt;BR /&gt; }&lt;BR /&gt;}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and in the log :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;2017-09-07 10:25:09,831 DEBUG [venezia.updated.UpdatedVersionLabelPolicy] [http-bio-8080-exec-9] * updated version label policy : action *&lt;BR /&gt; 2017-09-07 10:25:09,831 DEBUG [venezia.updated.UpdatedVersionLabelPolicy] [http-bio-8080-exec-9] * updated version label policy : valeur du custom label = null *&lt;BR /&gt; 2017-09-07 10:25:09,832 DEBUG [venezia.updated.UpdatedVersionLabelPolicy] [http-bio-8080-exec-9] * updated version label policy : ancien version label *&lt;BR /&gt; 2017-09-07 10:25:09,832 DEBUG [venezia.updated.UpdatedVersionLabelPolicy] [http-bio-8080-exec-9] * updated version label policy : application du mineur *&lt;BR /&gt; 2017-09-07 10:25:09,832 DEBUG [venezia.updated.UpdatedVersionLabelPolicy] [http-bio-8080-exec-9] * updated version label policy : valeur résultante 1.1 *&lt;/P&gt;&lt;P&gt;so the serialVersion do work&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i use my update it fail :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;[renaud] $ curl --noproxy renoven2 -k -u admin:admin -X POST -F filedata=@a -F "overwrite=true" -F "uploaddirectory=/" -F "siteId=topinenbourg" -F "containerid=documentLibrary" -F "author=rl" -F "customLabel=3.2" "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/service/updated/upload" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/service/updated/upload&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;{&lt;BR /&gt; "status" : &lt;BR /&gt; {&lt;BR /&gt; "code" : 500,&lt;BR /&gt; "name" : "Internal Error",&lt;BR /&gt; "description" : "An error inside the HTTP server which prevented it from fulfilling the request."&lt;BR /&gt; }, &lt;BR /&gt;&lt;BR /&gt; "message" : "08070003 Unexpected error occurred during upload of new content.", &lt;BR /&gt; "exception" : "",&lt;BR /&gt;&lt;BR /&gt; "callstack" : &lt;BR /&gt; [ &lt;BR /&gt;&lt;BR /&gt; ],&lt;BR /&gt;&lt;BR /&gt; "server" : "Community v5.2.0 (re21f2be5-b22) schema 10&amp;nbsp;057",&lt;BR /&gt; "time" : "7 sept. 2017 10:35:48"&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the log said&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;2017-09-07 10:35:48,138 DEBUG [venezia.updated.UpdatedUtils] [http-bio-8080-exec-8] *** upload.post.js : authoring, disabled behaviour&lt;BR /&gt; 2017-09-07 10:35:48,171 DEBUG [venezia.updated.UpdatedUtils] [http-bio-8080-exec-8] ** upload.post.js : checkout file&lt;BR /&gt; 2017-09-07 10:35:48,178 DEBUG [venezia.updated.UpdatedUtils] [http-bio-8080-exec-8] ** upload.post.js : write content&lt;/P&gt;&lt;P&gt;2017-09-07 10:35:48,179 DEBUG [venezia.updated.UpdatedUtils] [http-bio-8080-exec-8] ** upload.post.js : metadata extracted&lt;BR /&gt; 2017-09-07 10:35:48,179 DEBUG [venezia.updated.UpdatedUtils] [http-bio-8080-exec-8] ** upload.post.js : checkin of file&lt;/P&gt;&lt;P&gt;2017-09-07 10:35:48,185 ERROR [extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-8] Exception from executeScript: 08070003 Unexpected error occurred during upload of new content.&lt;BR /&gt; org.springframework.extensions.webscripts.WebScriptException: 08070003 Unexpected error occurred during upload of new content.&lt;BR /&gt; at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1124)&lt;BR /&gt; at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)&lt;BR /&gt; at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519)&lt;BR /&gt; at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)&lt;BR /&gt; at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587)&lt;BR /&gt; at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656)&lt;BR /&gt; at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:428)&lt;BR /&gt; at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308)&lt;BR /&gt; at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)&lt;BR /&gt; at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)&lt;BR /&gt; at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)&lt;BR /&gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)&lt;BR /&gt; at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)&lt;BR /&gt; at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)&lt;BR /&gt; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)&lt;BR /&gt; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)&lt;BR /&gt; at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)&lt;BR /&gt; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)&lt;BR /&gt; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)&lt;BR /&gt; at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)&lt;BR /&gt; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)&lt;BR /&gt; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)&lt;BR /&gt; at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)&lt;BR /&gt; at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)&lt;BR /&gt; at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: org.mozilla.javascript.JavaScriptException: InternalError: Unexpected error occurred during upload of new content. (classpath*:alfresco/extension/templates/webscripts/updated/upload.post.js#917)&lt;BR /&gt; at org.mozilla.javascript.gen.classpath__alfresco_extension_templates_webscripts_updated_upload_post_js_5._c_main_4(classpath*:alfresco/extension/templates/webscripts/updated/upload.post.js:917)&lt;BR /&gt; at org.mozilla.javascript.gen.classpath__alfresco_extension_templates_webscripts_updated_upload_post_js_5.call(classpath*:alfresco/extension/templates/webscripts/updated/upload.post.js)&lt;BR /&gt; at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)&lt;BR /&gt; at org.mozilla.javascript.gen.classpath__alfresco_extension_templates_webscripts_updated_upload_post_js_5._c_script_0(classpath*:alfresco/extension/templates/webscripts/updated/upload.post.js:921)&lt;BR /&gt; at org.mozilla.javascript.gen.classpath__alfresco_extension_templates_webscripts_updated_upload_post_js_5.call(classpath*:alfresco/extension/templates/webscripts/updated/upload.post.js)&lt;BR /&gt; at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)&lt;BR /&gt; at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)&lt;BR /&gt; at org.mozilla.javascript.gen.classpath__alfresco_extension_templates_webscripts_updated_upload_post_js_5.call(classpath*:alfresco/extension/templates/webscripts/updated/upload.post.js)&lt;BR /&gt; at org.mozilla.javascript.gen.classpath__alfresco_extension_templates_webscripts_updated_upload_post_js_5.exec(classpath*:alfresco/extension/templates/webscripts/updated/upload.post.js)&lt;BR /&gt; at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:509)&lt;BR /&gt; at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:207)&lt;BR /&gt; at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:219)&lt;BR /&gt; at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:181)&lt;BR /&gt; at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:109)&lt;BR /&gt; at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376)&lt;BR /&gt; at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)&lt;BR /&gt; ... 32 more&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the line here "*** upload.post.js : authoring, disabled behaviour" mean it do this function :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;updatedUtils.log("*** upload.post.js : authoring, set properties on file and disable behaviour"); &lt;BR /&gt; updatedUtils.disableBehaviourAuditable(updateNode);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;so my "updatedUtils" function do work, but not the checkin wich is :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;updatedUtils.log("** upload.post.js : checkin of file");&lt;BR /&gt; existingFile = existingFile.checkin(description, majorVersion, customLabel); &amp;lt;- this fails&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;wich is defined in ScriptNode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i do rename the jar (and mvn alfresco:run) :&lt;/P&gt;&lt;P&gt;[renaud] $ cp target/tomcat/webapps/plugins-alfresco-platform/WEB-INF/lib/updated-platform-jar-1.1-SNAPSHOT.jar target/tomcat/webapps/plugins-alfresco-platform/WEB-INF/lib/aa-updated-platform-jar-1.1-SNAPSHOT.jar&lt;/P&gt;&lt;P&gt;i don't have the problems :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;[renaud] $ curl --noproxy renoven2 -k -u admin:admin -X POST -F filedata=@a -F "overwrite=true" -F "uploaddirectory=/" -F "siteId=topinenbourg" -F "containerid=documentLibrary" -F "author=rl" -F "customLabel=3.2" "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/service/updated/upload" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/service/updated/upload&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;{&lt;BR /&gt; "nodeRef": "workspace://SpacesStore/7a2d1bf3-57bb-44bc-9d1a-478ddf835ebf",&lt;BR /&gt; "fileName": "a",&lt;BR /&gt; "status":&lt;BR /&gt; {&lt;BR /&gt; "code": 200,&lt;BR /&gt; "name": "OK",&lt;BR /&gt; "description": "File uploaded successfully"&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;basicly the problem is i need to surcharge the org.alfresco.repo.jscript.ScriptNode and i have no way to override it "easyly"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, the sdk-3 is probably&amp;nbsp; to new for now and none has this problems for now.&lt;/P&gt;&lt;P&gt;I use a awfuly wrong to resolve, i use a fake plugin juste for renaming the jar (worst solution ever, lol)&lt;/P&gt;&lt;P&gt;part of local-share-jar/pom.xml&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;!-- test pour ajout dans le rep --&amp;gt;&lt;BR /&gt; &amp;lt;plugin&amp;gt;&lt;BR /&gt; &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;&lt;BR /&gt; &amp;lt;artifactId&amp;gt;maven-antrun-plugin&amp;lt;/artifactId&amp;gt;&lt;BR /&gt; &amp;lt;version&amp;gt;1.8&amp;lt;/version&amp;gt;&lt;BR /&gt; &amp;lt;executions&amp;gt;&lt;BR /&gt; &amp;lt;execution&amp;gt;&lt;BR /&gt; &amp;lt;id&amp;gt;copy-dependencies&amp;lt;/id&amp;gt;&lt;BR /&gt; &amp;lt;phase&amp;gt;package&amp;lt;/phase&amp;gt;&lt;BR /&gt; &amp;lt;goals&amp;gt;&lt;BR /&gt; &amp;lt;goal&amp;gt;run&amp;lt;/goal&amp;gt;&lt;BR /&gt; &amp;lt;/goals&amp;gt;&lt;BR /&gt; &amp;lt;configuration&amp;gt;&lt;BR /&gt; &amp;lt;target&amp;gt;&lt;BR /&gt; &amp;lt;mkdir dir="${targetPlatform}"/&amp;gt;&lt;BR /&gt; &amp;lt;copy file="${pluginRep}/oic-platform-jar/target/oic-platform-jar-1.1-SNAPSHOT.jar" tofile="${targetPlatform}/aa1-oic-platform-jar-1.1-SNAPSHOT.jar"/&amp;gt;&lt;BR /&gt; &amp;lt;copy file="${pluginRep}/updated-platform-jar/target/updated-platform-jar-1.1-SNAPSHOT.jar" tofile="${targetPlatform}/aa2-updated-platform-jar-1.1-SNAPSHOT.jar"/&amp;gt;&lt;BR /&gt; &amp;lt;mkdir dir="${targetShare}"/&amp;gt;&lt;BR /&gt; &amp;lt;copy file="${pluginRep}/oic-share-jar/target/oic-share-jar-1.1-SNAPSHOT.jar" tofile="${targetShare}/aa1-oic-share-jar-1.1-SNAPSHOT.jar"/&amp;gt;&lt;BR /&gt; &amp;lt;copy file="${pluginRep}/updated-share-jar/target/updated-share-jar-1.1-SNAPSHOT.jar" tofile="${targetShare}/aa2-updated-share-jar-1.1-SNAPSHOT.jar"/&amp;gt;&lt;BR /&gt; &amp;lt;copy file="${pluginRep}/venezia-share-jar/target/venezia-share-jar-1.1-SNAPSHOT.jar" tofile="${targetShare}/aa0-venezia-share-jar-1.1-SNAPSHOT.jar"/&amp;gt;&lt;BR /&gt; &amp;lt;/target&amp;gt;&lt;BR /&gt; &amp;lt;/configuration&amp;gt;&lt;BR /&gt; &amp;lt;/execution&amp;gt;&lt;BR /&gt; &amp;lt;/executions&amp;gt;&lt;BR /&gt; &amp;lt;/plugin&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;thank for the help, i will do this for now until i found a better way...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 08:55:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25344#M10978</guid>
      <dc:creator>renogarfield</dc:creator>
      <dc:date>2017-09-07T08:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: In sdk-3 how to test a customized class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25345#M10979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you have in the line 917 in the file&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;alfresco/extension/templates/webscripts/updated/upload.post.js ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 01:20:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25345#M10979</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-09-09T01:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: In sdk-3 how to test a customized class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25346#M10980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just the catch of the try :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;} catch (e) {&lt;BR /&gt; // NOTE: Do not clean formdata temp files to allow for retries. It's possible for a temp file&lt;BR /&gt; // to remain if max retry attempts are made, but this is rare, so leave to usual temp&lt;BR /&gt; // file cleanup.&lt;/P&gt;&lt;P&gt;// capture exception, annotate it accordingly and re-throw&lt;BR /&gt; if (e.message &amp;amp;&amp;amp; e.message.indexOf("AccessDeniedException") != -1) {&lt;BR /&gt; e.code = 403;&lt;BR /&gt; }&lt;BR /&gt; else if (e.message &amp;amp;&amp;amp; e.message.indexOf("org.alfresco.service.cmr.usage.ContentQuotaException") == 0) {&lt;BR /&gt; e.code = 413;&lt;BR /&gt; } else if (e.message &amp;amp;&amp;amp; e.message.indexOf("org.alfresco.repo.content.ContentLimitViolationException") == 0) {&lt;BR /&gt; e.code = 409;&lt;BR /&gt; } else {&lt;BR /&gt; e.code = 500;&lt;BR /&gt; e.message = "Unexpected error occurred during upload of new content."; &lt;BR /&gt; }&lt;BR /&gt; throw e;&lt;BR /&gt; }&lt;BR /&gt;} &amp;lt;-------- ligne 917&lt;/P&gt;&lt;P&gt;main();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 07:58:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-sdk-3-how-to-test-a-customized-class/m-p/25346#M10980</guid>
      <dc:creator>renogarfield</dc:creator>
      <dc:date>2017-09-11T07:58:05Z</dc:date>
    </item>
  </channel>
</rss>

