cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] Selecting Site Members crashes

hobleyd
Champ in-the-making
Champ in-the-making
Hello,

I have just installed the Labs 3 Stable version of Alfresco and Share on CentOS 5.2 and I have been trying out Share. I can create a new Site ok, but when I click on Members within that site, I get the following stack trace:

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:/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': TypeError: Cannot parse XML: Scanner State 24 not Recognized (file:/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/site-members/site-members.get.js#6(eval)#1)
   
Exception:   org.mozilla.javascript.EcmaError - TypeError: Cannot parse XML: Scanner State 24 not Recognized (file:/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/site-members/site-members.get.js#6(eval)#1)
   
   org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
   org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
   org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
   org.mozilla.javascript.xmlimpl.XMLLibImpl.parse(XMLLibImpl.java:411)
   org.mozilla.javascript.xmlimpl.XMLLibImpl.ecmaToXml(XMLLibImpl.java:433)
   org.mozilla.javascript.xmlimpl.XMLObjectImpl.ecmaToXml(XMLObjectImpl.java:779)
   org.mozilla.javascript.xmlimpl.XML.jsConstructor(XML.java:250)
   org.mozilla.javascript.xmlimpl.XMLObjectImpl.execIdCall(XMLObjectImpl.java:570)
   org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:127)
   org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:313)
   org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3281)
   org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
   org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
   org.mozilla.javascript.ScriptRuntime.evalSpecial(ScriptRuntime.java:2280)
   org.mozilla.javascript.ScriptRuntime.callSpecial(ScriptRuntime.java:2143)
   org.mozilla.javascript.optimizer.OptRuntime.callSpecial(OptRuntime.java:165)
   org.mozilla.javascript.gen.c17._c0(file:/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/site-members/site-members.get.js:6)
   org.mozilla.javascript.gen.c17.call(file:/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/site-members/site-members.get.js)
   org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   org.mozilla.javascript.gen.c17.call(file:/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/site-members/site-members.get.js)
   org.mozilla.javascript.gen.c17.exec(file:/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/site-members/site-members.get.js)
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScriptImpl(PresentationScriptProcessor.java:256)
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScript(PresentationScriptProcessor.java:148)
   org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:800)
   org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:90)
   org.alfresco.web.scripts.PresentationContainer.executeScript(PresentationContainer.java:60)
   org.alfresco.web.scripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:169)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:261)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
   org.alfresco.web.scripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:329)
   org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   org.alfresco.web.framework.render.RenderHelper.processComponent(RenderHelper.java:332)
   org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:451)
   org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:434)
   org.alfresco.web.framework.render.bean.ComponentRenderer.body(ComponentRenderer.java:135)
   org.alfresco.web.framework.render.RenderUtil.renderRegionComponents(RenderUtil.java:328)
   org.alfresco.web.site.taglib.RegionIncludeTag.doStartTag(RegionIncludeTag.java:43)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:142)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:78)
   org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
   org.alfresco.web.scripts.GenericFreemarkerTagDirective.execute(GenericFreemarkerTagDirective.java:127)
   freemarker.core.Environment.visit(Environment.java:261)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Environment.process(Environment.java:188)
   freemarker.template.Template.process(Template.java:237)
   org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:146)
   org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:240)
   org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   org.alfresco.web.framework.render.RenderHelper.processRenderable(RenderHelper.java:276)
   org.alfresco.web.framework.render.bean.ChromeRenderer.body(ChromeRenderer.java:60)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.bean.RegionRenderer.body(RegionRenderer.java:134)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.RenderUtil.startRegionRenderer(RenderUtil.java:273)
   org.alfresco.web.framework.render.RenderUtil.renderRegion(RenderUtil.java:213)
   org.alfresco.web.framework.render.PresentationUtil.renderRegion(PresentationUtil.java:124)
   org.alfresco.web.site.taglib.RegionTag.doStartTag(RegionTag.java:109)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:142)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:78)
   org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
   org.alfresco.web.scripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:128)
   freemarker.core.Environment.visit(Environment.java:261)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Environment.visit(Environment.java:393)
   freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Macro$Context.runMacro(Macro.java:164)
   freemarker.core.Environment.visit(Environment.java:601)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Environment.process(Environment.java:188)
   freemarker.template.Template.process(Template.java:237)
   org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:146)
   org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:240)
   org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   org.alfresco.web.framework.render.RenderHelper.processTemplate(RenderHelper.java:376)
   org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:135)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.bean.PageRenderer.body(PageRenderer.java:81)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.RenderUtil.startPageRenderer(RenderUtil.java:144)
   org.alfresco.web.framework.render.RenderUtil.renderPage(RenderUtil.java:117)
   org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:85)
   org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:459)
   org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:336)
   org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:153)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   java.lang.Thread.run(Thread.java:619)
   
