Forums de discussion

In Liferay7 Control panel menu is not showing

Thirumal Reddy, modifié il y a 7 années.

In Liferay7 Control panel menu is not showing

Regular Member Publications: 216 Date d'inscription: 03/12/15 Publications récentes
Hi All,
I migrated from Liferay 6.2 GA2 to 7.0.1 GA2,
Migration process was successful, but after logging with test credentials, I am unable to see control panel menu.
But i am able to do all actions on portlet's and web content article's.
I have observed in server console like,
WARN [http-nio-8080-exec-4][ThemeLocalServiceImpl:237] No theme found for specified theme id classic. Returning the default theme.

But in "bundles\osgi\war" location classic-theme.war file is available.

So what should i do to show control panel menu.

Thanks in advance..
regards,
Thirumal.
thumbnail
Arun Das, modifié il y a 7 années.

RE: In Liferay7 Control panel menu is not showing

Regular Member Publications: 166 Date d'inscription: 23/07/12 Publications récentes
Hi,
Are you sure that its running on java 1.8?

Arun
Thirumal Reddy, modifié il y a 7 années.

RE: In Liferay7 Control panel menu is not showing

Regular Member Publications: 216 Date d'inscription: 03/12/15 Publications récentes
Hi Arun,
Yes, I am sure.
I resolved it by doing following steps,
first i logined with siteAdmin and clicked on account settings, copied url ,
and in another browser , i login with test and after i pasted copied url and after that i just clicked on Save button after that i am seeing all options,
I don't know is it correct process or not but it worked for me.
But i am not seeing all my production images in document and media gallery and i am unable add new images also. and in console i am getting exception like

