Jahia in English > Jahia 6.5.1.0 -...

1 (1 Good)
0 (0 Bad)

Jahia 6.5.1.0 - functions:memberOf('site-administrators') it throw a NullPointerException

by  cachavez »  2012/03/18 22:57

Hello everyone, as the title says, functions:memberOf('site-administrators'),

I'm trying to make something like:

 

<c:if test="${functions:memberOf('site-administrators')}">

    ....

   .....

there is a big thread some of the output is:

 

2012-03-18 16:54:27,171: WARN  [TemplateScriptFilter] - Error including the content of the template 'Path dispatch : /modules/templates-org-unfpa-lac-mee/jnt_page/html/page.project.jsp'. Cause: Problems calling function 'functions:memberOf'
javax.el.ELException: Problems calling function 'functions:memberOf'
        at org.apache.el.parser.AstFunction.getValue(AstFunction.java:115)
        at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
        at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:938)
        at org.apache.jsp.modules.templates_002dorg_002dunfpa_002dlac_002dmee.jnt_005fpage.html.page_project_jsp._jspService(page_project_jsp.java:117)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 

another one:

 

Caused by: java.lang.NullPointerException
        at org.jahia.taglibs.functions.Functions.memberOf(Functions.java:99)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.el.parser.AstFunction.getValue(AstFunction.java:110)
 

--

Cheers.

Carlos Chávez.

Quoin Inc.

 

  (cachavez)

Number of messages  32
Registration date
0 (0 Good)
0 (0 Bad)

Re: Jahia 6.5.1.0 - functions:memberOf('site-administrators') it throw a NullPointerException

by  pap@commaro.com »  2012/04/27 12:37

Hello Carlos,

unfortunately these functions are not used in our codebase, so we did not yet realize that they no longer work as they rely on some context objects in the thread, which are no longer available in Jahia 6.5 (they are only here, when you visit the admin center).

I opened a JIRA for that: http://jira.jahia.org/browse/QA-3589 and already commited a solution into SVN.

Regards,
Benjamin

 

Benjamin Papez (pap@commaro.com)

Number of messages  220
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page