<?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 Re: Exception from executeScript in Share in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exception-from-executescript-in-share/m-p/296622#M249752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First thanks aevans713 for the publishing. I think that the edition unpublished it and then I forgot to change back the status…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So last week, I finally had the time to work on this issue and to let anybody know, I find out what was the issue! After a lot of re-installation in my local computer of the Alfresco Community Edition 4.2.c, I finally understood why this exception appears in the first place and of course, it wasn't due to my extensions &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact, you can try to do the following and you will get the exact same issue. This was tested in Linux (OEL) and Windows (Windows 7, Windows 8).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Install Alfresco Community Edition 4.2.c from the bundle executable/binaries&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Let all default parameters and once the installation is done, start Alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Login to the Alfresco Share UI (&lt;/SPAN&gt;&lt;A href="http://localhost:8080/share" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share&lt;/A&gt;&lt;SPAN&gt;) using the admin account and the password setup during the installation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Navigate to the Sites finder (&lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/page/site-finder" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/page/site-finder&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Click on "Search" to display all existing sites (only the default one is present: "Sample: Web Site Design Project")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Click on "Delete" to delete the swsdp site&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Navigate to the Repository (&lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/page/repository" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/page/repository&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Remove the "Sites" folder (/Company Home/Sites)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9. Refresh the page and take a look at your logs =&amp;gt; You should be able to see a lot of exceptions like the one describe in my first post&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may wonder why somebody would delete the Sites folder… Well… 2 years ago, I was quite new to Alfresco and I wanted to do something "clean" (maybe a little bit too clean). As I didn't need the Sites features, I thought that delete this folder wouldn't hurt Alfresco and in fact except these exceptions in the log files, there was no other issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't have a way to restore the Sites folder like it was my case (after 2 years, no backup left), here is what you can do to fix this issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- A =&amp;gt; The Alfresco Community Edition 4.2.c where the "Sites" folder doesn't exist (was removed)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- B =&amp;gt; The Alfresco Community Edition 4.2.c where the "Sites" folder exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Install a new Alfresco Community Edition 4.2.c from the bundle executable/binaries =&amp;gt; This is B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Start Alfresco and log in to the Alfresco Share UI of B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Delete the default site "Sample: Web Site Design Project" (DON'T delete the Sites folder) of B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Configure a replication target on B to point to A&amp;nbsp; (doc: &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/tasks/adminconsole-replication-transfertarget.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/tasks/adminconsole-replication-transfertarget.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Configure a replication job on B to replicate the "Sites" folder from B to A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6.1. Enable the replication on B by adding the share url into the share-config-custom.xml file (doc: &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/tasks/adminconsole-replication-lockedcontent.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/tasks/adminconsole-replication-lockedcontent.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6.2. Enable the replication on B by adding the replication.enabled=true into the alfresco-global.properties file (doc: &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/tasks/replication-share.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/tasks/replication-share.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6.3. Restart B for Alfresco to take into account the last changes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Run the replication job&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once the replication job has run, the exceptions disappear from the log files of A.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To go deeper, I don't know if this new "Sites" folder can be used to create new sites on A but for me it do the job since I don't have the exceptions anymore and since I don't use the sites features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a nice day,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morgan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2014 09:02:25 GMT</pubDate>
    <dc:creator>morganp1</dc:creator>
    <dc:date>2014-12-09T09:02:25Z</dc:date>
    <item>
      <title>Exception from executeScript in Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-from-executescript-in-share/m-p/296621#M249751</link>
      <description>Hi everybody,Version: Alfresco CE 4.2.cDatabase: PostgreSQL 9.0.4OS: OEL 6.4I'm currently using Alfresco CE 4.2.c bundle with tomcat and postgreSQL for testing purposes. I developed some extensions (.amps) which are deployed in this installation. When I try to access to the alfresco explorer client</description>
      <pubDate>Mon, 08 Jul 2013 09:08:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-from-executescript-in-share/m-p/296621#M249751</guid>
      <dc:creator>morganp1</dc:creator>
      <dc:date>2013-07-08T09:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exception from executeScript in Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-from-executescript-in-share/m-p/296622#M249752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First thanks aevans713 for the publishing. I think that the edition unpublished it and then I forgot to change back the status…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So last week, I finally had the time to work on this issue and to let anybody know, I find out what was the issue! After a lot of re-installation in my local computer of the Alfresco Community Edition 4.2.c, I finally understood why this exception appears in the first place and of course, it wasn't due to my extensions &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact, you can try to do the following and you will get the exact same issue. This was tested in Linux (OEL) and Windows (Windows 7, Windows 8).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Install Alfresco Community Edition 4.2.c from the bundle executable/binaries&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Let all default parameters and once the installation is done, start Alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Login to the Alfresco Share UI (&lt;/SPAN&gt;&lt;A href="http://localhost:8080/share" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share&lt;/A&gt;&lt;SPAN&gt;) using the admin account and the password setup during the installation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Navigate to the Sites finder (&lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/page/site-finder" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/page/site-finder&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Click on "Search" to display all existing sites (only the default one is present: "Sample: Web Site Design Project")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Click on "Delete" to delete the swsdp site&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Navigate to the Repository (&lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/page/repository" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/page/repository&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Remove the "Sites" folder (/Company Home/Sites)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9. Refresh the page and take a look at your logs =&amp;gt; You should be able to see a lot of exceptions like the one describe in my first post&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may wonder why somebody would delete the Sites folder… Well… 2 years ago, I was quite new to Alfresco and I wanted to do something "clean" (maybe a little bit too clean). As I didn't need the Sites features, I thought that delete this folder wouldn't hurt Alfresco and in fact except these exceptions in the log files, there was no other issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't have a way to restore the Sites folder like it was my case (after 2 years, no backup left), here is what you can do to fix this issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- A =&amp;gt; The Alfresco Community Edition 4.2.c where the "Sites" folder doesn't exist (was removed)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- B =&amp;gt; The Alfresco Community Edition 4.2.c where the "Sites" folder exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Install a new Alfresco Community Edition 4.2.c from the bundle executable/binaries =&amp;gt; This is B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Start Alfresco and log in to the Alfresco Share UI of B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Delete the default site "Sample: Web Site Design Project" (DON'T delete the Sites folder) of B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Configure a replication target on B to point to A&amp;nbsp; (doc: &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/tasks/adminconsole-replication-transfertarget.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/tasks/adminconsole-replication-transfertarget.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Configure a replication job on B to replicate the "Sites" folder from B to A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6.1. Enable the replication on B by adding the share url into the share-config-custom.xml file (doc: &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/tasks/adminconsole-replication-lockedcontent.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/tasks/adminconsole-replication-lockedcontent.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6.2. Enable the replication on B by adding the replication.enabled=true into the alfresco-global.properties file (doc: &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/tasks/replication-share.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/tasks/replication-share.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6.3. Restart B for Alfresco to take into account the last changes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Run the replication job&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once the replication job has run, the exceptions disappear from the log files of A.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To go deeper, I don't know if this new "Sites" folder can be used to create new sites on A but for me it do the job since I don't have the exceptions anymore and since I don't use the sites features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a nice day,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morgan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 09:02:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-from-executescript-in-share/m-p/296622#M249752</guid>
      <dc:creator>morganp1</dc:creator>
      <dc:date>2014-12-09T09:02:25Z</dc:date>
    </item>
  </channel>
</rss>

