Combination View Flat View Tree View
Threads [ Previous | Next ]
Lyle Wilson
liferay 4.4.2 null pointer when sending new password
September 11, 2008 5:26 PM

Lyle Wilson

Rank: New Member

Posts: 4

Join Date: July 30, 2008

Recent Posts

I'm running liferay-portal-tomcat-6.0-4.4.2 with java jdk1.5.0_16

I have not been able to get the send password function to work since upgrading from 4.2.1

When user clicks the "send new password" button, the web page reports there has been an error.

The tomcat log has the following:

at com.liferay.portal.util.ContentUtil._get(
at com.liferay.portal.util.ContentUtil.get(
at com.liferay.portal.util.PrefsPropsUtil.getContent(
at com.liferay.portal.util.PrefsPropsUtil.getContent(
at com.liferay.portal.service.impl.UserLocalServiceImpl.sendPassword(UserLocalServiceImpl.ja

I have the 4.4.2 source so I imported the 4.4.2 source project into eclipse and found and edited the source file.

Line 1139 in my source file is:

String subject = PrefsPropsUtil.getContent(

I can find the corresponding property entry in the ext property file as well as the default property file.

UPDATE: I think the null pointer is due to missing tmpl files defined in the ext property file. The previous developers didn't get all the source files checked into subversion. Go figure...

UPDATE 2: Yep, that was it. Commented out the following entries in the ext property file and the null pointer went away.