Jahia in English > Module error

0 (0 Good)
0 (0 Bad)

Module error

by  mholmberg »  2013/08/13 09:41

Hello,

the site displayes this error: Module error. While the logs display this:

2013-08-13 11:38:51,185: WARN  [TemplateScriptFilter] - Error including the content of the template 'Path dispatch : /modules/default/jnt_navMenu/html/navMenu.groovy'. Cause: javax.script.ScriptException: java.lang.NullPointerException: Cannot get property 'identifier' on null object
javax.script.ScriptException: javax.script.ScriptException: java.lang.NullPointerException: Cannot get property 'identifier' on null object
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:117)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:103)
at org.jahia.services.render.scripting.JSR223Script.execute(JSR223Script.java:112)
at org.jahia.services.render.filter.TemplateScriptFilter.prepare(TemplateScriptFilter.java:97)
at org.jahia.services.render.filter.RenderChain.doFilter(RenderChain.java:152)
 
Caused by: javax.script.ScriptException: java.lang.NullPointerException: Cannot get property 'identifier' on null object
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:318)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:111)
... 171 more
Caused by: java.lang.NullPointerException: Cannot get property 'identifier' on null object
at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:56)
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:156)
at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:44)
 
I run an jcr integrity test and found out that some referenced nodes are missing: 
 
Couldn't find referenced node with UUID 6bc20526-6c6f-43d0-bee9-73d233580f40 referenced from property /sites/information/home/om-vavnadsradet/j:displayInMenu 
 
 
I did try to run the Fix full Java Content Repository integrity but that did not resolve any issue. How could I remove those references?
 
thanks
 
 
 
 
 
 
  • Module error
    2013/08/13 10:51

    mholmberg <p> Hello,</p> <p> the site displayes this error: Module error. While the logs display this:</p> <div> 2013-08-13 11:38:51,185: WARN &nbsp;[TemplateScriptFilter] - Error including the content of the template &#39;Path dispatch : /modules/default/jnt_navMenu/html/navMenu.groovy&#39;. Cause: javax.script.ScriptException: java.lang.NullPointerException: Cannot get property &#39;identifier&#39; on null object</div> <div> javax.script.ScriptException: javax.script.ScriptException: java.lang.NullPointerException: Cannot get property &#39;identifier&#39; on null object</div> <div> <div> at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:117)</div> <div> at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:103)</div> <div> at org.jahia.services.render.scripting.JSR223Script.execute(JSR223Script.java:112)</div> <div> at org.jahia.services.render.filter.TemplateScriptFilter.prepare(TemplateScriptFilter.java:97)</div> <div> at org.jahia.services.render.filter.RenderChain.doFilter(RenderChain.java:152)</div> <div> &nbsp;</div> </div> <div> <div> Caused by: javax.script.ScriptException: java.lang.NullPointerException: Cannot get property &#39;identifier&#39; on null object</div> <div> at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:318)</div> <div> at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:111)</div> <div> ... 171 more</div> <div> Caused by: java.lang.NullPointerException: Cannot get property &#39;identifier&#39; on null object</div> <div> at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:56)</div> <div> at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:156)</div> <div> at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:44)</div> <div> &nbsp;</div> <div> I run an jcr integrity test and found out that some referenced nodes are missing:&nbsp;</div> <div> &nbsp;</div> <div> <span class="warning" style="color: rgb(165, 42, 42); font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 20px;">Couldn&#39;t find referenced node with UUID 6bc20526-6c6f-43d0-bee9-73d233580f40 referenced from property /sites/information/home/om-vavnadsradet/j:displayInMenu</span><span style="color: rgb(54, 57, 61); font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 20px;">&nbsp;</span></div> <div> &nbsp;</div> <div> &nbsp;</div> <div> I did try to run the&nbsp;<span style="color: rgb(54, 57, 61); font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 20px;">Fix full Java Content Repository integrity but that did not resolve any issue. How could I remove those references?</span></div> <div> &nbsp;</div> <div> thanks</div> <div> &nbsp;</div> <div> &nbsp;</div> <div> &nbsp;</div> </div> <div> &nbsp;</div> <div> &nbsp;</div> <div> &nbsp;</div>

  • Number of messages  22
    Registration date Aug 13, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Module error

    by  faissah »  2013/08/16 14:32

    Hello,

    Have you tried to manually remove the node with the UUID 6bc20526-6c6f-43d0-bee9-73d233580f40 using the JCR Browser of Jahia Tools (<server_name>/tools)?

     

    Fabrice  (faissah)

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

    Re: Re: Module error

    by  mholmberg »  2013/08/19 07:31

    Hello,

     

    when I search for the UUID, I get this

    Item with UUID 6bc20526-6c6f-43d0-bee9-73d233580f40 does not exist in the 'default' workspace

    otherwise I don't know how to remove the UUID

  • Re: Re: Module error
    2013/08/19 07:31

    mholmberg <p> Hello,</p> <p> &nbsp;</p> <p> when I search for the UUID, I get this</p> <p> <span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">Item with UUID&nbsp;</span><strong style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">6bc20526-6c6f-43d0-bee9-73d233580f40</strong><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">&nbsp;does not exist in the &#39;default&#39; workspace</span></p> <p> otherwise I don&#39;t know how to remove the UUID</p>

  • Number of messages  22
    Registration date Aug 19, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Module error

    by  rvt »  2013/08/21 01:41

    I might be wrong here but...

    Did you set 'Display In menu' and picket a menu?
    Then later within your template you removed that menu, this now that reference cannot be found anymore.

    a navMenu with teh displayInMenu property is defined like this:
     - j:displayInMenu (weakreference,choicelist[menus]) multiple nofulltext mandatory

    So I think that reference is the error you are seeing.

    What I would try to do is select your menu in your template, or where you put it... Then Edit it, and save that back. Watch the logfiles for any errors.
    This might save that menu again and put in the right values for the displayInMenu property.

    If that doesn't work I would select a menu (any menu) in the displayInMenu property and save it, and then deselect it again,eg, bring it to the state you want it to be in.

    Ries van Twisk

     

  • Re: Re: Re: Module error
    2013/08/21 01:41

    rvt <p> I might be wrong here but...</p> <p> Did you set &#39;Display In menu&#39; and picket a menu?<br /> Then later within your template you removed that menu, this now that reference cannot be found anymore.</p> <p> a navMenu with teh displayInMenu property is defined like this:<br /> &nbsp;- j:displayInMenu (weakreference,choicelist[menus]) multiple nofulltext mandatory</p> <p> So I think that reference is the error you are seeing.</p> <p> What I would try to do is select your menu in your template, or where you put it... Then Edit it, and save that back. Watch the logfiles for any errors.<br /> This might save that menu again and put in the right values for the displayInMenu property.</p> <p> If that doesn&#39;t work I would select a menu (any menu) in the displayInMenu property and save it, and then deselect it again,eg, bring it to the state you want it to be in.</p> <p> Ries van Twisk</p> <p> &nbsp;</p>

  • Number of messages  185
    Registration date Aug 21, 2013
    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