[
http://jira.nuxeo.org/browse/NXP-1593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33771#action_33771
]
Jean-Marc Orliaguet commented on NXP-1593:
------------------------------------------
I've tested the .jmx file with jmeter and I can't reproduce the failure with
nuxeo 5.2 (with nxthemes from the svn trunk).
however the negotiation module needs to obtain some information from the
context about the application's root (e.g. "/nuxeo") via
getRequestContextPath() to determine which negotiation strategy to apply.
see in nxthemes-jsf/.../CompositionHandler.java:
// Get the negotiation strategy
final ExternalContext external = facesContext.getExternalContext();
final Map<String, Object> requestMap = external.getRequestMap();
final String root = external.getRequestContextPath();
<<<<<<<< THIS LINE
final ApplicationType application = (ApplicationType)
Manager.getTypeRegistry().lookup(
TypeFamily.APPLICATION, root);
String strategy = null;
if (application != null) {
final NegotiationDef negotiation = application.getNegotiation();
if (negotiation != null) {
requestMap.put("nxthemesDefaultTheme",
negotiation.getDefaultTheme());
requestMap.put("nxthemesDefaultEngine",
negotiation.getDefaultEngine());
requestMap.put("nxthemesDefaultPerspective",
negotiation.getDefaultPerspective());
strategy = negotiation.getStrategy();
}
}
if (strategy == null) {
log.error("Could not obtain the negotiation strategy for "
+ root);
external.redirect("/nuxeo/nxthemes/error/negotiationStrategyNotSet.faces");
the error in the tracelog:
ATTENTION: executePhase(RESTORE_VIEW ,[EMAIL PROTECTED]) threw exception
java.lang.NullPointerException
seems to indicate that the JSF view isn't properly created, hence nxthemes
fails to obtain the application root.
a quick (and dirty) fix would be to replace:
final String root = external.getRequestContextPath();
with:
final String root = "/nuxeo";
in CompositionHandler.java
> 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