Exception:   org.alfresco.web.scripts.WebScriptException - TypeError: Cannot parse XML: Scanner State 24 not Recognized (file:/opt/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:/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': TypeError: Cannot parse XML: Scanner State 24 not Recognized (file:/opt/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)

Can anyone point me in the right direction please.

Cheers,
David
19 REPLIES 19

hobleyd
Champ in-the-making
Champ in-the-making
Mike,

ok, so the site I created yesterday which was available after creation is now no longer available with the error mentioned above. No new exceptions in the catalina.out, or alfresco.log or share.log files. I can see the site in Alfresco.

Username format is xxxx.yyyy

Site created:

Name: FOO
URL Name: foo
Description: FOO Collaboration
Type: Collaboration Site
Access: Public

I did however notice some errors around the time I created the test site:

09:20:32,423  INFO  [web.framework.ModelObjectManager] Unable to save object: page.title.site~csi~dashboard of type: component to persister: RemoteStore_alfresco/site-data/components_component due to error: Unable to save object: page.title.site~csi~dashboard.xml due to error: Unable to create document path: page.title.site~csi~dashboard.xml in remote store: alfresco due to error:
09:20:32,432  INFO  [web.framework.ModelObjectManager] Unable to save object: page.navigation.site~csi~dashboard of type: component to persister: RemoteStore_alfresco/site-data/components_component due to error: Unable to save object: page.navigation.site~csi~dashboard.xml due to error: Unable to create document path: page.navigation.site~csi~dashboard.xml in remote store: alfresco due to error:
09:20:32,441  INFO  [web.framework.ModelObjectManager] Unable to save object: page.component-1-1.site~csi~dashboard of type: component to persister: RemoteStore_alfresco/site-data/components_component due to error: Unable to save object: page.component-1-1.site~csi~dashboard.xml due to error: Unable to create document path: page.component-1-1.site~csi~dashboard.xml in remote store: alfresco due to error:


I have been using the same site name during testing and deleting the site from within Alfresco after it disappears, so I have just created another completely new test site to see if that is the problem. The errors above did not appear, I'll see if this new site persists…

UPDATE: While the new test site created without error, a hour or so later and both sites have disappeared from the Dashboard and searching fails again.

Cheers,
David

hobleyd
Champ in-the-making
Champ in-the-making
All,

Poking around the forums, I just noticed this comment:

The other thing to be aware of when using AD is that typically you'll have set up a user/group importer job. If you have, you'll need to make sure that the "clearAllChildren" flag for the ldapGroupImport bean is set to "false", otherwise all the groups that Share creates for managing sites will be deleted, and your sites will become borked.

I have LDAP synchronisation set up (not AD though) and I do indeed have clearAllChildren set to true, so I have set it to false and I'll see if that improves matters.

Cheers,
David

hobleyd
Champ in-the-making
Champ in-the-making
Confirmed. This solved my problems.

Note: to allow invites to work, I also had to add the line:

        <property name="allowGetEnabled" value="true" />

into the authenticationDao in ldap-authentication-context.xml. Mine now looks like this:

    <bean name="authenticationDao" class="org.alfresco.repo.security.authentication.DefaultMutableAuthenticationDao" >
        <property name="allowGetEnabled" value="true" />
        <property name="allowDeleteUser">
            <value>true</value>
        </property>
    </bean>

Share still doesn't work for me though as the Activity history is not displaying.

Cheers,
David

mikeh
Star Contributor
Star Contributor
Confirmed. This solved my problems.

Note: to allow invites to work, I also had to add the line:

        <property name="allowGetEnabled" value="true" />

into the authenticationDao in ldap-authentication-context.xml. Mine now looks like this:

    <bean name="authenticationDao" class="org.alfresco.repo.security.authentication.DefaultMutableAuthenticationDao" >
        <property name="allowGetEnabled" value="true" />
        <property name="allowDeleteUser">
            <value>true</value>
        </property>
    </bean>
Could you raise all that in a JIRA issue please? Mark it critical and link to this topic. Thanks.

Share still doesn't work for me though as the Activity history is not displaying.
Labs 3.0 doesn't support PostgreSQL for Activities yet, which is probably the issue here.

Mike

hobleyd
Champ in-the-making
Champ in-the-making
Raised JIRA tickets:

Invitations not working: https://issues.alfresco.com/jira/browse/ALFCOM-2571
Postgres not supported in Share: https://issues.alfresco.com/jira/browse/ALFCOM-2572

Cheers,
David

sylvain_d
Champ in-the-making
Champ in-the-making
hello !

It seems that the problem is the same with username containing an "_". I'm not using a LDAP.

I created two sites with my user under Share. It make the site finder bugging
Wrapped Exception (with status template): Error during processing of the template 'Method public org.alfresco.repo.jscript.ScriptableHashMap org.alfresco.repo.site.script.Site.listMembers(java.lang.String,java.lang.String) threw an exception when invoked on org.alfresco.repo.site.script.Site@428c8f79'. Please contact your system administrator.

I change the <format default="json"/> in the different files specify in the  http://issues.alfresco.com/jira/browse/ETHREEOH-1101 but it still not working.

Any ideas ?

womer
Champ in-the-making
Champ in-the-making
I'm getting this same error trying to migrate sites from one server to another.  Clean install from Alfresco-Labs-3Stable-Linux-x86-Install on RHEL 5.3, 4GB RAM, java version 1.6.0_07, MySQL 5.0.45 and 1TB of EMC fiber connected disk.  I have NTLM SSO/passthru configured for everything.

Just exporting the sites from a previous install of 3.1 then importing to this fresh install.  The sites show up in the DM, but any kind of site search in Share generates:

Wrapped Exception (with status template): Error during processing of the template 'Method public org.alfresco.repo.jscript.ScriptableHashMap org.alfresco.repo.site.script.Site.listMembers(java.lang.String,java.lang.String) threw an exception when invoked on org.alfresco.repo.site.script.Site@80bf81'. Please contact your system administrator.

The very first time I tried doing this, I got a MySQL timeout so I extend that, deleted all the sites that were imported up to that point and re-imported them successfully on the second attempt.  This is when I started seeing this error, however I didn't try the search after the initial timeout error.  So next I tried deleting all the sites (what a pain), the importing the sites again, still getting the same error.  Next I rebuilt the lucene indexes, but still getting the same error.

Next I'll try importing the User Homes to see if there's some links there it's trying to establish, but I'm just shooting in the dark at this point.

mikeh
Star Contributor
Star Contributor
You can't just copy the DM Sites space and expect Share to work - it also stores vital data in the AVM store. Use FTP to copy it across, or copy your entire DB and alf_data across to the new server.

Mike

womer
Champ in-the-making
Champ in-the-making
Obviously I'm new to this… but what I'm trying to accomplish and I've not yet found any discussions or documentation that references this, other than just doing backups and restores… but I'm trying to set up multiple environments for the alfresco code itself, not just the content or the code it's managing.  I need dev/test/qa and prod environments to push through and test upgrades and enhancements to the base product.  I realize this is outside of the scope of this particular thread, but a pointer somewhere to some docs or examples sure would be appreciated.



Thanks,
Scott Womer

dhirajkrsingh
Champ in-the-making
Champ in-the-making
I am new to alfresco I am not able to access the repository through share it is throwing message

Site memberships/admin does not exist

No log is present

Kindly Help
With Regards
Dhiraj Kr Singh