cancel
Showing results for 
Search instead for 
Did you mean: 

Exception from executeScript in Share

morganp1
Confirmed Champ
Confirmed Champ
Hi everybody,

Version: Alfresco CE 4.2.c
Database: PostgreSQL 9.0.4
OS: OEL 6.4

I'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 (/alfresco), everything is alright but when I want to access to the alfresco share client (/share) then I get a lot of exception, always the same. whenever I change my location on the repository page (change the current location) or even if I refresh the page, then again a lot of exception appears on the alfresco log file:



Jul 08, 2013 10:42:16 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 195898 ms

2013-07-08 10:45:02,300  INFO  [web.site.EditionInterceptor] [http-apr-8080-exec-1] Successfully retrieved license information from Alfresco.

2013-07-08 10:45:02,417  ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-3] Exception from executeScript - redirecting to status template error: 06080001 Unknown method specified to remote store API: has
org.springframework.extensions.webscripts.WebScriptException: 06080001 Unknown method specified to remote store API: has
        at org.alfresco.repo.web.scripts.bean.BaseRemoteStore.execute(BaseRemoteStore.java:326)
        at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:426)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:276)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

2013-07-08 10:45:02,586  ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-4] Exception from executeScript - redirecting to status template error: 06080002 Unknown method specified to remote store API: has
org.springframework.extensions.webscripts.WebScriptException: 06080002 Unknown method specified to remote store API: has
        at org.alfresco.repo.web.scripts.bean.BaseRemoteStore.execute(BaseRemoteStore.java:326)
        at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:426)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:276)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
        at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1771)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)


In fact, each time I load/refresh a page on the repository, this exception is printed at least 10 times in the log files.

I have two Alfresco 4.2.c installation, one in Linux & one in Windows. Both have the same extensions (.amp) but I only get this exceptions on the Linux box.

I think this exception is generated by the the file: http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/remote-api/source/jav... but I couldn't understand why…

Does anyone have some information about this?

Thanks
1 REPLY 1

morganp1
Confirmed Champ
Confirmed Champ
Hello everybody,


First thanks aevans713 for the publishing. I think that the edition unpublished it and then I forgot to change back the status…



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 Smiley Happy.


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).


1. Install Alfresco Community Edition 4.2.c from the bundle executable/binaries
2. Let all default parameters and once the installation is done, start Alfresco
3. Login to the Alfresco Share UI (http://localhost:8080/share) using the admin account and the password setup during the installation
4. Navigate to the Sites finder (http://localhost:8080/share/page/site-finder)
5. Click on "Search" to display all existing sites (only the default one is present: "Sample: Web Site Design Project")
6. Click on "Delete" to delete the swsdp site
7. Navigate to the Repository (http://localhost:8080/share/page/repository)
8. Remove the "Sites" folder (/Company Home/Sites)
9. Refresh the page and take a look at your logs => You should be able to see a lot of exceptions like the one describe in my first post


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.



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:
- A => The Alfresco Community Edition 4.2.c where the "Sites" folder doesn't exist (was removed)
- B => The Alfresco Community Edition 4.2.c where the "Sites" folder exist


1. Install a new Alfresco Community Edition 4.2.c from the bundle executable/binaries => This is B
2. Start Alfresco and log in to the Alfresco Share UI of B
3. Delete the default site "Sample: Web Site Design Project" (DON'T delete the Sites folder) of B
4. Configure a replication target on B to point to A  (doc: http://docs.alfresco.com/4.1/tasks/adminconsole-replication-transfertarget.html)
5. Configure a replication job on B to replicate the "Sites" folder from B to A
6.1. Enable the replication on B by adding the share url into the share-config-custom.xml file (doc: http://docs.alfresco.com/4.1/tasks/adminconsole-replication-lockedcontent.html)
6.2. Enable the replication on B by adding the replication.enabled=true into the alfresco-global.properties file (doc: http://docs.alfresco.com/4.1/tasks/replication-share.html)
6.3. Restart B for Alfresco to take into account the last changes
7. Run the replication job


Once the replication job has run, the exceptions disappear from the log files of A.


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.


Have a nice day,
Morgan