cancel
Showing results for 
Search instead for 
Did you mean: 

Site Members Error

lrzuniga
Champ in-the-making
Champ in-the-making
Hi,

When I click on site members in a site, I get the following error:

Web Script Status 500 - Internal Error

The Web Script /share/service/components/site-members has responded with a status of 500 - Internal Error.

500 Description:   An error inside the HTTP server which prevented it from fulfilling the request.

Message:   Failed to load script '/org/alfresco/components/site-members/site-members.get.js (in classpath store file:/Users/Luis/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': TypeError: Cannot parse XML: A DOCTYPE is not allowed in content. (file:/Users/Luis/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/site-members/site-members.get.js#6(eval)#1)
<SNIP>
Exception:   org.alfresco.web.scripts.WebScriptException - TypeError: Cannot parse XML: A DOCTYPE is not allowed in content. (file:/Users/Luis/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/site-members/site-members.get.js#6(eval)#1)
   
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScriptImpl(PresentationScriptProcessor.java:261)
   
Exception:   org.alfresco.web.scripts.WebScriptException - Failed to load script '/org/alfresco/components/site-members/site-members.get.js (in classpath store file:/Users/Luis/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': TypeError: Cannot parse XML: A DOCTYPE is not allowed in content. (file:/Users/Luis/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/site-members/site-members.get.js#6(eval)#1)
   
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScript(PresentationScriptProcessor.java:152)
   
Server:   Alfresco Labs v3.0.0 (Stable 1526) schema 1,002
Time:   Jun 20, 2009 10:18:52 PM

Clicking on Pending Invites and Invite seem to work fine.

Any info appreciated.

L.
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
Sounds like the data webscript is throwing an exception, which the web tier isn't dealing with properly.

The URL that's throwing the error will be:
http://localhost:8080/share/proxy/alfresco/api/sites/[SITEID]/memberships/[USERID]

Could you manually paste that into a browser and post the response please? Obviously update the URL for your server, and replace the site and user placeholders.

Thanks,
Mike

lrzuniga
Champ in-the-making
Champ in-the-making
Hi,

I am running Alfresco on my laptop so the server will be localhost for now.

here is the full URL I used as per your instructions:
http://localhost:8080/share/proxy/alfresco/api/sites/it/memberships/luis.zuniga

here is the output:

Alfresco    Web Script Status 500 - Internal Error

The Web Script /alfresco/s/api/sites/it/memberships/luis.zuniga has responded with a status of 500 - Internal Error.

500 Description:   An error inside the HTTP server which prevented it from fulfilling the request.

Message:   Web Script format 'zuniga' is not registered
   
Exception:   org.alfresco.web.scripts.WebScriptException - Web Script format 'zuniga' is not registered
   
   org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
   org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:319)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
   org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:368)
   org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:390)
   org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:273)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:261)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
   org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   java.lang.Thread.run(Thread.java:613)
   
Server:   Alfresco Labs v3.0.0 (Stable 1526) schema 1,002
Time:   Jun 21, 2009 12:47:47 PM
   
Diagnostics:   Inspect Web Script (org/alfresco/repository/site/membership/membership.get)

I am also including this from the console output which may be useful:
[Fatal Error] :1:27: A DOCTYPE is not allowed in content.

Thanks

Luis

mikeh
Star Contributor
Star Contributor
It's because of the dot in the username. It's a bug that's been fixed since the 3.0 release you have.

Your options are: (i) grab the latest source from SVN and build it yourself (ii) grab a nightly build from http://dev.alfresco.com/downloads/nightly/dist/ or wait for the 3.2 Labs release in a couple of weeks.

In theory, you could just update the SiteServiceImpl class plus associated webscripts, but I suspect there have been other changes around that area that may introduce more problems if you take the "patch" approach.

Thanks,
Mike