[opencms-dev] CmsObject is null

Nguyen La Yen Dung dny at sdcgrp.com
Fri Sep 26 13:20:02 CEST 2003


 

Hello,

Could you please specify the problem that I've met?

The cms is not null but the cmsObj is null (after the command:
cms.getCmsObject())

com.opencms.flex.jsp.CmsJspActionElement cms = new 
 
com.opencms.flex.jsp.CmsJspActionElement(pageContext, request, response); 
com.opencms.file.CmsObject cmsObj = cms.getCmsObject();


Therefore, the code: 

          CmsMail cmsMail = new CmsMail(cmsObj, "dny at sdcgrp.com", to,
"subject", "content", "text/html");

will raise an exception:

java.lang.NullPointerException at
com.opencms.defaults.CmsMail.<init>(CmsMail.java:404)


Before, I used to suceed in creating an email. Now I get the code back, and
it failed. I think the failure maybe comes from my system, but checked it, I
see everything is alright. Please help me, it's really urgent. 

 

Thanks,

Yendung

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030926/86d1f659/attachment.htm>


More information about the opencms-dev mailing list