留言板
Language Switch Issue
Hi ,
I am facing an issue in language switch, whenever I click on lang to switch it , it does't switch and says 'language temporarily unavailable'. In the log it throws following exception:
[org.apache.struts.action.RequestProcessor] (http--0.0.0.0-8010-63) Unhandled Exception thrown: class com.liferay.portal.ReservedUserEmailAddressException
14:49:14,586 INFO [stdout] (http--0.0.0.0-8010-63) 14:49:14,584 ERROR [http--0.0.0.0-8010-63][render_portlet_jsp:132] null
14:49:14,588 INFO [stdout] (http--0.0.0.0-8010-63) com.liferay.portal.ReservedUserEmailAddressException
14:49:14,589 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validateEmailAddress(UserLocalServiceImpl.java:6008)
14:49:14,592 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:5945)
14:49:14,594 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.updateUser(Us
Need help if any experienced it.
Thanks,
Abbas
I am facing an issue in language switch, whenever I click on lang to switch it , it does't switch and says 'language temporarily unavailable'. In the log it throws following exception:
[org.apache.struts.action.RequestProcessor] (http--0.0.0.0-8010-63) Unhandled Exception thrown: class com.liferay.portal.ReservedUserEmailAddressException
14:49:14,586 INFO [stdout] (http--0.0.0.0-8010-63) 14:49:14,584 ERROR [http--0.0.0.0-8010-63][render_portlet_jsp:132] null
14:49:14,588 INFO [stdout] (http--0.0.0.0-8010-63) com.liferay.portal.ReservedUserEmailAddressException
14:49:14,589 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validateEmailAddress(UserLocalServiceImpl.java:6008)
14:49:14,592 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:5945)
14:49:14,594 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.updateUser(Us
Need help if any experienced it.
Thanks,
Abbas
Hi Ghulam,
From the log, it looks like your application is trying to update the User details and the email that is sent for update belongs to the "Reserved Emails" category of the Portal.
If this is case, please make sure you remove this email from the below section in the portal-ext.properties.
Regards,
Tanweer.
From the log, it looks like your application is trying to update the User details and the email that is sent for update belongs to the "Reserved Emails" category of the Portal.
If this is case, please make sure you remove this email from the below section in the portal-ext.properties.
#
# Input a list of reserved email addresses separated by \n characters.
#
admin.reserved.email.addresses=
Regards,
Tanweer.
:| -- that doesn't make sense.
Do you mean you are trying to update the USERS language? or do you mean you are using the Language Portlet to try to change the locale used for the site (that you are browsing)? If it is the latter, which page are you on when you try to change the language? I just did a search of the portal source (6.2) and the only places I can find references to that class are "user management" functions -- like UserLocalServiceUtil -- which should not be invoked (I don't think) when you toggle a language.
If you are getting that when you try to change the Users default language, then most likely it is the property as stated by Tanweer.
Do you mean you are trying to update the USERS language? or do you mean you are using the Language Portlet to try to change the locale used for the site (that you are browsing)? If it is the latter, which page are you on when you try to change the language? I just did a search of the portal source (6.2) and the only places I can find references to that class are "user management" functions -- like UserLocalServiceUtil -- which should not be invoked (I don't think) when you toggle a language.
If you are getting that when you try to change the Users default language, then most likely it is the property as stated by Tanweer.
Hi,
I faced the same bug today.
the code matching the stacktrace is (for liferay-portal-6.2-ce-ga2):
This control is a non-sense for me but it is there. So if you have defined (or not, the field is prefilled with the admin user I guess) the field "Admin > Control Panel > Server Administration > Mail > User Name" with the same email as the current user, it will fail.
Regards,
Mathieu
I faced the same bug today.
the code matching the stacktrace is (for liferay-portal-6.2-ce-ga2):
String pop3User = PrefsPropsUtil.getString(
PropsKeys.MAIL_SESSION_MAIL_POP3_USER,
PropsValues.MAIL_SESSION_MAIL_POP3_USER);
if (StringUtil.equalsIgnoreCase(emailAddress, pop3User)) {
throw new ReservedUserEmailAddressException();
}
This control is a non-sense for me but it is there. So if you have defined (or not, the field is prefilled with the admin user I guess) the field "Admin > Control Panel > Server Administration > Mail > User Name" with the same email as the current user, it will fail.
Regards,
Mathieu
Ghulam Abbas:
Hi ,
I am facing an issue in language switch, whenever I click on lang to switch it , it does't switch and says 'language temporarily unavailable'. In the log it throws following exception:
[org.apache.struts.action.RequestProcessor] (http--0.0.0.0-8010-63) Unhandled Exception thrown: class com.liferay.portal.ReservedUserEmailAddressException
14:49:14,586 INFO [stdout] (http--0.0.0.0-8010-63) 14:49:14,584 ERROR [http--0.0.0.0-8010-63][render_portlet_jsp:132] null
14:49:14,588 INFO [stdout] (http--0.0.0.0-8010-63) com.liferay.portal.ReservedUserEmailAddressException
14:49:14,589 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validateEmailAddress(UserLocalServiceImpl.java:6008)
14:49:14,592 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:5945)
14:49:14,594 INFO [stdout] (http--0.0.0.0-8010-63) at com.liferay.portal.service.impl.UserLocalServiceImpl.updateUser(Us
Need help if any experienced it.
Thanks,
Abbas
Hi,
Apology for delay, infact stucked in some problems, I tried the suggestions but still getting the same exception. Actually I am using liferay build in language portlet and when I switching language it throws this exception. According to Tanveer , I put the property in portal-ext but still issue persist.
Regards,
Apology for delay, infact stucked in some problems, I tried the suggestions but still getting the same exception. Actually I am using liferay build in language portlet and when I switching language it throws this exception. According to Tanveer , I put the property in portal-ext but still issue persist.
Regards,
Dear Abbas,
Please provide the information about the version of liferay you are using.
Are you using any hooks or custom code as well?
Regards,
Roshan Qureshi
Please provide the information about the version of liferay you are using.
Are you using any hooks or custom code as well?
Regards,
Roshan Qureshi