15:54:05,184 ERROR [http-nio-8080-exec-6][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_web_portlet_DLAdminPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_document_library_web_portlet_DLAdminPortlet_mvcRenderCommandName=%2Fdocument_library%2Fview_folder&_com_liferay_document_library_web_portlet_DLAdminPortlet_navigation=home&_com_liferay_document_library_web_portlet_DLAdminPortlet_curFolder=&_com_liferay_document_library_web_portlet_DLAdminPortlet_deltaFolder=&_com_liferay_document_library_web_portlet_DLAdminPortlet_folderId=23741&_com_liferay_document_library_web_portlet_DLAdminPortlet_deltaEntry=20&_com_liferay_document_library_web_portlet_DLAdminPortlet_orderByCol=title&_com_liferay_document_library_web_portlet_DLAdminPortlet_orderByType=asc&_com_liferay_document_library_web_portlet_DLAdminPortlet_resetCur=false&_com_liferay_document_library_web_portlet_DLAdminPortlet_curEntry=1 generates exception: java.lang.IllegalArgumentException: Someone may be trying to circumvent the permission checker: {companyId=10132, name=com.liferay.document.library.kernel.model.DLFileEntryType, primKey=34302, scope=4}
com.liferay.portal.kernel.exception.NoSuchResourcePermissionException: {companyId=10132, name=com.liferay.document.library.kernel.model.DLFileEntryType, primKey=34302, scope=4}
at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.hasResourcePermission(ResourcePermissionLocalServiceImpl.java:709)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.hasUserPermissions(ResourceLocalServiceImpl.java:448)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
at com.liferay.portal.kernel.service.ResourceLocalServiceUtil.hasUserPermissions(ResourceLocalServiceUtil.java:65)
at com.liferay.portal.security.permission.AdvancedPermissionChecker.doCheckPermission(AdvancedPermissionChecker.java:604)
at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasUserPermissionImpl(AdvancedPermissionChecker.java:1001)
at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasPermissionImpl(AdvancedPermissionChecker.java:970)


Thanks arun fro your replay..

regards,
Thirumal.
thumbnail
Arun Das, modifié il y a 7 années.

RE: In Liferay7 Control panel menu is not showing

Regular Member Publications: 166 Date d'inscription: 23/07/12 Publications récentes
Hi,
Have you reindexed your search indexes?
Please follow the upgrade guide carefully (notice there is an post upgrade tasks there).
May be that's why you images are missing at first place.

Arun
Thirumal Reddy, modifié il y a 7 années.

RE: In Liferay7 Control panel menu is not showing

Regular Member Publications: 216 Date d'inscription: 03/12/15 Publications récentes
Hi Arun,
Thanks Arun..
reindex completd, all user's,org's and roles all are coming,emoticon
In document and media also all images are coming but i am unable to add new image (add button is not showing even for test also)
and whenever i click on document and media i am getting one exception,
16:08:49,573 ERROR [http-nio-8080-exec-10][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_web_portlet_DLAdminPortlet&p_p_lifecycle=0&p_p_state=maximized generates exception: java.lang.IllegalArgumentException: Someone may be trying to circumvent the permission checker: {companyId=10132, name=com.liferay.document.library.kernel.model.DLFileEntryType, primKey=34302, scope=4}
com.liferay.portal.kernel.exception.NoSuchResourcePermissionException: {companyId=10132, name=com.liferay.document.library.kernel.model.DLFileEntryType, primKey=34302, scope=4}
at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.hasResourcePermission(ResourcePermissionLocalServiceImpl.java:709)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.hasUserPermissions(ResourceLocalServiceImpl.java:448)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
at com.liferay.portal.kernel.service.ResourceLocalServiceUtil.hasUserPermissions(ResourceLocalServiceUtil.java:65)
at com.liferay.portal.security.permission.AdvancedPermissionChecker.doCheckPermission(AdvancedPermissionChecker.java:604)
at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasUserPermissionImpl(AdvancedPermissionChecker.java:1001)
at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasPermissionImpl(AdvancedPermissionChecker.java:970)


give me suggestion for this,

Once again thanks arun, with out your support i can't migrated to Liferay 7.

regards,
Thirumal.
thumbnail
Arun Das, modifié il y a 7 années.

RE: In Liferay7 Control panel menu is not showing

Regular Member Publications: 166 Date d'inscription: 23/07/12 Publications récentes
Hi,
When you say
add button is not showing even for test also
, test refers to your default liferay account?. test@liferay.com from the default instance is an omniadmin, so should not have any permission issues. Have you done any customization on liferay?

Arun
Thirumal Reddy, modifié il y a 7 années.

RE: In Liferay7 Control panel menu is not showing

Regular Member Publications: 216 Date d'inscription: 03/12/15 Publications récentes
Hi arun,
how can i access my portlet service builder classes in modules.?
for more info please see this link
https://web.liferay.com/community/forums/-/message_boards/message/77098033

please give me some suggestions.
i am waiting for your replay.

regards,
Thirumal.
thumbnail
Arun Das, modifié il y a 7 années.

RE: In Liferay7 Control panel menu is not showing

Regular Member Publications: 166 Date d'inscription: 23/07/12 Publications récentes
Hi,
It seems like David has already answered your question. He also has written an blog on Service Builder and on OSGi dependencies. I think you should go through this as its a pretty decent blog with sample codes.

Arun
Thirumal Reddy, modifié il y a 7 années.

RE: In Liferay7 Control panel menu is not showing

Regular Member Publications: 216 Date d'inscription: 03/12/15 Publications récentes
Hi Arun,
while implementing FinderImpl class,
i am unable to import "com.liferay.util.dao.orm.CustomSQLUtil",
i folowed process from this link:custom-sql
why it is not importing.?
do i need to any configurations.?
plg give me some suggestions.

regards,
Thirumal.
Thirumal Reddy, modifié il y a 7 années.

RE: In Liferay7 Control panel menu is not showing

Regular Member Publications: 216 Date d'inscription: 03/12/15 Publications récentes
Hi Arun,
I imported CustomSQLUtil by adding
compile "com.liferay:com.liferay.portal.dao.orm.custom.sql:1.0.3"

it in build.gradle file.
but after implementing method in XXXFinderImpl, i did build service but XXXFinderUtil.java class is not generating.
So i am unable to creating method in XXXLocalServiceImpl.

If you have implemented Custom sql in Liferay 7 please give some suggestions.

regards,
Thirumal.