[ 
http://jira.nuxeo.org/browse/NXP-1593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33772#action_33772
 ] 

Jean-Marc Orliaguet commented on NXP-1593:
------------------------------------------


The following patch fixes the negotiation issues:

Index: 
nuxeo-theme-core/src/main/java/org/nuxeo/theme/negotiation/AbstractNegotiator.java
===================================================================
--- 
nuxeo-theme-core/src/main/java/org/nuxeo/theme/negotiation/AbstractNegotiator.java
  (revision 30827)
+++ 
nuxeo-theme-core/src/main/java/org/nuxeo/theme/negotiation/AbstractNegotiator.java
  (arbetskopia)
@@ -38,7 +38,7 @@
                 negotiate("perspective"));
     }
 
-    public final String negotiate(String object) throws NegotiationException {
+    synchronized public final String negotiate(String object) throws 
NegotiationException {
         if (strategy == null) {
             throw new NegotiationException("No negotiation strategy is set.");
         }
Index: 
nuxeo-theme-core/src/main/java/org/nuxeo/theme/negotiation/NegotiationType.java
===================================================================
--- 
nuxeo-theme-core/src/main/java/org/nuxeo/theme/negotiation/NegotiationType.java 
    (revision 30827)
+++ 
nuxeo-theme-core/src/main/java/org/nuxeo/theme/negotiation/NegotiationType.java 
    (arbetskopia)
@@ -50,7 +50,7 @@
         return TypeFamily.NEGOTIATION;
     }
 
-    public List<Scheme> getSchemes() {
+    synchronized public List<Scheme> getSchemes() {
         if (schemes == null && schemeClassNames != null) {
             schemes = new ArrayList<Scheme>();
             for (String schemeClassName : schemeClassNames) {

====================================================

but there appears another issue that was probably hidden before:

ALLVARLIG: Error Rendering View[/view_documents.xhtml]
java.lang.RuntimeException: java.lang.NullPointerException
        at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5526)
        at org.jboss.cache.TreeCache.get(TreeCache.java:3469)
        at org.jboss.cache.TreeCache.get(TreeCache.java:3450)
        at org.jboss.cache.TreeCache.get(TreeCache.java:3437)
        at org.jboss.seam.ui.UICache.getFromCache(UICache.java:100)
        at org.jboss.seam.ui.UICache.encodeChildren(UICache.java:55)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
...
Caused by: java.lang.NullPointerException
        at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5520)
        ... 73 more
20:24:33,354 WARN  [TreeCache] Using deprecated configuration element 
'UseMarshalling'.  See 'UseRegionBasedMarshalling' instead.
20:24:34,768 INFO  [Exceptions] no exceptions.xml file found
20:24:34,818 ERROR [STDERR] 2008-mar-05 20:24:34 
com.sun.faces.lifecycle.LifecycleImpl phase
VARNING: executePhase(RENDER_RESPONSE 6,[EMAIL PROTECTED]) threw exception
java.lang.NullPointerException
        at com.sun.facelets.util.DevTools.writeVariables(DevTools.java:168)
        at com.sun.facelets.util.DevTools.writeVariables(DevTools.java:144)
        at com.sun.facelets.util.DevTools.debugHtml(DevTools.java:109)
        at 
com.sun.facelets.FaceletViewHandler.handleRenderException(FaceletViewHandler.java:677)
        at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:646)
        at 
org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181)
        at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
        at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
        at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
...

        at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
        at 
org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181)
        at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)


> No negociation strategy found when connecting with multiple users
> -----------------------------------------------------------------
>
>                 Key: NXP-1593
>                 URL: http://jira.nuxeo.org/browse/NXP-1593
>             Project: Nuxeo Enterprise Platform 5
>          Issue Type: Bug
>    Affects Versions: 5.1.1
>            Reporter: Anahide Tchertchian
>            Assignee: Jean-Marc Orliaguet
>             Fix For: 5.2 M1
>
>         Attachments: login-consult-tabs.jmx
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to