Fórumok

Liferay USER entity issue

thumbnail
Mazhar Alam, módosítva 8 év-val korábban

Liferay USER entity issue

Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
Hi,

I have an issue which is kind of unusual, am using Liferay 6.2EE sp6.
Issue is when am trying to add a new user from the control panel,nothing happens on the page and there are no logs generated.

Also,I have tried checking the other entities like page,group,sites etc.these are working fine with all operations like add, delete etc.
Any way i can find the root cause of this issue.Suggestions?

Thanks
thumbnail
Jeffrey Paul Handa, módosítva 8 év-val korábban

RE: Liferay USER entity issue

Liferay Master Bejegyzések: 541 Csatlakozás dátuma: 2008.12.01. Legújabb bejegyzések
Hi Mazhar,

Are there any Javascript errors indicated in the browser? Have you tried different browsers or perhaps a using an incognito window? I have seen issues when editing users when my browser tries to be helpful and autofills certain fields.
thumbnail
David H Nebinger, módosítva 8 év-val korábban

RE: Liferay USER entity issue

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
If you're still at SP6 you should also apply all patches to get you up to SP11.
thumbnail
Mazhar Alam, módosítva 8 év-val korábban

RE: Liferay USER entity issue

Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
Nope there aren't any errors in browser console.

One more point I would like to highlight is that Delete User is also not working from control panel.So I tried using the Liferay API by writing a service hook for UserLocalServiceImpl file and added logger statements to it.

And while deleting from API I got below exception -

13:27:16,079 ERROR [http-executor-threads - 29][render_portlet_jsp:132] null
13:27:16,081 INFO [stdout] (http-executor-threads - 29) java.lang.NullPointerException
13:27:16,082 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.model.impl.PortletImpl.getPortletDataHandlerInstance(PortletImpl.java:1306)
13:27:16,084 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.service.impl.GroupLocalServiceImpl.deletePortletData(GroupLocalServiceImpl.java:3687)
13:27:16,087 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:852)
13:27:16,089 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
13:27:16,091 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
13:27:16,093 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
13:27:16,095 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
13:27:16,098 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
13:27:16,100 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
13:27:16,102 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
13:27:16,104 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.service.impl.UserLocalServiceImpl.deleteUser(UserLocalServiceImpl.java:1837)
13:27:16,106 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.service.impl.UserLocalServiceImpl.deleteUser(UserLocalServiceImpl.java:1807)
13:27:16,108 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.service.UserLocalServiceWrapper.deleteUser(UserLocalServiceWrapper.java:70)
13:27:16,110 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
13:27:16,112 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
13:27:16,114 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
13:27:16,116 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
13:27:16,118 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
13:27:16,120 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
13:27:16,122 INFO [stdout] (http-executor-threads - 29) at com.liferay.portal.service.impl.UserServiceImpl.deleteUser(UserServiceImpl.java:719)

Any points you can conclude from this?

Thanks
thumbnail
Mazhar Alam, módosítva 8 év-val korábban

RE: Liferay USER entity issue

Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
Any suggestions?
thumbnail
Jeffrey Paul Handa, módosítva 8 év-val korábban

RE: Liferay USER entity issue

Liferay Master Bejegyzések: 541 Csatlakozás dátuma: 2008.12.01. Legújabb bejegyzések
Hi Mazhar,

Do you have any plugins installed (themes, portlets, hooks, Exts)? If so, I'd try removing them and see if you can reproduce the error in the Control Panel. Another option is to try creating a new user from the Create Account link in the Sign-In portlet and see what happens.

For the delete issue, nothing jumps out at me from the log file. Are you sure the user you're trying to delete exists in the db? You can try to reindex users just to make sure what you're seeing int he Control Panel is accurate. Have any modifications been made directly to the DB? Even if they weren't related to users they could still have an impact.
thumbnail
Mazhar Alam, módosítva 8 év-val korábban

RE: Liferay USER entity issue

Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
Hi Jeffrey,

Nothing on the DB side we have modified manually.

Just to update,

I tried checking by creating a hook for struts-action - /users_admin/edit_user and added logs into my custom action class com.hook.EditUserAction.

Now when am clicking the save button on the user profile page, my custom EditUserAction class gets invoked.
Now I tried printing the actionRequest.getParameterMap() value into console , but only struts_action value is present in console rest other parameters are coming as null.
In the action url all the parameters are present like p_u_i_d,redirect etc.

It seems the parameters are not captured in the controller.

Any ideas?

Thanks
thumbnail
Jeffrey Paul Handa, módosítva 8 év-val korábban

RE: Liferay USER entity issue

Liferay Master Bejegyzések: 541 Csatlakozás dátuma: 2008.12.01. Legújabb bejegyzések
Hi Mazhar,

If you have any plugins installed, I'd try to remove them and see if you can reproduce with no plugins installed. I would even remove plugins that seem like they wouldn't cause this behavior. Also, like David had suggested, try upgrading to the latest version and see if you can reproduce.
thumbnail
Mazhar Alam, módosítva 8 év-val korábban

RE: Liferay USER entity issue

Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
Sure I ll try that option..

Thanks
thumbnail
Mazhar Alam, módosítva 8 év-val korábban

RE: Liferay USER entity issue

Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
Hi,

I tried removing the plugins which were there but still the issue prevails.. Unable to update user profile data.

Just to highlight..when I click save button on user profile page.. the page redirects to add user page.
Don't know why this is redirecting to add user page.

Let me know if anyone faced this issue before.

Thanks