[opencms-dev] getCmsObject() cause NullPointerException

gu ci guci314 at gmail.com
Tue May 17 20:41:54 CEST 2005


---------- Forwarded message ----------
From: gu ci <guci314 at gmail.com>
Date: 2005-5-18 上午2:31
Subject: getCmsObject() cause NullPointerException
To: opencms-dev at opencms.org


My code work fine in my computer.but when I upload it to production
server ,it cause NullPointerException,production server is share jvm
,there has other user run opencms in same jvm .
My code is
this.pageContext = pageContext;
 m_controller =
(CmsFlexController)pageContext.getRequest().getAttribute(CmsFlexController.ATTRIBUTE_NAME);
m_cms = m_controller.getCmsObject();

any ideal?

thanks

guci


More information about the opencms-dev mailing list