cancel
Showing results for 
Search instead for 
Did you mean: 

Labs 3.0/Linux 'can't create site'

amabilis
Champ in-the-making
Champ in-the-making
Hi all,

when I'm using the /share application I can't create a new site. After filling in name and description the app stops responding with the error "can't create site".

The site name itself is a simple 5 character word: atoll. The error messages from the log (catalina.out) follows..

Thanks for help,

Cheers,

Ama


INFO: Server startup in 113919 ms                                                                                                      
11:07:22,206  INFO  [web.site.FrameworkHelper] CachedFileSystem started                                                                
11:09:43,700 User:admin ERROR [freemarker.runtime]                                                                                     
                                                                                                                                       
Expression jsonUtils.encodeJSONString(x) is undefined on line 2, column 23 in org/alfresco/repository/site/site.lib.ftl.               
The problematic instruction:                                                                                                           
———-                                                                                                                             
==> ${site.sitePreset} escaped ${jsonUtils.encodeJSONString(site.sitePreset)} [on line 5, column 41 in org/alfresco/repository/site/site
.lib.ftl]                                                                                                                              
in user-directive siteLib.siteJSON [on line 5, column 17 in org/alfresco/repository/site/sites.get.json.ftl]                          
———-                                                                                                                             
                                                                                                                                       
Java backtrace for programmers:                                                                                                        
———-                                                                                                                             
freemarker.core.InvalidReferenceException: Expression jsonUtils.encodeJSONString(x) is undefined on line 2, column 23 in org/alfresco/re
pository/site/site.lib.ftl.                                                                                                            
        at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)                                                       
        at freemarker.core.Expression.getStringValue(Expression.java:118)                                                              
        at freemarker.core.Expression.getStringValue(Expression.java:93)                                                               
        at freemarker.core.DollarVariable.accept(DollarVariable.java:76)                                                               
        at freemarker.core.Environment.visit(Environment.java:208)                                                                     
        at freemarker.core.MixedContent.accept(MixedContent.java:92)                                                                   
        at freemarker.core.Environment.visit(Environment.java:208)                                                                     
        at freemarker.core.EscapeBlock.accept(EscapeBlock.java:84)                                                                     
        at freemarker.core.Environment.visit(Environment.java:208)                                                                     
        at freemarker.core.Macro$Context.runMacro(Macro.java:164)                                                                      
        at freemarker.core.Environment.visit(Environment.java:601)                                                                     
        at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)                                                                    
        at freemarker.core.Environment.visit(Environment.java:208)                                                                     
        at freemarker.core.MixedContent.accept(MixedContent.java:92)                                                                   
        at freemarker.core.Environment.visit(Environment.java:208)                                                                     
        at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)                                                       
        at freemarker.core.Environment.visit(Environment.java:415)                                                                     
        at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)                                                                
        at freemarker.core.Environment.visit(Environment.java:208)
… continues…     
                          
4 REPLIES 4

monk
Champ in-the-making
Champ in-the-making
I have the same problem, when I am trying to search for sites I get the following error:-

Error during processing of the template 'Expression jsonUtils.encodeJSONString(x) is undefined on line 2, column 23 in org/alfresco/repository/site/site.lib.ftl.'. Please contact your system administrator.



Expression jsonUtils.encodeJSONString(x) is undefined on line 2, column 23 in org/alfresco/repository/site/site.lib.ftl.
The problematic instruction:
———-
==> ${site.sitePreset} escaped ${jsonUtils.encodeJSONString(site.sitePreset)} [on line 5, column 41 in org/alfresco/repository/site/site.lib.ftl]
in user-directive siteLib.siteJSON [on line 5, column 17 in org/alfresco/repository/site/sites.get.json.ftl]
———-

Java backtrace for programmers:
———-
freemarker.core.InvalidReferenceException: Expression jsonUtils.encodeJSONString(x) is undefined on line 2, column 23 in org/alfresco/repository/site/site.lib.ftl.
        at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
        at freemarker.core.Expression.getStringValue(Expression.java:118)
        at freemarker.core.Expression.getStringValue(Expression.java:93)
        at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.EscapeBlock.accept(EscapeBlock.java:84)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.Macro$Context.runMacro(Macro.java:164)
        at freemarker.core.Environment.visit(Environment.java:601)
        at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
        at freemarker.core.Environment.visit(Environment.java:415)
        at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.Environment.process(Environment.java:188)
        at freemarker.template.Template.process(Template.java:237)
        at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:201)
        at org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:377)
        at org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:280)
        at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:173)
        at org.alfresco.repo.web.scripts.RepositoryContainer$1.execute(RepositoryContainer.java:309)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:294)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:209)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:320)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:264)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:240)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
        at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.alfresco.web.app.servlet.MTWebScriptAuthenticationFilter.doFilter(MTWebScriptAuthenticationFilter.java:102)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:619)

dwest
Champ in-the-making
Champ in-the-making
I too am having this problem when trying to search.

mah
Champ in-the-making
Champ in-the-making
Same Search problem here allso.
Using 3.0.0 (b 1167) schema 131 atm.

Did someone find a solution for this?

monk
Champ in-the-making
Champ in-the-making
I think this is related to bug I reported and this one I just found https://issues.alfresco.com/jira/browse/ALFCOM-1999

So I am guessing it will be fixed in 3.0c…… when does 3.0c come out? Smiley Happy

or I might just be talking rubbish…