cancel
Showing results for 
Search instead for 
Did you mean: 

Error happened when create site in Web Studio

brianself
Champ in-the-making
Champ in-the-making
I have been reviewing the Web Studio Tutorial. When I came to create a new site based on "Green Energy" template ", I got the following exception message in the log on tomcat server:

17:41:48,939 ERROR [org.alfresco.web.scripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 04260010 Script url /api/importer/statuscheck does not map to a Web Script.
org.alfresco.web.scripts.WebScriptException: 04260010 Script url /api/importer/statuscheck does not map to a Web Script.
   at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:106)
   at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:391)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:613)

I have checked out the HEAD version code from alfresco SVN and installed it successfully on Mac OS.

I checked the webscript source code, but I could find the webscript statuscheck.get.desc.xml registered URL "/api/importer/statuscheck"

Someone's help would be most appreciated.

- Brian
12 REPLIES 12

brianself
Champ in-the-making
Champ in-the-making
After I created a blank web site in web studio, I got another exception when add a new page in the Pages slider.

loadFormData failed: <html><head><title>Apache Tomcat/6.0.18 - Error report</title><style><!–H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}–></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.NullPointerException
   org.alfresco.web.scripts.ProcessorModelHelper.populateModel(ProcessorModelHelper.java:124)
   org.alfresco.web.scripts.ProcessorModelHelper.populateTemplateModel(ProcessorModelHelper.java:310)
   org.alfresco.web.scripts.LocalWebScriptRuntimeContainer.getTemplateParameters(LocalWebScriptRuntimeContainer.java:98)
   org.alfresco.web.scripts.AbstractWebScript.createTemplateParameters(AbstractWebScript.java:408)
   org.alfresco.web.scripts.AbstractWebScript$1.getStatusModel(AbstractWebScript.java:621)
   org.alfresco.web.scripts.WebScriptException.getStatusModel(WebScriptException.java:158)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:171)
   org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:391)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.18</h3></body></html>

Why are there so many problems in Web Studio now? I can not go through a simple senario.

- Brian

whybish
Champ in-the-making
Champ in-the-making
Me too.  DId you ever get it working?

arash_kaffamane
Champ in-the-making
Champ in-the-making
On windows I can't get even a list of the main templates (Greenenergie, blank, etc..), here ist ther error:

Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "re
sults" from null (file:C:/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresc
o/webscripts/web-studio/api/prebuilt/list.get.js#47)

But on Mac with Firefox 3.5 I was able to create at least a blank website with many errors in the log.

olivier68
Champ in-the-making
Champ in-the-making
Hi, I have the same problem.
My access logs shows that the url /api/importer/statuscheck works fine (status 200) till the webscript refresh and than doesn't work (status code 404) a few seconds and than works again.

Have someone found a solution?

Thanks in advance

whybish
Champ in-the-making
Champ in-the-making
Sorry, No.  We gave up and switched to Liferay, it is a more mature platform for website creation.

jack_jin
Champ in-the-making
Champ in-the-making
I had issues getting Web Studio to work as well.  I'm trying it on Alfresco 3.2.  I tried it on a Linux installation and a windows installation.

When I first add in the green website,  I got error messages loading webscripts.  I also can't browse files in my sandbox and in the webproject itself.

The Interface looks really nice though, but I guess the backend isn't where the front end is at.

pbkoob
Champ in-the-making
Champ in-the-making
I had issues getting Web Studio to work as well.  I'm trying it on Alfresco 3.2.  I tried it on a Linux installation and a windows installation.

When I first add in the green website,  I got error messages loading webscripts.  I also can't browse files in my sandbox and in the webproject itself.

The Interface looks really nice though, but I guess the backend isn't where the front end is at.

Just out of curiosity, are you going through SSL?

jack_jin
Champ in-the-making
Champ in-the-making
I had issues getting Web Studio to work as well.  I'm trying it on Alfresco 3.2.  I tried it on a Linux installation and a windows installation.

When I first add in the green website,  I got error messages loading webscripts.  I also can't browse files in my sandbox and in the webproject itself.

The Interface looks really nice though, but I guess the backend isn't where the front end is at.

Just out of curiosity, are you going through SSL?

Nah, I didn't go through Secure Sockets Layer (SSL).

pbkoob
Champ in-the-making
Champ in-the-making
For those of you that are experriencing this problem, take a look at your localhost log at \Alfresco\tomcat\logs\localhost.datestamp.log that corresponds to when you try to create a site.

Do you see a bunch of errors that look like this:

SEVERE: Servlet.service() for servlet apiServlet threw exception
java.lang.NullPointerException
   at org.alfresco.web.studio.WebStudioUtil.getCachedObject(WebStudioUtil.java:52)
   at org.alfresco.web.studio.WebStudioUtil.getCurrentWebapp(WebStudioUtil.java:115)
   at org.alfresco.web.studio.WebStudioRemoteStoreContext.getWebappId(WebStudioRemoteStoreContext.java:91)
   at org.alfresco.web.framework.WebFrameworkRemoteStoreContext.getStoreBasePath(WebFrameworkRemoteStoreContext.java:95)
   at org.alfresco.web.scripts.RemoteStore.getStorePath(RemoteStore.java:269)
   at org.alfresco.web.scripts.RemoteStore.buildEncodeCall(RemoteStore.java:624)
   at org.alfresco.web.scripts.RemoteStore.buildEncodeCall(RemoteStore.java:603)
   at org.alfresco.web.scripts.RemoteStore.hasDocument(RemoteStore.java:344)
   at org.alfresco.web.scripts.RemoteStore$RemoteStoreTemplateLoader.findTemplateSource(RemoteStore.java:788)
   at freemarker.cache.MultiTemplateLoader.findTemplateSource(MultiTemplateLoader.java:111)
   at freemarker.cache.TemplateCache.acquireTemplateSource(TemplateCache.java:600)
   at freemarker.cache.TemplateCache.findTemplateSource(TemplateCache.java:590)
   at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:293)
   at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235)
   at freemarker.template.Configuration.getTemplate(Configuration.java:487)
   at freemarker.template.Configuration.getTemplate(Configuration.java:452)
   at org.alfresco.web.scripts.PresentationTemplateProcessor.hasTemplate(PresentationTemplateProcessor.java:272)
   at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:182)
   at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:391)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)

I think we are experiencing this problem https://issues.alfresco.com/jira/browse/ALFCOM-2519