[opencms-dev] Problem in CmsCommentAccess with OpenCms 7.5.1

Mario Jäger m.jaeger at alkacon.com
Wed Feb 24 09:26:17 CET 2010


Hi Deiverson,

How did you include the comments module? Send us the error stacktrace from the OpenCms logfile WEB-INF/logs/opencms.log, please.

-- 
Kind Regards,
Mario.
 
-------------------
Mario Jäger
 
Alkacon Software GmbH  - The OpenCms Experts                    
http://www.alkacon.com - http://www.opencms.org


Deiverson Silveira schrieb:
> I have problem alkacon comment for work in OpenCms 7.5.1.... The 
> problem in NullPointerException in CmsCommentAccess!
>
> Something to solve the opencms 7.5.1?
>
> Im debug, and the problem here:
>         try {
>             *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*
>             System.out.println("m_resource" + m_resource + "\n");
>             m_resource = getCmsObject().readResource(m_uri);
>
>             System.out.println("m_resource" + m_resource + "\n");
>             getCmsObject().getRequestContext().setUri(m_uri);
>             String configUri = readConfigUri();
>             System.out.println("=====config: " + configUri +"\n");
>             String cacheKey = 
> getCmsObject().getRequestContext().addSiteRoot(configUri)
>                 + 
> (getCmsObject().getRequestContext().currentProject().isOnlineProject() 
> ? "+" : "-");
>             System.out.println("cacheKey: " + cacheKey + "\n");
>             *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*
>             System.out.println("m_config: " + m_config + "\n"); 
>             if (m_config == null) {
>             System.out.println("m_config é nulo\n");
>                 m_config = new CmsCommentConfiguration(this, configUri);
>                 m_configs.put(cacheKey, m_config);
>             }
>             if (LOG.isDebugEnabled()) {
>                
>  LOG.debug(Messages.get().getBundle().key(Messages.LOG_INIT_CONFIG_1, 
> configUri));
>                 LOG.debug(Messages.get().getBundle().key(
>                     Messages.LOG_INIT_PROJECT_1,
>                    
>  getCmsObject().getRequestContext().currentProject().getName()));
>                 LOG.debug(Messages.get().getBundle().key(
>                     Messages.LOG_INIT_SITE_1,
>                     getCmsObject().getRequestContext().getSiteRoot()));
>              
>  LOG.debug(Messages.get().getBundle().key(Messages.LOG_INIT_RESOURCE_1, 
> m_resource));
>             }
>         } catch (Exception e) {
> *           //And shoot the exception here*
> *           // org.opencms.main.CmsIllegalArgumentException: The given 
> organization unit test does not exist*
>             System.out.println("entrou no 1 catch do init + " + e + "\n");
>             if (LOG.isErrorEnabled()) {
>                 LOG.error(e.getLocalizedMessage());
>             }
>         }
>
>
> Thank you somebody for help!
>
> Deiverson Silveira
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list