<div>I have problem alkacon comment for work in OpenCms 7.5.1.... The problem in NullPointerException in CmsCommentAccess!</div><div><br></div><div><div id="content"><div class="chat in"><div class="msg 1st">Something to solve the opencms 7.5.1?</div>
<div class="msg 1st"><br></div><div class="msg 1st">Im debug, and the problem here:</div><div class="msg 1st"><div class="msg 1st"> try {</div><div class="msg 1st"> <b>m_uri = "/demo_en/intro.html";//req.getParameter(PARAM_URI); << the value PARAM_URI return /sites/default/ in 7.5.0 return ok /sites/default/intro.html, then for work I try static path.... ok, dont shot more exception VfsNotFoundException</b></div>
<div class="msg 1st"> System.out.println("m_resource" + m_resource + "\n");</div><div class="msg 1st"> m_resource = getCmsObject().readResource(m_uri);</div><div class="msg 1st"><br>
</div><div class="msg 1st"> System.out.println("m_resource" + m_resource + "\n");</div><div class="msg 1st"> getCmsObject().getRequestContext().setUri(m_uri);</div><div class="msg 1st">
String configUri = readConfigUri();</div><div class="msg 1st"> System.out.println("=====config: " + configUri +"\n");</div><div class="msg 1st"> String cacheKey = getCmsObject().getRequestContext().addSiteRoot(configUri)</div>
<div class="msg 1st"> + (getCmsObject().getRequestContext().currentProject().isOnlineProject() ? "+" : "-");</div><div class="msg 1st"> System.out.println("cacheKey: " + cacheKey + "\n");</div>
<div class="msg 1st"> <b>m_config = (CmsCommentConfiguration)m_configs.get(cacheKey); //Here is null, I dont know the why =/ in 7.5.0 work, but dont work 7.5.1</b></div><div class="msg 1st"> System.out.println("m_config: " + m_config + "\n"); </div>
<div class="msg 1st"> if (m_config == null) {</div><div class="msg 1st"> System.out.println("m_config é nulo\n");</div><div class="msg 1st"> m_config = new CmsCommentConfiguration(this, configUri);</div>
<div class="msg 1st"> m_configs.put(cacheKey, m_config);</div><div class="msg 1st"> }</div><div class="msg 1st"><div class="msg 1st"> if (LOG.isDebugEnabled()) {</div><div class="msg 1st">
LOG.debug(Messages.get().getBundle().key(Messages.LOG_INIT_CONFIG_1, configUri));</div><div class="msg 1st"> LOG.debug(Messages.get().getBundle().key(</div><div class="msg 1st"> Messages.LOG_INIT_PROJECT_1,</div>
<div class="msg 1st"> getCmsObject().getRequestContext().currentProject().getName()));</div><div class="msg 1st"> LOG.debug(Messages.get().getBundle().key(</div><div class="msg 1st"> Messages.LOG_INIT_SITE_1,</div>
<div class="msg 1st"> getCmsObject().getRequestContext().getSiteRoot()));</div><div class="msg 1st"> LOG.debug(Messages.get().getBundle().key(Messages.LOG_INIT_RESOURCE_1, m_resource));</div>
<div class="msg 1st"> }</div><div class="msg 1st"> } catch (Exception e) {</div><div class="msg 1st"><b> //And shoot the exception here</b></div><div class="msg 1st"><b> // org.opencms.main.CmsIllegalArgumentException: The given organization unit test does not exist</b></div>
<div class="msg 1st"> System.out.println("entrou no 1 catch do init + " + e + "\n");</div><div class="msg 1st"> if (LOG.isErrorEnabled()) {</div><div class="msg 1st"> LOG.error(e.getLocalizedMessage());</div>
<div class="msg 1st"> }</div><div class="msg 1st"> }</div><div class="msg 1st"><br></div><div class="msg 1st"><br></div><div class="msg 1st">Thank you somebody for help!</div><div class="msg 1st"><br></div>
<div class="msg 1st">Deiverson Silveira</div></div></div></div></div></div>